Date: Fri, 15 Jan 1999 16:25:33 +1100 From: Peter Jeremy <peter.jeremy@auss2.alcatel.com.au> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/9505: adduser(8) is not Y2K compliant Message-ID: <99Jan15.162454est.40346@border.alcanet.com.au>
index | next in thread | raw e-mail
>Number: 9505
>Category: bin
>Synopsis: adduser(8) is not Y2K compliant
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Jan 14 21:30:03 PST 1999
>Closed-Date:
>Last-Modified:
>Originator: Peter Jeremy
>Release: FreeBSD 3.0-CURRENT i386
>Organization:
Alcatel Australia
>Environment:
>Description:
adduser(8) uses a raw tm_year and will therefore display 100/01/01 for
2000-JAN-01.
>How-To-Repeat:
Code inspection
>Fix:
--- /3.0/src/usr.sbin/adduser/adduser.perl Tue Aug 18 04:50:29 1998
+++ ./adduser.perl Fri Jan 15 14:46:37 1999
@@ -895,6 +895,7 @@
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') {
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?99Jan15.162454est.40346>
