diff options
author | Ulf Lilleengen <lulf@FreeBSD.org> | 2009-02-09 20:13:55 +0000 |
---|---|---|
committer | Ulf Lilleengen <lulf@FreeBSD.org> | 2009-02-09 20:13:55 +0000 |
commit | 71f35f385d90dde031f5ad4e3dc9c3a850e6be91 (patch) | |
tree | 2e3eb41d54eba1ac775d1314bd041540d145a78b /contrib | |
parent | e2757609ec82e2fc369401bfe8307f1df3b28f67 (diff) | |
download | src-71f35f385d90dde031f5ad4e3dc9c3a850e6be91.tar.gz src-71f35f385d90dde031f5ad4e3dc9c3a850e6be91.zip |
- Fix an issue where file attributes were not installed correctly during a Touch
and SetAttrs operation.
- SetAttrs and Touch were incorrectly switched.
Notes
Notes:
svn path=/head/; revision=188405
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/csup/updater.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/csup/updater.c b/contrib/csup/updater.c index 3dc10c59c9b8..20544ecb50dd 100644 --- a/contrib/csup/updater.c +++ b/contrib/csup/updater.c @@ -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"); |