[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
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.
su-l-vs-p.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#10317: patch to su: -l and -p should not be used together,
Rocky Bernstein <=