svn commit: r188405 - head/contrib/csup
Ulf Lilleengen
lulf at FreeBSD.org
Mon Feb 9 12:13:58 PST 2009
Author: lulf
Date: Mon Feb 9 20:13:55 2009
New Revision: 188405
URL: http://svn.freebsd.org/changeset/base/188405
Log:
- Fix an issue where file attributes were not installed correctly during a Touch
and SetAttrs operation.
- SetAttrs and Touch were incorrectly switched.
Modified:
head/contrib/csup/updater.c
Modified: head/contrib/csup/updater.c
==============================================================================
--- head/contrib/csup/updater.c Mon Feb 9 18:19:58 2009 (r188404)
+++ head/contrib/csup/updater.c Mon Feb 9 20:13:55 2009 (r188405)
@@ -1656,10 +1656,12 @@ updater_rcsedit(struct updater *up, stru
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");
More information about the svn-src-head
mailing list