summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2005-02-24 16:45:03 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2005-02-24 16:45:03 +0000
commit968f248c1f176379b701458f6d2eb9ddd1d671ef (patch)
tree94d03e0372ec08346eb529da021d2e443a4f0d3e /usr.sbin
parent0dc2242ac2299c17740d3b2295bb404c1a22478b (diff)
Close files after we are done with them; from mpech@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/adduser/adduser.perl6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/adduser/adduser.perl b/usr.sbin/adduser/adduser.perl
index c1783d5c753..a7c866e0ead 100644
--- a/usr.sbin/adduser/adduser.perl
+++ b/usr.sbin/adduser/adduser.perl
@@ -1,6 +1,6 @@
#!/usr/bin/perl
#
-# $OpenBSD: adduser.perl,v 1.47 2003/06/17 00:58:30 jsyn Exp $
+# $OpenBSD: adduser.perl,v 1.48 2005/02/24 16:45:02 millert Exp $
#
# Copyright (c) 1995-1996 Wolfram Schneider <wosch@FreeBSD.org>. Berlin.
# All rights reserved.
@@ -91,7 +91,7 @@ sub variables {
$etc_login_conf = "/etc/login.conf";
@pwd_mkdb = ("pwd_mkdb", "-p"); # program for building passwd database
$encryptionmethod = "auto";
- $rcsid = '$OpenBSD: adduser.perl,v 1.47 2003/06/17 00:58:30 jsyn Exp $';
+ $rcsid = '$OpenBSD: adduser.perl,v 1.48 2005/02/24 16:45:02 millert Exp $';
# List of directories where shells located
@path = ('/bin', '/usr/bin', '/usr/local/bin');
@@ -163,6 +163,7 @@ sub login_conf_read {
}
$cont = /\\$/;
}
+ close(S);
}
# read shell database, see also: shells(5)
@@ -185,6 +186,7 @@ sub shells_read {
}
}
}
+ close(S);
push(@list, "/sbin/nologin");
&shell_pref_add("nologin");