diff options
author | Ron Yorston <rmy@pobox.com> | 2022-04-30 11:29:07 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2022-04-30 11:39:26 +0100 |
commit | ff0494394e1d26b2e6f2483daed81d2d477d6525 (patch) | |
tree | c1dc87984d1effe8b9ae01aa63446ff30ad19e0a | |
parent | 2211b446d8ba209d75974a6835aecda3d8358047 (diff) | |
download | busybox-w32-ff0494394e1d26b2e6f2483daed81d2d477d6525.tar.gz busybox-w32-ff0494394e1d26b2e6f2483daed81d2d477d6525.tar.bz2 busybox-w32-ff0494394e1d26b2e6f2483daed81d2d477d6525.zip |
reset: applet should be NOEXEC for POSIX
The 'reset' applet was changed to be NOFORK for WIN32. Ensure
that it remains NOEXEC in the POSIX build.
The default POSIX configuration doesn't enable any of the features
which need this information (PREFER_APPLETS, SH_STANDALONE and
SH_NOFORK).
-rw-r--r-- | console-tools/reset.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/console-tools/reset.c b/console-tools/reset.c index 151bc47d1..bf0814da7 100644 --- a/console-tools/reset.c +++ b/console-tools/reset.c | |||
@@ -17,7 +17,8 @@ | |||
17 | // NOTE: For WIN32 this applet is NOFORK so we can change the screen | 17 | // NOTE: For WIN32 this applet is NOFORK so we can change the screen |
18 | // buffer for the current process. | 18 | // buffer for the current process. |
19 | 19 | ||
20 | //applet:IF_RESET(APPLET_NOFORK(reset, reset, BB_DIR_USR_BIN, BB_SUID_DROP, reset)) | 20 | //applet:IF_PLATFORM_MINGW32(IF_RESET(APPLET_NOFORK(reset, reset, BB_DIR_USR_BIN, BB_SUID_DROP, reset))) |
21 | //applet:IF_PLATFORM_POSIX(IF_RESET(APPLET_NOEXEC(reset, reset, BB_DIR_USR_BIN, BB_SUID_DROP, reset))) | ||
21 | 22 | ||
22 | //kbuild:lib-$(CONFIG_RESET) += reset.o | 23 | //kbuild:lib-$(CONFIG_RESET) += reset.o |
23 | 24 | ||