summaryrefslogtreecommitdiffstats
path: root/usr.sbin/adduser
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1997-08-26 22:47:51 +0000
committerwosch <wosch@FreeBSD.org>1997-08-26 22:47:51 +0000
commitab42389908780228dfb8c7a90ef08ebdd1b5b8c3 (patch)
treee6b9d2a0ad8e59d624d19c9071ebd07685be9957 /usr.sbin/adduser
parent5c80f76918b5b50293fb01a7d559f361ab121f86 (diff)
downloadFreeBSD-src-ab42389908780228dfb8c7a90ef08ebdd1b5b8c3.zip
FreeBSD-src-ab42389908780228dfb8c7a90ef08ebdd1b5b8c3.tar.gz
Stop the growing list of shells if /etc/adduser.conf
was updated.
Diffstat (limited to 'usr.sbin/adduser')
-rw-r--r--usr.sbin/adduser/adduser.perl8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/adduser/adduser.perl b/usr.sbin/adduser/adduser.perl
index 9eb66d2..24be225 100644
--- a/usr.sbin/adduser/adduser.perl
+++ b/usr.sbin/adduser/adduser.perl
@@ -24,7 +24,7 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
-# $Id: adduser.perl,v 1.33 1997/07/24 17:44:46 wosch Exp $
+# $Id: adduser.perl,v 1.34 1997/07/31 15:24:37 pst Exp $
# read variables
@@ -105,13 +105,13 @@ sub shells_read {
}
}
-# Allow /nonexistent and /bin/date as a valid shell for system utils
+ # Allow /nonexistent and /bin/date as a valid shell for system utils
push(@list, "/nonexistent");
- push(@shellpref, "no");
+ push(@shellpref, "no") if !grep(/^no$/, @shellpref);
$shell{"no"} = "/nonexistent";
push(@list, "/bin/date");
- push(@shellpref, "date");
+ push(@shellpref, "date") if !grep(/^date$/, @shellpref);
$shell{"date"} = "/bin/date";
return $err;
OpenPOWER on IntegriCloud