summaryrefslogtreecommitdiffstats
path: root/adduser
diff options
context:
space:
mode:
authorWolfram Schneider <wosch@FreeBSD.org>1997-08-26 22:47:51 +0000
committerWolfram Schneider <wosch@FreeBSD.org>1997-08-26 22:47:51 +0000
commit66263f35e17da4669592e036534b8440425a46b0 (patch)
tree4c65de254c7fd891f700074281955380f9cc1f1e /adduser
parent52c51ddaee222eca9e7f8beb46a803e21f957012 (diff)
downloadpw-darwin-66263f35e17da4669592e036534b8440425a46b0.tar.gz
pw-darwin-66263f35e17da4669592e036534b8440425a46b0.tar.zst
pw-darwin-66263f35e17da4669592e036534b8440425a46b0.zip
Stop the growing list of shells if /etc/adduser.conf
was updated.
Diffstat (limited to 'adduser')
-rw-r--r--adduser/adduser.perl8
1 files changed, 4 insertions, 4 deletions
diff --git a/adduser/adduser.perl b/adduser/adduser.perl
index 9eb66d2..24be225 100644
--- a/adduser/adduser.perl
+++ b/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;