summaryrefslogtreecommitdiffstats
path: root/adduser/adduser.sh
diff options
context:
space:
mode:
authorMike Makonnen <mtm@FreeBSD.org>2004-08-28 14:32:10 +0000
committerMike Makonnen <mtm@FreeBSD.org>2004-08-28 14:32:10 +0000
commit000ed5efb47015170cb46e5f333cf320af770e6d (patch)
treeba8ba8cf9a7d972363a1f05bd7a60f250729a068 /adduser/adduser.sh
parent988c1f8c978b3e52c3116ed766caa3ce58850ea2 (diff)
downloadpw-darwin-000ed5efb47015170cb46e5f333cf320af770e6d.tar.gz
pw-darwin-000ed5efb47015170cb46e5f333cf320af770e6d.tar.zst
pw-darwin-000ed5efb47015170cb46e5f333cf320af770e6d.zip
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.
Diffstat (limited to 'adduser/adduser.sh')
-rw-r--r--adduser/adduser.sh3
1 files changed, 2 insertions, 1 deletions
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