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."
diff --git a/coreutils/ln.c b/coreutils/ln.c
index 38e9b67..e81dbaf 100644
--- a/coreutils/ln.c
+++ b/coreutils/ln.c
@@ -81,6 +81,7 @@
extern int ln_main(int argc, char **argv)
{
+ int status = EXIT_SUCCESS;
int flag = 0;
int opt;
@@ -102,10 +103,10 @@
}
while(optind<(argc-1)) {
if (fs_link(argv[optind], argv[argc-1], flag)==FALSE)
- return(FALSE);
+ status = EXIT_FAILURE;
optind++;
}
- return(TRUE);
+ return(status);
}
/*