- Fix an issue where file attributes were not installed correctly during a Touch
and SetAttrs operation. - SetAttrs and Touch were incorrectly switched.
This commit is contained in:
parent
e2757609ec
commit
71f35f385d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188405
@ -1656,10 +1656,12 @@ updater_rcsedit(struct updater *up, struct file_update *fup, char *name,
|
||||
|
||||
if (rf == NULL) {
|
||||
fattr_maskout(oldfattr, ~FA_MODTIME);
|
||||
if (fattr_equal(oldfattr, sr->sr_serverattr) == 0)
|
||||
if (fattr_equal(oldfattr, sr->sr_serverattr))
|
||||
lprintf(1, " SetAttrs %s", fup->coname);
|
||||
else
|
||||
lprintf(1, " Touch %s", fup->coname);
|
||||
/* Install new attributes. */
|
||||
fattr_install(sr->sr_serverattr, fup->destpath, NULL);
|
||||
if (fup->attic)
|
||||
lprintf(1, " -> Attic");
|
||||
lprintf(1, "\n");
|
||||
|
Loading…
Reference in New Issue
Block a user