[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ln -P/-L and linkat
From: |
Eric Blake |
Subject: |
ln -P/-L and linkat |
Date: |
Thu, 03 Sep 2009 21:39:25 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Now that POSIX 2008 requires ln to support user choice of whether to
create hard links to symlinks, we can probably get rid of
ENABLE_HARD_LINK_TO_SYMLINK_WARNING in the ln.c source code. I noticed
this while considering how to implement linkat in gnulib. I guess
platforms that follow link() by default will just have to fail with ENOSYS
since they don't support -P (and keep their default of -L), while systems
like GNU/Linux that have always behaved like -P are now justified. Do we
want to make ln's behavior conditional on _POSIX2_VERSION (where
conformance to 2001 tries to imply -L, even on Linux where it is more
natural to imply -P), or is it not worth worrying about?
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkqgi+0ACgkQ84KuGfSFAYAV/gCeMbQNhg4z0G2qNOv1DuIZYCg9
EooAoMhShSReV6IsAfnn6s0QWR2V9Veu
=aYbs
-----END PGP SIGNATURE-----
- ln -P/-L and linkat,
Eric Blake <=