From: Serge Hallyn Date: Mon, 12 Apr 2021 02:39:31 +0000 (-0500) Subject: test: su -p doesn't set home X-Git-Tag: v4.9~30^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=716f3f99cea332a63983273572f2324e66732d55;p=thirdparty%2Fshadow.git test: su -p doesn't set home with out also doing '-' Signed-off-by: Serge Hallyn --- diff --git a/tests/su/02/env_special-options_-p.exp b/tests/su/02/env_special-options_-p.exp index 3a7143c67..85656da3d 100755 --- a/tests/su/02/env_special-options_-p.exp +++ b/tests/su/02/env_special-options_-p.exp @@ -44,8 +44,8 @@ send "echo \"PATH=\\\"\$PATH\\\"\"\r" expect "PATH=\"/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games\"\r" expect "$ " -send "echo \"'\$HOME'\$USER'\$LOGNAME'\$SHELL'\"\r" -expect "'/root'root'root'/bin/bash'\r" +send "echo \"'\$USER'\$LOGNAME'\$SHELL'\"\r" +expect "'root'root'/bin/bash'\r" expect "$ " send "exit\r"