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
This commit is contained in:
Pavel Roskin 2000-06-18 00:02:24 +00:00
parent 74c66ad06e
commit 110fc0cacc
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

2
ln.c
View File

@ -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;
}