diff options
-rw-r--r-- | coreutils/ln.c | 2 | ||||
-rw-r--r-- | ln.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/ln.c b/coreutils/ln.c index 634c9905d..371482251 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; } @@ -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; } |