Stop the growing list of shells if /etc/adduser.conf
was updated.
This commit is contained in:
parent
0e904270de
commit
956737a7a6
@ -24,7 +24,7 @@
|
|||||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
# SUCH DAMAGE.
|
# 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
|
# 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(@list, "/nonexistent");
|
||||||
push(@shellpref, "no");
|
push(@shellpref, "no") if !grep(/^no$/, @shellpref);
|
||||||
$shell{"no"} = "/nonexistent";
|
$shell{"no"} = "/nonexistent";
|
||||||
|
|
||||||
push(@list, "/bin/date");
|
push(@list, "/bin/date");
|
||||||
push(@shellpref, "date");
|
push(@shellpref, "date") if !grep(/^date$/, @shellpref);
|
||||||
$shell{"date"} = "/bin/date";
|
$shell{"date"} = "/bin/date";
|
||||||
|
|
||||||
return $err;
|
return $err;
|
||||||
|
Loading…
Reference in New Issue
Block a user