mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
Add comment prior to removing #if LINK_FOLLOWS_SYMLINKS block
This commit is contained in:
1 parent
6e8ec1114f
commit
8040d4c680
1 file changed
+8
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user