From 110fc0caccd033b653e099ebbd79889e50bb3643 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Sun, 18 Jun 2000 00:02:24 +0000 Subject: Check for 3 and more arguments was incorrect It is only allowed for linking to a directory But linking to a directory still fails and may be removed --- coreutils/ln.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coreutils') diff --git a/coreutils/ln.c b/coreutils/ln.c index 634c990..3714822 100644 --- a/coreutils/ln.c +++ b/coreutils/ln.c @@ -96,7 +96,7 @@ extern int ln_main(int argc, char **argv) linkIntoDirFlag = isDirectory(linkName, TRUE, NULL); - if ((argc > 3) && !linkIntoDirFlag) { + if ((argc >= 3) && linkIntoDirFlag == FALSE) { fprintf(stderr, not_a_directory, "ln", linkName); exit FALSE; } -- cgit v1.1