summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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