From cd88376b05b3609787d9323ff944b0ce6a3273c8 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 2 Jul 2001 06:42:35 +0000 Subject: (do_link): Test the boolean symbolic_link, not the function, symlink. Patch by Frederik Eaton. --- src/ln.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ln.c') diff --git a/src/ln.c b/src/ln.c index c7345a47a..ec85c8100 100644 --- a/src/ln.c +++ b/src/ln.c @@ -224,7 +224,7 @@ do_link (const char *source, const char *dest) equivalent: `ln -f k k' (with or without --backup) to get beyond this point, because the error message you'd get is misleading. */ - && (backup_type == none || !symlink) + && (backup_type == none || !symbolic_link) && (!symbolic_link || stat (source, &source_stats) == 0) && source_stats.st_dev == dest_stats.st_dev && source_stats.st_ino == dest_stats.st_ino -- cgit v1.2.3-54-g00ecf