From 956737a7a6f84a9444b6e2b4b29e8f65c30f1a90 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Tue, 26 Aug 1997 22:47:51 +0000 Subject: [PATCH] Stop the growing list of shells if /etc/adduser.conf was updated. --- usr.sbin/adduser/adduser.perl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/adduser/adduser.perl b/usr.sbin/adduser/adduser.perl index 9eb66d24de8f..24be225760b6 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;