diff options
author | Pavel Roskin <proski@gnu.org> | 2000-06-18 00:02:24 +0000 |
---|---|---|
committer | Pavel Roskin <proski@gnu.org> | 2000-06-18 00:02:24 +0000 |
commit | 110fc0caccd033b653e099ebbd79889e50bb3643 (patch) | |
tree | 04270a5888f7830bac49463bf21e51b118abdfcd /coreutils/ln.c | |
parent | 74c66ad06ebc5bfbf7187ed53196625462db1a9a (diff) | |
download | busybox-w32-110fc0caccd033b653e099ebbd79889e50bb3643.tar.gz busybox-w32-110fc0caccd033b653e099ebbd79889e50bb3643.tar.bz2 busybox-w32-110fc0caccd033b653e099ebbd79889e50bb3643.zip |
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
Diffstat (limited to 'coreutils/ln.c')
-rw-r--r-- | coreutils/ln.c | 2 |
1 files changed, 1 insertions, 1 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 | } |