SCCS-vsn: bin/mv/mv.c 4.9
-static char *sccsid = "@(#)mv.c 4.8 (Berkeley) 83/01/03";
+static char *sccsid = "@(#)mv.c 4.9 (Berkeley) 83/01/05";
goto cleanup;
}
if (ISDEV(s1)) {
goto cleanup;
}
if (ISDEV(s1)) {
if (mknod(target, s1.st_mode, s1.st_rdev) < 0) {
Perror(target);
return (1);
}
if (mknod(target, s1.st_mode, s1.st_rdev) < 0) {
Perror(target);
return (1);
}
- (void) utime(target, &s1.st_atime);
+ /* kludge prior to utimes */
+ tv[0] = s1.st_atime;
+ tv[1] = s1.st_mtime;
+ (void) utime(target, tv);
goto cleanup;
}
if (ISREG(s1)) {
int i, c, status;
goto cleanup;
}
if (ISREG(s1)) {
int i, c, status;
i = fork();
if (i == -1) {
i = fork();
if (i == -1) {
;
if (status != 0)
return (1);
;
if (status != 0)
return (1);
- (void) utime(target, &s1.st_atime);
+ /* kludge prior to utimes */
+ tv[0] = s1.st_atime;
+ tv[1] = s1.st_mtime;
+ (void) utime(target, tv);
goto cleanup;
}
error("%s: unknown file type %o", source, s1.st_mode);
goto cleanup;
}
error("%s: unknown file type %o", source, s1.st_mode);