diff options
Diffstat (limited to 'coreutils/expr.c')
-rw-r--r-- | coreutils/expr.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/coreutils/expr.c b/coreutils/expr.c index 0cf2b9bd9..00bcf60d4 100644 --- a/coreutils/expr.c +++ b/coreutils/expr.c | |||
@@ -38,7 +38,7 @@ | |||
38 | //config: the applet slightly larger, but will allow computation with very | 38 | //config: the applet slightly larger, but will allow computation with very |
39 | //config: large numbers. | 39 | //config: large numbers. |
40 | 40 | ||
41 | //applet:IF_EXPR(APPLET(expr, BB_DIR_USR_BIN, BB_SUID_DROP)) | 41 | //applet:IF_EXPR(APPLET_NOEXEC(expr, expr, BB_DIR_USR_BIN, BB_SUID_DROP, expr)) |
42 | 42 | ||
43 | //kbuild:lib-$(CONFIG_EXPR) += expr.o | 43 | //kbuild:lib-$(CONFIG_EXPR) += expr.o |
44 | 44 | ||
@@ -118,7 +118,10 @@ struct globals { | |||
118 | char **args; | 118 | char **args; |
119 | } FIX_ALIASING; | 119 | } FIX_ALIASING; |
120 | #define G (*(struct globals*)bb_common_bufsiz1) | 120 | #define G (*(struct globals*)bb_common_bufsiz1) |
121 | #define INIT_G() do { setup_common_bufsiz(); } while (0) | 121 | #define INIT_G() do { \ |
122 | setup_common_bufsiz(); \ | ||
123 | /* NB: noexec applet - globals not zeroed */ \ | ||
124 | } while (0) | ||
122 | 125 | ||
123 | /* forward declarations */ | 126 | /* forward declarations */ |
124 | static VALUE *eval(void); | 127 | static VALUE *eval(void); |