summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ln.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ln.c b/src/ln.c
index 67266997e..42bccfce7 100644
--- a/src/ln.c
+++ b/src/ln.c
@@ -343,7 +343,8 @@ do_link (const char *source, const char *dest)
{
/* Right after creating a hard link, do this: (note dest name and
source_stats, which are also the just-linked-destinations stats) */
- record_file (dest_set, dest, &source_stats);
+ if (! symbolic_link)
+ record_file (dest_set, dest, &source_stats);
if (verbose)
{