aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2016-05-19 11:51:45 +0100
committerRon Yorston <rmy@pobox.com>2016-05-19 11:51:45 +0100
commit407e311728de0abfe8d23393a278020db3211509 (patch)
treea689819f7161e7712d64c4f57eb3fa47aec7ff84
parentf4c43d4a23c0581f13da63db89d571476269a31f (diff)
downloadbusybox-w32-407e311728de0abfe8d23393a278020db3211509.tar.gz
busybox-w32-407e311728de0abfe8d23393a278020db3211509.tar.bz2
busybox-w32-407e311728de0abfe8d23393a278020db3211509.zip
which: explicit test for busybox when applets are preferred
-rw-r--r--debianutils/which.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/debianutils/which.c b/debianutils/which.c
index 86dd5c352..af33ba72e 100644
--- a/debianutils/which.c
+++ b/debianutils/which.c
@@ -46,7 +46,7 @@ int which_main(int argc UNUSED_PARAM, char **argv)
46 char *p; 46 char *p;
47 47
48#if ENABLE_FEATURE_PREFER_APPLETS 48#if ENABLE_FEATURE_PREFER_APPLETS
49 if ( find_applet_by_name(*argv) >= 0 ) { 49 if (find_applet_by_name(*argv) >= 0 || strcmp(*argv, "busybox") == 0) {
50 missing = 0; 50 missing = 0;
51 puts(*argv); 51 puts(*argv);
52 if (!option_mask32) /* -a not set */ 52 if (!option_mask32) /* -a not set */