diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-10 19:43:37 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-10 19:43:37 +0400 |
commit | 99912ca733dd960f5589227fd999c86e73c8e894 (patch) | |
tree | 9df947fc08884d498cf76a02204d74b121064134 /coreutils/mkdir.c | |
parent | ff131b980d524a33d8a43cefe65e14f64a43f2da (diff) |
audit small applets and mark some of them as NOFORK.
Put big scary warnings in relevant places.
Diffstat (limited to 'coreutils/mkdir.c')
-rw-r--r-- | coreutils/mkdir.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/mkdir.c b/coreutils/mkdir.c index 690e4ab40..5a6c9d077 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 |