From 000ed5efb47015170cb46e5f333cf320af770e6d Mon Sep 17 00:00:00 2001 From: Mike Makonnen Date: Sat, 28 Aug 2004 14:32:10 +0000 Subject: Also, match the full path to the special nologin shell. Previously, it would recognize it as a valid shell only if the basename (nologin) was specified. Now, it will recognize both the basename and the full path. NOTE: The full path as adduser(8) understands it is /usr/sbin/nologin. There is a symlink, /sbin/nologin, but that's deprecated and only there for backwards compatibility. --- adduser/adduser.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'adduser/adduser.sh') diff --git a/adduser/adduser.sh b/adduser/adduser.sh index 7e21cb5..050f2b1 100644 --- a/adduser/adduser.sh +++ b/adduser/adduser.sh @@ -142,7 +142,8 @@ fullpath_from_shell() { done # /usr/sbin/nologin is a special case - if [ "$_shell" = "${NOLOGIN}" ]; then + if [ "$_shell" = "${NOLOGIN}" -o \ + "$_shell" = "${NOLOGIN_PATH}" ]; then echo ${NOLOGIN_PATH} return 0; fi -- cgit v1.2.3-56-ge451