Use the correct timestamp for the -C -p case when the comparison fails.
A garbage timestamp was used for at least installing /dev/null with -C -p when the target doesn't already exist.
This commit is contained in:
parent
b7d42e5fe1
commit
d0ce9bc4dc
@ -434,8 +434,8 @@ different:
|
||||
printf("install: %s -> %s\n",
|
||||
from_name, old_to_name);
|
||||
if (dopreserve && stat(from_name, ×tamp_sb) == 0) {
|
||||
utb.actime = from_sb.st_atime;
|
||||
utb.modtime = from_sb.st_mtime;
|
||||
utb.actime = timestamp_sb.st_atime;
|
||||
utb.modtime = timestamp_sb.st_mtime;
|
||||
(void)utime(to_name, &utb);
|
||||
}
|
||||
moveit:
|
||||
|
Loading…
x
Reference in New Issue
Block a user