summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authordanny <danny@FreeBSD.org>1999-01-15 10:26:59 +0000
committerdanny <danny@FreeBSD.org>1999-01-15 10:26:59 +0000
commitdd8cc45b89f76156e1314ab61b34373434f5b257 (patch)
tree8d8d47bc9ebcd1a401ec25ee17ddf471db481b11 /usr.sbin
parentefd89902e69344c897e0ab130499f753ab63961e (diff)
downloadFreeBSD-src-dd8cc45b89f76156e1314ab61b34373434f5b257.zip
FreeBSD-src-dd8cc45b89f76156e1314ab61b34373434f5b257.tar.gz
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 'usr.sbin')
-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 b6e5728..256e27c 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') {
OpenPOWER on IntegriCloud