- 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:
Ulf Lilleengen 2009-02-09 20:13:55 +00:00
parent e2757609ec
commit 71f35f385d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188405

View File

@ -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");