X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-10.6 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Message-ID: <5082FA2E.5010208@redhat.com> Date: Sat, 20 Oct 2012 13:23:26 -0600 From: Eric Blake User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121009 Thunderbird/16.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Ln can't hard link into named directory References: <20121020182253 DOT 248720 AT gmx DOT com> In-Reply-To: <20121020182253.248720@gmx.com> OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig54B5E246D5BBDA0A5895F30D" X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --------------enig54B5E246D5BBDA0A5895F30D Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 10/20/2012 12:22 PM, Lawrence Mayer wrote: > Ln can't hard link into named directory. >=20 > e.g. >=20 > Ln ... TARGET... DIRECTORY (3rd form) >=20 > and >=20 > ln ... -t DIRECTORY TARGET... (4th form) >=20 > both fail when DIRECTORY is named (but appear to work when DIRECTORY =3D = '.' (current directory)) >=20 > returning error message >=20 > 'ln: Cannot create a file when that file already exists.' when TARGET is = named file >=20 > or >=20 > 'ln: The filename, directory name, or volume label syntax is incorrect.' = when TARGET is '*' (wildcard). Please show us the actual command line you typed, rather than a description of it; even better, starting from an empty directory, show us a sequence of mkdir and touch commands that will get us into the same state to reproduce the message you are complaining about. However, I suspect that this is not a bug in ln, but a misunderstanding on your part. Cygwin, like Linux, prohibits the creation of hard links to a directory, and POSIX permits this restriction. Just because Solaris chose to allow hard links to a directory does not make it a good idea. --=20 Eric Blake eblake AT redhat DOT com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enig54B5E246D5BBDA0A5895F30D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iQEcBAEBCAAGBQJQgvouAAoJEKeha0olJ0NqG/oH/jht+VPGocS/zv0f0/m0+1Tr TOYDgU8CHJ/9LgUm5iPMsK0v+7P4rbd0fbzTVIfzpJhi4f5oEIj+O9PnGZgpmXG3 bot1NaYKoIZMj4ByjJEYsCCZjtS5IJPfyXusMZ5Ft1Ny1ZN47YITg7bPim/kx/8F OfTqWtZQ1afx6aF2hZFI5UU/XiWZUvxkziE+B9s9jdeRfUzRZUeoSYGaaO4rEIDB dv8SyNYHWLP13wh86hJyIFN5NhIp2aCdukuVu8QmEhUduXkhPxskb6g2eoUFJ0T9 djxe/TN/RMpZ+mNeM34Zt4dy9xMNmRLtLejnXlD4QqoetR3JSEZQGKcLkD/iXPs= =vIUV -----END PGP SIGNATURE----- --------------enig54B5E246D5BBDA0A5895F30D--