[darcs-devel] [issue226] pulling a patch as wrong user corrupts directory

Mathieu Boespflug bugs at darcs.net
Tue Aug 1 18:09:58 PDT 2006


New submission from Mathieu Boespflug <mboes at galois.com>:

Say a darcs repository was created inside a subdirectory in /home/foo
by user foo. If root pulls a patch into that repo then
_darcs/inventory will change ownership from foo to root. Now any
subsequent pull by user foo will both fail and leave the repository in
an incosistent state, because it cannot record the presence of the new
patches in _darcs/invenory (permission denied). Moreover, patches
cannot be unrecorded or unpulled, even though they have been applied.

darcs should either not change the ownership of _darcs/inventory or
make pulls atomic, ie if darcs pull fails then none of the patches are
applied and the repository is left in its initial state.

Thanks,

Mathieu Boespflug

----------
messages: 834
nosy: droundy, mboes, tommy
priority: bug
status: unread
title: pulling a patch as wrong user corrupts directory

____________________________________
Darcs issue tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue226>
____________________________________




More information about the darcs-devel mailing list