From: Jim Meyering Date: Sun, 7 Nov 1999 11:03:20 +0000 (+0000) Subject: Add comment prior to removing #if LINK_FOLLOWS_SYMLINKS block X-Git-Tag: FILEUTILS-4_0j-trial~60 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8040d4c680d3d5ebde8af6276e7df046eae50154;p=thirdparty%2Fcoreutils.git Add comment prior to removing #if LINK_FOLLOWS_SYMLINKS block --- diff --git a/src/ln.c b/src/ln.c index d5db093b86..228f3ee41c 100644 --- 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