From 63688efca7d60aab65c33923f35a172e3aa980a7 Mon Sep 17 00:00:00 2001 From: Daniel O'Callaghan Date: Fri, 15 Jan 1999 05:15:41 +0000 Subject: [PATCH] Yet another y2k bug. (printf("19%s %s", $3, $4);) --- contrib/cvs/contrib/sccs2rcs.csh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/cvs/contrib/sccs2rcs.csh b/contrib/cvs/contrib/sccs2rcs.csh index a1dea01b19e7..310e2710f194 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"