Subtle RCS bug shows up in co
Stanley Friesen
friesen at psivax.UUCP
Tue Nov 19 08:49:24 AEST 1985
*** co.c.old Mon Nov 18 14:38:12 1985
--- co.c Mon Nov 18 14:44:51 1985
***************
*** 118,123
struct tm parseddate, *ftm;
char * rawdate;
long unixtime;
catchints();
cmdid = "co";
--- 118,126 -----
struct tm parseddate, *ftm;
char * rawdate;
long unixtime;
+ #ifdef VARIAN
+ time_t timep[2]; /* Temporary for utime call */
+ #endif VARIAN
catchints();
cmdid = "co";
***************
*** 277,283
if (chmod(RCSfilename,RCSstat.st_mode & ~0222)<0)
warn("Can't preserve mode of %s",RCSfilename);
#ifdef VARIAN
! utime(RCSfilename,&RCSstat.st_atime);
#endif VARIAN
catchints();
}
--- 280,288 -----
if (chmod(RCSfilename,RCSstat.st_mode & ~0222)<0)
warn("Can't preserve mode of %s",RCSfilename);
#ifdef VARIAN
! timep[0] = RCSstat.st_atime;
! timep[1] = RCSstat.st_mtime;
! utime(RCSfilename,timep);
#endif VARIAN
catchints();
}
--
Sarima (Stanley Friesen)
UUCP: {ttidca|ihnp4|sdcrdcf|quad1|nrcvax|bellcore|logico}!psivax!friesen
ARPA: ttidca!psivax!friesen at rand-unix.arpa
More information about the Comp.sources.bugs
mailing list