diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-28 06:49:03 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-28 06:49:03 +0000 |
| commit | 1aa7e477b1b727db77cac2d717f0fcca40587f78 (patch) | |
| tree | 247171517f0e01d32a71a5e96f4bef462cc0e9c6 /libbb/execable.c | |
| parent | 79c6904faff1ebd4bf4b7d9cd0c20ca70f4cec75 (diff) | |
| download | busybox-w32-1aa7e477b1b727db77cac2d717f0fcca40587f78.tar.gz busybox-w32-1aa7e477b1b727db77cac2d717f0fcca40587f78.tar.bz2 busybox-w32-1aa7e477b1b727db77cac2d717f0fcca40587f78.zip | |
reorganize applet table. Eliminates pointers to names.
Should be a big win for libbusybox. busybox wins too:
text data bss dec hex filename
776524 929 9100 786553 c0079 busybox_old
775903 929 9100 785932 bfe0c busybox_unstripped
Diffstat (limited to 'libbb/execable.c')
| -rw-r--r-- | libbb/execable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/execable.c b/libbb/execable.c index f679108be..2649a6cfe 100644 --- a/libbb/execable.c +++ b/libbb/execable.c | |||
| @@ -65,7 +65,7 @@ int exists_execable(const char *filename) | |||
| 65 | */ | 65 | */ |
| 66 | int bb_execvp(const char *file, char *const argv[]) | 66 | int bb_execvp(const char *file, char *const argv[]) |
| 67 | { | 67 | { |
| 68 | return execvp(find_applet_by_name(file) ? bb_busybox_exec_path : file, | 68 | return execvp(find_applet_by_name(file) >= 0 ? bb_busybox_exec_path : file, |
| 69 | argv); | 69 | argv); |
| 70 | } | 70 | } |
| 71 | #endif | 71 | #endif |
