diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-10 15:43:37 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-10 15:43:37 +0000 |
commit | 99912ca733dd960f5589227fd999c86e73c8e894 (patch) | |
tree | 9df947fc08884d498cf76a02204d74b121064134 /libbb/make_directory.c | |
parent | ff131b980d524a33d8a43cefe65e14f64a43f2da (diff) | |
download | busybox-w32-99912ca733dd960f5589227fd999c86e73c8e894.tar.gz busybox-w32-99912ca733dd960f5589227fd999c86e73c8e894.tar.bz2 busybox-w32-99912ca733dd960f5589227fd999c86e73c8e894.zip |
audit small applets and mark some of them as NOFORK.
Put big scary warnings in relevant places.
Diffstat (limited to 'libbb/make_directory.c')
-rw-r--r-- | libbb/make_directory.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libbb/make_directory.c b/libbb/make_directory.c index fbec4e20e..d540ad133 100644 --- a/libbb/make_directory.c +++ b/libbb/make_directory.c | |||
@@ -22,11 +22,10 @@ | |||
22 | * val. Otherwise, pass -1 to get default permissions. | 22 | * val. Otherwise, pass -1 to get default permissions. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <errno.h> | ||
26 | #include <unistd.h> | ||
27 | #include <sys/stat.h> | ||
28 | #include "libbb.h" | 25 | #include "libbb.h" |
29 | 26 | ||
27 | /* This function is used from NOFORK applets. It must not allocate anything */ | ||
28 | |||
30 | int bb_make_directory (char *path, long mode, int flags) | 29 | int bb_make_directory (char *path, long mode, int flags) |
31 | { | 30 | { |
32 | mode_t mask; | 31 | mode_t mask; |