[darcs-devel] [issue2086] darcs does not preserve _darcs/index permissions

Ganesh Sittampalam bugs at darcs.net
Thu Jul 2 06:09:30 UTC 2015


Ganesh Sittampalam <ganesh at earth.li> added the comment:

The test for this fails on my machine as-is, because my default 
umask is 022. If I change it to 002, or add an explicit --umask 002 
to the second record command in the test, then it passes.

Technically speaking a umask is only supposed to affect the 
permissions for newly-created files, so it may be that the original 
reporters are expecting to be able to change the permissions on 
_darcs/index after creation to something that conflicts with their 
umask - e.g. 0664 with a umask of 022 - and have that be preserved. 
In practice that doesn't work because I think darcs recreates the 
index file when it updates it.

If anyone cares about that scenario please reopen this bug for 
discussion otherwise I'm going to change the test to be robust 
against the runner's umask and leave the bug resolved.

----------
status: unknown -> resolved

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue2086>
__________________________________


More information about the darcs-devel mailing list