mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
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.
This commit is contained in:
parent
90fcc4b33b
commit
a53b524bb4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=134440
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user