Mail Archives: cygwin/1996/12/16/15:28:05
On Mon, 16 Dec 1996 17:31:09 +0200, Eero Raun <erro AT trema DOT com> wrote:
>You are probably using patch on some other drive than c:?
>Patch prepares the new file in /tmp and tries to rename it
>to the active directory. Rename fails if the source and
>destination are on different filesystems.
If this is the case, then there is a bug in cygwin32's rename. patch
knows rename will fail if they are on different "filesystems" (drives)
and copies the output file if that happens. While I didn't try to track
down what cygwin32's rename does incorrectly (wrong return codes?), I
did verify it was the problem by using the rename.c supplied with
patch-2.1 instead. Doing so fixes the problem on my system -- output
files are now created.
> You shouldn't
>mount /tmp, just have one in the root of every physical drive.
Sounds like you're using a non-cygwin32 implementation -- drive letters
don't exist in cygwin32. If I run patch from /apps/test (E:\ is mounted as
/apps), how is patch supposed to figure out it wants put its temporary
files in E:\tmp (/apps/tmp) instead of /tmp? Even if it could, why would
the Unix-derived GNU patch program attempt to do so? If it did, you
would have to have a tmp directory at the root of each filesystem in
Unix as well.
--
James Dumser 972-462-5335 dumser AT ti DOT com
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -