projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f28b90
)
Patch from Bastian Blank to fix debian bug #226722, test case:
author
Glenn L McGrath
<bug1@ihug.co.nz>
Thu, 8 Jan 2004 10:51:09 +0000
(10:51 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Thu, 8 Jan 2004 10:51:09 +0000
(10:51 -0000)
mkdir foo
touch foo/bar
ln -s bar foo/baz
coreutils/ln.c
patch
|
blob
|
history
diff --git
a/coreutils/ln.c
b/coreutils/ln.c
index
0640c66
..
7c282b0
100644
(file)
--- a/
coreutils/ln.c
+++ b/
coreutils/ln.c
@@
-73,8
+73,7
@@
extern int ln_main(int argc, char **argv)
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
@@
extern int ln_main(int argc, char **argv)
return status;
}
-
-
-
-
-
-
-
-
-
-