[BusyBox-cvs] busybox/coreutils ln.c,1.43,1.44

Glenn McGrath bug1 at busybox.net
Thu Jan 8 10:51:12 UTC 2004


Update of /var/cvs/busybox/coreutils
In directory nail:/tmp/cvs-serv29214/coreutils

Modified Files:
	ln.c 
Log Message:
Patch from Bastian Blank to fix debian bug #226722, test case:
 mkdir foo
 touch foo/bar
 ln -s bar foo/baz


Index: ln.c
===================================================================
RCS file: /var/cvs/busybox/coreutils/ln.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- ln.c	31 Dec 2003 23:10:44 -0000	1.43
+++ ln.c	8 Jan 2004 10:51:09 -0000	1.44
@@ -73,8 +73,7 @@
 			free(src_name);
 			src_name = src;
 		}
-
-		if (stat(*argv, &statbuf)) {
+		if (!(flag & LN_SYMLINK) && stat(*argv, &statbuf)) {
 			bb_perror_msg(*argv);
 			status = EXIT_FAILURE;
 			free(src_name);
@@ -101,13 +100,3 @@
 
 	return status;
 }
-
-
-
-
-
-
-
-
-
-




More information about the busybox-cvs mailing list