[darcs-users] darcs-patcher can't create a temporary file?

David Roundy droundy at abridgegame.org
Sat Aug 2 10:32:23 UTC 2003


On Fri, Aug 01, 2003 at 09:26:28PM +0200, Shae Matijs Erisson wrote:
> I've just installed darcs, set up a repo, etc
> Anyways, I get this error:
> Diagnostic-Code: X-Postfix; Command died with status 1:
>     "/usr/lib/darcs-patcher". Command output:  Fail: permission denied Action:
>     Failed to create temporary file darcs Reason: Permission denied
>
> I tracked through the sources, it looks to me like mkstemp in Lock.lhs is not
> specifying a directory in which to create the temporary files.
> 
> I think postfix is trying to run darcs-patcher in some random directory that's
> not /tmp and that's causing this problem.

Darcs-patcher isn't intended to be run in /tmp, so that's not the problem.
It should be run in the home directory of the repository user, in which the
repo user darn well better have write permission.

What OS are you using, and what version of darcs? And can you check the
permissions of the home directory of the repo user (which should be
something like /var/lib/darcs/repos/repo-name)?

Finally, the contents of /var/lib/darcs/repos/repo-name/.forward may be
instructive.

I suppose perhaps that postfix may not set the working directory to be the
home directory prior to running pipes specified in .forward...
-- 
David Roundy
http://www.abridgegame.org




More information about the darcs-users mailing list