diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-06-22 00:02:56 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-06-22 00:02:56 +0000 |
commit | 6f9985e2f26a6fce30d21201d4115ac807e07727 (patch) | |
tree | 3b82247144b338e648f04348918ac6fc5a1e3b2e /coreutils/ln.c | |
parent | addc9c28ad2d8965456b6b459de964e9f4892919 (diff) | |
download | busybox-w32-6f9985e2f26a6fce30d21201d4115ac807e07727.tar.gz busybox-w32-6f9985e2f26a6fce30d21201d4115ac807e07727.tar.bz2 busybox-w32-6f9985e2f26a6fce30d21201d4115ac807e07727.zip |
Pavel Roskin <proski@gnu.org> just found a nasty memory
corruption bug. Disabling 'ln -n' till it is fixed.
-Erik
Diffstat (limited to 'coreutils/ln.c')
-rw-r--r-- | coreutils/ln.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/coreutils/ln.c b/coreutils/ln.c index 16389a289..57e412dc8 100644 --- a/coreutils/ln.c +++ b/coreutils/ln.c | |||
@@ -40,8 +40,10 @@ static const char ln_usage[] = | |||
40 | "\t-s\tmake symbolic links instead of hard links\n" | 40 | "\t-s\tmake symbolic links instead of hard links\n" |
41 | 41 | ||
42 | "\t-f\tremove existing destination files\n" | 42 | "\t-f\tremove existing destination files\n" |
43 | #if 0 | ||
43 | "\t-n\tno dereference symlinks - treat like normal file\n" | 44 | "\t-n\tno dereference symlinks - treat like normal file\n" |
44 | #endif | 45 | #endif |
46 | #endif | ||
45 | ; | 47 | ; |
46 | 48 | ||
47 | static int symlinkFlag = FALSE; | 49 | static int symlinkFlag = FALSE; |
@@ -103,14 +105,18 @@ extern int ln_main(int argc, char **argv) | |||
103 | } | 105 | } |
104 | 106 | ||
105 | while (argc-- >= 2) { | 107 | while (argc-- >= 2) { |
108 | #if 0 | ||
106 | char srcName[BUFSIZ + 1]; | 109 | char srcName[BUFSIZ + 1]; |
107 | int nChars, status; | 110 | int nChars; |
111 | #endif | ||
112 | int status; | ||
108 | 113 | ||
109 | if (strlen(*argv) > BUFSIZ) { | 114 | if (strlen(*argv) > BUFSIZ) { |
110 | fprintf(stderr, name_too_long, "ln"); | 115 | fprintf(stderr, name_too_long, "ln"); |
111 | exit FALSE; | 116 | exit FALSE; |
112 | } | 117 | } |
113 | 118 | ||
119 | #if 0 | ||
114 | if (followLinks == FALSE) { | 120 | if (followLinks == FALSE) { |
115 | strcpy(srcName, *argv); | 121 | strcpy(srcName, *argv); |
116 | } else { | 122 | } else { |
@@ -119,6 +125,7 @@ extern int ln_main(int argc, char **argv) | |||
119 | nChars = readlink(*argv, srcName, BUFSIZ); | 125 | nChars = readlink(*argv, srcName, BUFSIZ); |
120 | srcName[nChars] = '\0'; | 126 | srcName[nChars] = '\0'; |
121 | } | 127 | } |
128 | #endif | ||
122 | 129 | ||
123 | if (removeoldFlag == TRUE) { | 130 | if (removeoldFlag == TRUE) { |
124 | status = (unlink(linkName) && errno != ENOENT); | 131 | status = (unlink(linkName) && errno != ENOENT); |