It is only allowed for linking to a directory
But linking to a directory still fails and may be removed
linkIntoDirFlag = isDirectory(linkName, TRUE, NULL);
- if ((argc > 3) && !linkIntoDirFlag) {
+ if ((argc >= 3) && linkIntoDirFlag == FALSE) {
fprintf(stderr, not_a_directory, "ln", linkName);
exit FALSE;
}
linkIntoDirFlag = isDirectory(linkName, TRUE, NULL);
- if ((argc > 3) && !linkIntoDirFlag) {
+ if ((argc >= 3) && linkIntoDirFlag == FALSE) {
fprintf(stderr, not_a_directory, "ln", linkName);
exit FALSE;
}