aboutsummaryrefslogtreecommitdiff
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
commit47bc1e18732ec133699f9fef02b4ac9b17c8aec8 (patch)
treee2b29c3a9d93dc545ddc9f2cfd6c1ba6274aa0ae
parentb8cf6ea776775c2073757c380947b92ae5752f87 (diff)
downloadsrc-47bc1e18732ec133699f9fef02b4ac9b17c8aec8.tar.gz
src-47bc1e18732ec133699f9fef02b4ac9b17c8aec8.zip
Print yyyy/mm/dd in /var/log/adduser, instead of yy/mm/dd
Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
Notes
Notes: svn path=/head/; revision=42692
-rw-r--r--usr.sbin/adduser/adduser.perl3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/adduser/adduser.perl b/usr.sbin/adduser/adduser.perl
index b6e572848488..256e27c50e3b 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.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') {