From 110fc0caccd033b653e099ebbd79889e50bb3643 Mon Sep 17 00:00:00 2001
From: Pavel Roskin <proski@gnu.org>
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

---
 ln.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'ln.c')

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)
 
 	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.2.3-55-g6feb