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:
parent
74c66ad06e
commit
110fc0cacc
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user