From: dumser@lesol1.dseg.ti.com (James Dumser)
Subject: patch output missing (b17.0, NT3.51, patch-2.1)
16 Dec 1996 15:28:05 -0800
Sender: daemon@cygnus.com
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <199612161835.MAA08174.cygnus.gnu-win32@lesol1.dseg.ti.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Original-To: eero@trema.com (Eero Raun)
Original-Cc: gnu-win32@cygnus.com
In-Reply-To: <2.2.32.19961216153109.00928ef8@hel.trema.com> from "Eero Raun" at Dec 16, 96 05:31:09 pm
X-Mailer: ELM [version 2.4 PL23]
Content-Length: 1345      
Original-Sender: owner-gnu-win32@cygnus.com

On Mon, 16 Dec 1996 17:31:09 +0200, Eero Raun <erro@trema.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@ti.com
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
