diff options
author | danny <danny@FreeBSD.org> | 1999-01-15 05:15:41 +0000 |
---|---|---|
committer | danny <danny@FreeBSD.org> | 1999-01-15 05:15:41 +0000 |
commit | 22fad7338cdf09f855b91eeded1448a7634977ff (patch) | |
tree | 1f10c8a672e348ee1697b3fd6c6b595e5a3fb538 /contrib | |
parent | 8dee629e98c7a0c0710bc9025866a7cb82cf1044 (diff) | |
download | FreeBSD-src-22fad7338cdf09f855b91eeded1448a7634977ff.zip FreeBSD-src-22fad7338cdf09f855b91eeded1448a7634977ff.tar.gz |
Yet another y2k bug. (printf("19%s %s", $3, $4);)
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/cvs/contrib/sccs2rcs.csh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/cvs/contrib/sccs2rcs.csh b/contrib/cvs/contrib/sccs2rcs.csh index a1dea01..310e271 100644 --- a/contrib/cvs/contrib/sccs2rcs.csh +++ b/contrib/cvs/contrib/sccs2rcs.csh @@ -177,7 +177,7 @@ foreach sfile (SCCS/s.*) if ($status != 0) goto ERROR # get file into current dir and get stats - set date = `sccs prs -r$rev $file | grep "^D " | awk '{printf("19%s %s", $3, $4); exit}'` + set date = `sccs prs -r$rev $file | grep "^D " | awk '{y=$3+1900; if($3 < 1970) {y+=100};printf("%s %s", y, $4);exit;}'` set author = `sccs prs -r$rev $file | grep "^D " | awk '{print $5; exit}'` echo "" echo "==> file $file, rev=$rev, date=$date, author=$author" |