]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Add comment prior to removing #if LINK_FOLLOWS_SYMLINKS block
authorJim Meyering <jim@meyering.net>
Sun, 7 Nov 1999 11:03:20 +0000 (11:03 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 7 Nov 1999 11:03:20 +0000 (11:03 +0000)
src/ln.c

index d5db093b86e29809b8c0ad293dc068241eb4da75..228f3ee41c022b1f67765fd6d053f1d76f4ada7d 100644 (file)
--- a/src/ln.c
+++ b/src/ln.c
@@ -165,7 +165,14 @@ do_link (const char *source, const char *dest)
             if SOURCE is a dangling symlink.  */
          if (errno == ENOENT && lstat (source, &source_stats) == 0)
            {
-             /* FIXME: Consider giving a warning that this is not portable.  */
+             /* Allow a hard link to a dangling symlink.  */
+             /* But here's a little explanation before I remove the whole
+                enclosing #if block:
+
+                On systems where LINK_FOLLOWS_SYMLINKS, it is not possible
+                to create a hard link to a dangling symlink, so the test above
+                would be pointless.
+             */
            }
          else
 #endif