Update su tests
Some of these tests seem wrong. The assume that
su -- -c command
should work, whereas -- should mean pass all remaining arguments
along to the command.
Add some new tests based on examples in Issue 253
Signed-off-by: Serge Hallyn <shallyn@cisco.com>
This commit is contained in:
@@ -7,6 +7,8 @@ cd $(dirname $0)
|
||||
. ../../common/config.sh
|
||||
. ../../common/log.sh
|
||||
|
||||
# FIXME
|
||||
# su: ignoring --preserve-environment, it's mutually exclusive with --login
|
||||
|
||||
log_start "$0" "Running commands (check working directory): su -c pwd - myuser -p"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user