audit small applets and mark some of them as NOFORK.
Put big scary warnings in relevant places.
diff --git a/coreutils/mkdir.c b/coreutils/mkdir.c
index 690e4ab..5a6c9d0 100644
--- a/coreutils/mkdir.c
+++ b/coreutils/mkdir.c
@@ -19,19 +19,19 @@
/* Nov 28, 2006 Yoshinori Sato <ysato@users.sourceforge.jp>: Add SELinux Support.
*/
-#include <stdlib.h>
-#include <unistd.h>
#include <getopt.h> /* struct option */
#include "busybox.h"
+/* This is a NOFORK applet. Be very careful! */
+
#if ENABLE_FEATURE_MKDIR_LONG_OPTIONS
static const struct option mkdir_long_options[] = {
- { "mode", 1, NULL, 'm' },
+ { "mode" , 1, NULL, 'm' },
{ "parents", 0, NULL, 'p' },
#if ENABLE_SELINUX
{ "context", 1, NULL, 'Z' },
#endif
- { 0, 0, 0, 0 }
+ { NULL, 0, NULL, 0 }
};
#endif