diff options
author | Jim Meyering <jim@meyering.net> | 1999-11-07 11:03:20 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-11-07 11:03:20 +0000 |
commit | 8040d4c680d3d5ebde8af6276e7df046eae50154 (patch) | |
tree | 5b3c00f9dc827ad13c5cfcf5bc8ef4088f67479d /src | |
parent | 6e8ec1114f5d26b725861d8d204bb5e1bd118ea6 (diff) | |
download | coreutils-8040d4c680d3d5ebde8af6276e7df046eae50154.tar.xz |
Add comment prior to removing #if LINK_FOLLOWS_SYMLINKS block
Diffstat (limited to 'src')
-rw-r--r-- | src/ln.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |