busybox: fail if --install is not given an absolute path
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
9ac5596a51
commit
5c942713b7
@ -721,10 +721,9 @@ static int busybox_main(char **argv)
|
|||||||
* In such case, better use argv[0] as symlink target
|
* In such case, better use argv[0] as symlink target
|
||||||
* if it is a full path name.
|
* if it is a full path name.
|
||||||
*/
|
*/
|
||||||
if (argv[0][0] == '/')
|
if (argv[0][0] != '/')
|
||||||
busybox = argv[0];
|
bb_error_msg_and_die("'%s' is not an absolute path", argv[0]);
|
||||||
else
|
busybox = argv[0];
|
||||||
busybox = bb_busybox_exec_path;
|
|
||||||
}
|
}
|
||||||
/* busybox --install [-s] [DIR]:
|
/* busybox --install [-s] [DIR]:
|
||||||
* -s: make symlinks
|
* -s: make symlinks
|
||||||
|
Loading…
x
Reference in New Issue
Block a user