mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 15:12:44 +00:00
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
cdb5588a50
commit
e6ebb8d8a8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66813
@ -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…
Reference in New Issue
Block a user