This is the mail archive of the
cygwin
mailing list for the Cygwin project.
POSIX-compliance of link(2)
- From: Eric Blake <ebb9 at byu dot net>
- To: cygwin at cygwin dot com
- Date: Thu, 17 Mar 2005 06:07:07 -0700
- Subject: POSIX-compliance of link(2)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to POSIX, creating a hardlink to a symlink is supposed to be
impossible, because link(2) is supposed to resolve symlinks before
performing the actual link. See
http://www.opengroup.org/austin/mailarchives/ag/msg08153.html.
$ touch a
$ ln -s a b
$ link b c # Bug: c should be a hard link to a, not b
$ ls -l a b c
- -rw-r--r-- 1 eblake None 0 Mar 15 19:04 a
lrwxrwxrwx 2 eblake None 1 Mar 15 19:04 b -> a
lrwxrwxrwx 2 eblake None 1 Mar 15 19:04 c -> a
- --
Life is short - so eat dessert first!
Eric Blake ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCOYD684KuGfSFAYARAvD7AKDCuNgYMbh+/ABSGkVgYsQL8TpyogCfds5H
OCJpNzpvCqSv5RbLTuyoVY8=
=aOAm
-----END PGP SIGNATURE-----
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/