From 45472937d7a86066f8da101387d2148c864bd865 Mon Sep 17 00:00:00 2001 From: vda Date: Thu, 19 Apr 2007 20:16:14 +0000 Subject: dd: NOEXEC fix dd: correct wrongly capitalized constant git-svn-id: svn://busybox.net/trunk/busybox@18501 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- coreutils/dd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/coreutils/dd.c b/coreutils/dd.c index 797aabdd9..5aee9dbb4 100644 --- a/coreutils/dd.c +++ b/coreutils/dd.c @@ -98,7 +98,7 @@ int dd_main(int argc, char **argv) OP_conv, OP_conv_notrunc, OP_conv_sync, - OP_conv_NOERROR, + OP_conv_noerror, #endif }; int flags = TRUNC_FLAG; @@ -109,6 +109,8 @@ int dd_main(int argc, char **argv) const char *infile = NULL, *outfile = NULL; char *ibuf, *obuf; + memset(&G, 0, sizeof(G)); /* because of NOEXEC */ + if (ENABLE_FEATURE_DD_SIGNAL_HANDLING) { struct sigaction sa; @@ -164,7 +166,7 @@ int dd_main(int argc, char **argv) flags &= ~TRUNC_FLAG; if (what == OP_conv_sync) flags |= SYNC_FLAG; - if (what == OP_conv_NOERROR) + if (what == OP_conv_noerror) flags |= NOERROR; if (!key) /* no ',' left, so this was the last specifier */ break; -- cgit v1.2.3-55-g6feb