bug#10317: patch to su: -l and -p should not be used together
From:
Rocky Bernstein
Subject:
bug#10317: patch to su: -l and -p should not be used together
Date:
Sat, 17 Dec 2011 15:53:07 -0500
Hi -
I noticed that -m (-p, --preserve-environment) and -l (- --login) can't be
used together.
Attached is a patch to give a warning if they are and to indicate which
option is used. In the code, I opted for the earlier option ignoring the
later option. In the code --login has precedence over
--preserve-environment.