projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ac5596
)
busybox: fail if --install is not given an absolute path
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 12 Mar 2011 05:08:28 +0000
(06:08 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 12 Mar 2011 05:08:28 +0000
(06:08 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/appletlib.c
patch
|
blob
|
history
diff --git
a/libbb/appletlib.c
b/libbb/appletlib.c
index 69cac2e9a8b55e52d22f399f3315d227b7fd3f45..fc84d36ece86484f3a026bb624d2735ff66935c1 100644
(file)
--- a/
libbb/appletlib.c
+++ b/
libbb/appletlib.c
@@
-721,10
+721,9
@@
static int busybox_main(char **argv)
* In such case, better use argv[0] as symlink target
* if it is a full path name.
*/
- if (argv[0][0] == '/')
- busybox = argv[0];
- else
- busybox = bb_busybox_exec_path;
+ if (argv[0][0] != '/')
+ bb_error_msg_and_die("'%s' is not an absolute path", argv[0]);
+ busybox = argv[0];
}
/* busybox --install [-s] [DIR]:
* -s: make symlinks