darcs

Issue 1733 Darcs assumes $HOME is absolute

Title Darcs assumes $HOME is absolute
Priority bug Status wont-fix
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, twb
Assigned To
Topics

Created on 2010-01-18.08:30:38 by twb, last changed 2010-01-18.08:42:20 by kowey.

Messages
msg9843 (view) Author: twb Date: 2010-01-18.08:30:33
This is probably a "not worth fixing", but I noticed that Darcs seems
to just *ASSUME* $HOME is an absolute path.  Couple with its use of
chdir(2) to the repo root before doing anything, this results in a
failure:

    $ with-temp-dir sh -c 'HOME=. darcs get http://code.haskell.org/yi'
    with-temp-dir: entering directory `/tmp/with-temp-dir.x6ukO5'
    darcs:
    ./.darcs/cache/pristine.hashed/0000000931-848fba01e3390b4e9ac197f3712bd018b592a61b13be6180a3469957d1ea08e8-new_c2c8459d74b10fb739a6f62f34ff2245:
    renameFile: does not exist (No such file or directory)
    [...]

If I use $PWD instead of ., it works:

    $ with-temp-dir sh -c 'HOME=$PWD darcs get http://code.haskell.org/yi'
    with-temp-dir: entering directory `/tmp/with-temp-dir.QIqjJL'
    Copying patches, to get lazy repository hit ctrl-C...
    Copying patches 55/4117
    [...]
msg9844 (view) Author: kowey Date: 2010-01-18.08:42:18
I'll declare this a wont-fix unless somebody really wants to fight for it!
History
Date User Action Args
2010-01-18 08:30:38twbcreate
2010-01-18 08:42:20koweysetpriority: bug
status: unknown -> wont-fix
messages: + msg9844
nosy: + kowey