aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2019-01-05 10:11:43 +0000
committerRon Yorston <rmy@pobox.com>2019-01-05 10:11:43 +0000
commitda7d205446459dfa1ba7bb46206955383dc6a420 (patch)
treea4ac3d80d3aab44e2154752197d204042622f7c0
parent190673be84cd90c8ea23f0a6e0ff69544d75a93c (diff)
downloadbusybox-w32-da7d205446459dfa1ba7bb46206955383dc6a420.tar.gz
busybox-w32-da7d205446459dfa1ba7bb46206955383dc6a420.tar.bz2
busybox-w32-da7d205446459dfa1ba7bb46206955383dc6a420.zip
busybox: identify scripts in output of 'busybox --list-full'
-rw-r--r--libbb/appletlib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c
index 3cbb5699c..11136de11 100644
--- a/libbb/appletlib.c
+++ b/libbb/appletlib.c
@@ -965,6 +965,10 @@ int busybox_main(int argc UNUSED_PARAM, char **argv)
965 str = "NOFORK "; 965 str = "NOFORK ";
966 else if (APPLET_IS_NOEXEC(i)) 966 else if (APPLET_IS_NOEXEC(i))
967 str = "noexec "; 967 str = "noexec ";
968# if NUM_SCRIPTS > 0
969 else if (applet_main[i] == scripted_main)
970 str = "script ";
971# endif
968 else 972 else
969 str = " "; 973 str = " ";
970 full_write2_str(str); 974 full_write2_str(str);