diff options
| author | Ron Yorston <rmy@pobox.com> | 2017-08-22 14:56:12 +0100 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2017-08-22 14:56:12 +0100 |
| commit | ce9af1cc5ea23f754587448cf35b5120c77bfeef (patch) | |
| tree | 69e5eaba5e75ab909ed92d5045393471b8ff3c13 /coreutils/expr.c | |
| parent | c170026700eabb10147dd848c45c06995b43a32e (diff) | |
| parent | e837a0dbbebf4229306df98fe9ee3b9bb30630c4 (diff) | |
| download | busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.tar.gz busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.tar.bz2 busybox-w32-ce9af1cc5ea23f754587448cf35b5120c77bfeef.zip | |
Merge branch 'busybox' into merge
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); |
