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:
Serge Hallyn
2020-08-27 23:09:13 -05:00
parent 4047d1fe8e
commit cf8101aaae
10 changed files with 321 additions and 9 deletions

View File

@@ -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"