On Wed, Jan 07, 2004 at 03:39:08PM -0800, Matt Kraai wrote: > A patch that fixes it is attached. the patch is broken, the proper behavior is to ignore non-existant source files in symlink mode. bastian -- Spock: We suffered 23 casualties in that attack, Captain.
Index: coreutils/ln.c
===================================================================
--- coreutils/ln.c (revision 141)
+++ coreutils/ln.c (working copy)
@@ -74,7 +74,7 @@
src_name = src;
}
- if (stat(*argv, &statbuf)) {
+ if (!(flag & LN_SYMLINK) && stat(*argv, &statbuf)) {
bb_perror_msg(*argv);
status = EXIT_FAILURE;
free(src_name);
Attachment:
signature.asc
Description: Digital signature