aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coreutils/ln.c2
-rw-r--r--ln.c2
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)
96 96
97 linkIntoDirFlag = isDirectory(linkName, TRUE, NULL); 97 linkIntoDirFlag = isDirectory(linkName, TRUE, NULL);
98 98
99 if ((argc > 3) && !linkIntoDirFlag) { 99 if ((argc >= 3) && linkIntoDirFlag == FALSE) {
100 fprintf(stderr, not_a_directory, "ln", linkName); 100 fprintf(stderr, not_a_directory, "ln", linkName);
101 exit FALSE; 101 exit FALSE;
102 } 102 }
diff --git a/ln.c b/ln.c
index 634c9905d..371482251 100644
--- a/ln.c
+++ b/ln.c
@@ -96,7 +96,7 @@ extern int ln_main(int argc, char **argv)
96 96
97 linkIntoDirFlag = isDirectory(linkName, TRUE, NULL); 97 linkIntoDirFlag = isDirectory(linkName, TRUE, NULL);
98 98
99 if ((argc > 3) && !linkIntoDirFlag) { 99 if ((argc >= 3) && linkIntoDirFlag == FALSE) {
100 fprintf(stderr, not_a_directory, "ln", linkName); 100 fprintf(stderr, not_a_directory, "ln", linkName);
101 exit FALSE; 101 exit FALSE;
102 } 102 }