[darcs-devel] [issue826] insufficient permissions in target repo lead to corruption

Zooko bugs at darcs.net
Thu May 1 13:23:08 UTC 2008


New submission from Zooko <zooko at zooko.com>:

Zandr reported this:

boreta-5:www boreta$ darcs push justin at dev:/home/darcs/www
Pushing to "justin at dev:/home/darcs/www"...
Wed Apr 30 17:58:10 PDT 2008  justin at allmydata.com
  * website - new header logo with text
Shall I push this patch? (1/1)  [ynWvpxdaqjk], or ? for help: y
Reading pristine 398/784
Reading pristine 652/784
Warning: ./.inc/brands/amd/header.inc.php-0: takeFile
./.inc/brands/amd/header.inc.php-0 in /home/darcs/www: openFd: permission denied
(Permission denied)
Warning: ./.src/amd/default.css-0: takeFile ./.src/amd/default.css-0 in
/home/darcs/www: openFd: permission denied (Permission denied)
Warning: ./.src/amd/default.css-0: takeFile ./.src/amd/default.css-0 in
/home/darcs/www: openFd: permission denied (Permission denied)
Warning: ./.src/amd/default.css-0: takeFile ./.src/amd/default.css-0 in
/home/darcs/www: openFd: permission denied (Permission denied)
Finished applying...
Push successful.
boreta-5:www boreta$

I did an experiment -- making a file unreadable and then pushing a patch that
touched that file -- and got a different problem:

 wonwin-mcbrootles-computer:~/darcsexperiment/y$ darcs push -a -v ../x
Pushing to "../x"...
We have the following patches to push:
Wed Apr 30 19:40:30 MDT 2008  z2
  * add

darcs failed:  Error applying patch to working dir:
./file: openBinaryFile: permission denied (Permission denied)
Apply failed!

In this latter case the target repository has been "corrupted" inasmuch as the
working directory differs from the pristine, which is not supposed to happen on
a push (without allow-mark-conflicts).

----------
messages: 4422
nosy: beschmi, dagit, tommy, zooko
priority: bug
status: unread
title: insufficient permissions in target repo lead to corruption

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


More information about the darcs-devel mailing list