Patch from Bastian Blank to fix debian bug #226722, test case:
mkdir foo touch foo/bar ln -s bar foo/baz
This commit is contained in:
parent
1f28b90a9c
commit
95f75a3dcd
@ -73,8 +73,7 @@ extern int ln_main(int argc, char **argv)
|
|||||||
free(src_name);
|
free(src_name);
|
||||||
src_name = src;
|
src_name = src;
|
||||||
}
|
}
|
||||||
|
if (!(flag & LN_SYMLINK) && stat(*argv, &statbuf)) {
|
||||||
if (stat(*argv, &statbuf)) {
|
|
||||||
bb_perror_msg(*argv);
|
bb_perror_msg(*argv);
|
||||||
status = EXIT_FAILURE;
|
status = EXIT_FAILURE;
|
||||||
free(src_name);
|
free(src_name);
|
||||||
@ -101,13 +100,3 @@ extern int ln_main(int argc, char **argv)
|
|||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user