diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-10-04 16:02:53 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-10-04 16:02:53 +0000 |
commit | 13241dfbdd5c39c18296e75df118860e330417dd (patch) | |
tree | 1e089c68c099fbe9b1b6021b0579b929cd53f37f /coreutils | |
parent | aa3908d1b72c236264d91bed5db79ddec8e7b5a6 (diff) | |
download | busybox-w32-13241dfbdd5c39c18296e75df118860e330417dd.tar.gz busybox-w32-13241dfbdd5c39c18296e75df118860e330417dd.tar.bz2 busybox-w32-13241dfbdd5c39c18296e75df118860e330417dd.zip |
Patch from Matt Kraai: "When it encounters a problem creating a link, ln
shouldn't give up entirely but instead continue processing the rest of its
arguments. The attached patch does this."
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/ln.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/coreutils/ln.c b/coreutils/ln.c index 38e9b6763..e81dbafae 100644 --- a/coreutils/ln.c +++ b/coreutils/ln.c | |||
@@ -81,6 +81,7 @@ static int fs_link(const char *link_DestName, const char *link_SrcName, const in | |||
81 | 81 | ||
82 | extern int ln_main(int argc, char **argv) | 82 | extern int ln_main(int argc, char **argv) |
83 | { | 83 | { |
84 | int status = EXIT_SUCCESS; | ||
84 | int flag = 0; | 85 | int flag = 0; |
85 | int opt; | 86 | int opt; |
86 | 87 | ||
@@ -102,10 +103,10 @@ extern int ln_main(int argc, char **argv) | |||
102 | } | 103 | } |
103 | while(optind<(argc-1)) { | 104 | while(optind<(argc-1)) { |
104 | if (fs_link(argv[optind], argv[argc-1], flag)==FALSE) | 105 | if (fs_link(argv[optind], argv[argc-1], flag)==FALSE) |
105 | return(FALSE); | 106 | status = EXIT_FAILURE; |
106 | optind++; | 107 | optind++; |
107 | } | 108 | } |
108 | return(TRUE); | 109 | return(status); |
109 | } | 110 | } |
110 | 111 | ||
111 | /* | 112 | /* |