summaryrefslogtreecommitdiffstats
path: root/adduser/adduser.perl
diff options
context:
space:
mode:
authorDaniel O'Callaghan <danny@FreeBSD.org>1999-01-15 10:26:59 +0000
committerDaniel O'Callaghan <danny@FreeBSD.org>1999-01-15 10:26:59 +0000
commit2defa2b7e4954e7974189d2fb663254e3ac88f68 (patch)
treec4706c1800e026791c635d1e37a7aeaa6fa02dbb /adduser/adduser.perl
parentd367f1553e34d505e5bedd376664dc8c33a719e1 (diff)
downloadpw-darwin-2defa2b7e4954e7974189d2fb663254e3ac88f68.tar.gz
pw-darwin-2defa2b7e4954e7974189d2fb663254e3ac88f68.zip
Print yyyy/mm/dd in /var/log/adduser, instead of yy/mm/dd
Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
Diffstat (limited to 'adduser/adduser.perl')
-rw-r--r--adduser/adduser.perl3
1 files changed, 2 insertions, 1 deletions
diff --git a/adduser/adduser.perl b/adduser/adduser.perl
index b6e5728..256e27c 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.40 1998/06/07 18:38:32 wosch Exp $
+# $Id: adduser.perl,v 1.41 1998/08/17 18:50:29 wosch Exp $
# read variables
@@ -895,6 +895,7 @@ sub adduser_log {
return 1 if $logfile eq "no";
local($sec, $min, $hour, $mday, $mon, $year) = localtime;
+ $year += 1900;
$mon++;
foreach $e ('sec', 'min', 'hour', 'mday', 'mon', 'year') {