[BusyBox] [PATCH] ln -s
Bastian Blank
waldi at debian.org
Thu Jan 8 10:35:57 UTC 2004
hi folks
this patch fixes ln -s. it is not appropiate to check for the existance
of the linked file.
see Debian#226722
bastian
--
"That unit is a woman."
"A mass of conflicting impulses."
-- Spock and Nomad, "The Changeling", stardate 3541.9
-------------- next part --------------
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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.busybox.net/pipermail/busybox/attachments/20040108/c8df1bca/attachment-0002.pgp
More information about the busybox
mailing list