diff options
author | Ron Yorston <rmy@pobox.com> | 2020-07-09 09:29:59 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2020-07-09 09:29:59 +0100 |
commit | a8c6e20e332a9e11a9d28cd6770eadb9c9d73cb7 (patch) | |
tree | 4c57a4abfb245b557d73e814d869e89d546d9a61 /shell | |
parent | 0e3456e0c4a8623fe2d8bc28c51f16c8274b8098 (diff) | |
download | busybox-w32-a8c6e20e332a9e11a9d28cd6770eadb9c9d73cb7.tar.gz busybox-w32-a8c6e20e332a9e11a9d28cd6770eadb9c9d73cb7.tar.bz2 busybox-w32-a8c6e20e332a9e11a9d28cd6770eadb9c9d73cb7.zip |
ash: tidy code, no functional change
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c index 8a6097211..9c5fbf5ff 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -8726,10 +8726,9 @@ static void shellexec(char *prog, char **argv, const char *path, int idx) | |||
8726 | int applet_no = -1; /* used only by FEATURE_SH_STANDALONE */ | 8726 | int applet_no = -1; /* used only by FEATURE_SH_STANDALONE */ |
8727 | 8727 | ||
8728 | envp = listvars(VEXPORT, VUNSET, /*strlist:*/ NULL, /*end:*/ NULL); | 8728 | envp = listvars(VEXPORT, VUNSET, /*strlist:*/ NULL, /*end:*/ NULL); |
8729 | #if ENABLE_PLATFORM_MINGW32 | ||
8730 | if ((strchr(prog, '/') || strchr(prog, '\\') || has_dos_drive_prefix(prog)) | ||
8731 | #else | ||
8732 | if (strchr(prog, '/') != NULL | 8729 | if (strchr(prog, '/') != NULL |
8730 | #if ENABLE_PLATFORM_MINGW32 | ||
8731 | || strchr(prog, '\\') != NULL || has_dos_drive_prefix(prog) | ||
8733 | #endif | 8732 | #endif |
8734 | #if ENABLE_FEATURE_SH_STANDALONE | 8733 | #if ENABLE_FEATURE_SH_STANDALONE |
8735 | || (applet_no = find_applet_by_name(prog)) >= 0 | 8734 | || (applet_no = find_applet_by_name(prog)) >= 0 |