Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com Message-ID: <010201c22d43$7121e260$d500a8c0@study2> From: "Robert Collins" To: References: <5.1.0.14.2.20020716182754.02f3df30@pop3.cris.com> <5.1.0.14.2.20020716185624.03113ce8@pop3.cris.com> <5.1.0.14.2.20020716193950.03031af8@pop3.cris.com> <006701c22d3f$d6b486e0$d500a8c0@study2> <20020717033631.GA25069@redhat.com> Subject: Re: gzip.exe as symlink breaks NTEmacs's jka-compr.el Date: Wed, 17 Jul 2002 13:38:27 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 I really gotta stop reading between the lines, and get the cygwin source on this PC. I thought Randall had tried ln on a FAT partition and had it fail. Ah well. Rob ----- Original Message ----- From: "Christopher Faylor" To: Sent: Wednesday, July 17, 2002 1:36 PM Subject: Re: gzip.exe as symlink breaks NTEmacs's jka-compr.el > >> It occurred to me that Cygwin1.dll might be making the copy on FAT file > >> systems, but that didn't seem to make much sense, since the "hard link > >> fails on FAT" case seems awfully close to the "cross-dev link fails" case > >> that a conventional Unix "ln" already has to deal with. > > > >Huh? Cygwin1.dll doesn't make a copy on FAT - it fails as you have just > >noted.. Setup.exe's cygfile:// handler makes copies. > > Actually, the Cygwin link() function does make a copy on a FAT partition: > > extern "C" int > _link (const char *a, const char *b) > { > . > . > . > docopy: > /* do this with a copy */ > if (CopyFileA (real_a, real_b, 1)) > res = 0; > else > __seterrno (); > . > . > . > > cgf > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/