[Unison-hackers] osxsupport.c

Ben Willmore ben at opendarwin.org
Thu Sep 22 01:10:19 EDT 2005


On 9/20/05, Jerome Vouillon <Jerome.Vouillon at pps.jussieu.fr> wrote:
> On Mon, Sep 19, 2005 at 07:11:41AM -0700, Ben Willmore wrote:
> > As unison maintainer in Fink (mac os x), I inherited the included
> > patch against 2.10.2.  I wrongly assumed it had been incorporated into
> > newer versions.
<snip>
> synchronization is unlikely to fail (this may happen only if the
> attributes of a read-only files are changed but its contents remain
> unchanged).  So the patch is not as important as it used to be.
<snip>
> I'm not sure whether this is an argument to drop it (the
> synchronization is unlikely to fail) or to apply it (the patch is
> unlikely to do any harm)...

This sounds like a clear argument in favour of the patch to me: if it
fixes a real problem (systematic  failure to synchronise
attribute-changes on read-only files) and is unlikely to do any harm,
it seems worth having.

Am I right in understanding that the risk is that a read-only file may
be left owner-writable in the event of a crash?  Can the same occur if
a crash happens between the setting of the attributes and the setting
of the permisssions? If so, it seems the negative impact of the patch
is minimal.

Ben

Ben


More information about the Unison-hackers mailing list