[Unison-hackers] [unison-svn] r389 - in trunk: doc src src/lwt src/uimacnew src/uimacnew/English.lproj/MainMenu.nib src/uimacnew/uimacnew.xcodeproj
Jerome Vouillon
Jerome.Vouillon at pps.jussieu.fr
Mon Dec 28 12:25:38 EST 2009
> Modified: trunk/src/props.ml
> ===================================================================
> --- trunk/src/props.ml 2009-08-18 13:14:35 UTC (rev 388)
> +++ trunk/src/props.ml 2009-11-29 13:56:09 UTC (rev 389)
> @@ -215,7 +215,7 @@
>
> let check fspath path stats (fp, mask) =
> let fp' = stats.Unix.LargeFile.st_perm in
> - if fp land mask <> fp' land mask then
> + if (not (Prefs.read dontChmod)) && (fp land mask <> fp' land mask) then
> raise
> (Util.Transient
> (Format.sprintf
>
This looks wrong. If Unison does not fail here when the permissions
do not agree, it will report a spurious permission update next time it
is run, as the archive contents will not be in agreement with the
filesystem contents.
I guess the correct fix is either the dontchmod preference should
imply perms=0, or it should be ignored when the perms preference is
not 0.
-- Jerome
More information about the Unison-hackers
mailing list