aboutsummaryrefslogtreecommitdiff
path: root/libbb/make_directory.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/make_directory.c')
-rw-r--r--libbb/make_directory.c5
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 @@
* val. Otherwise, pass -1 to get default permissions.
*/
-#include <errno.h>
-#include <unistd.h>
-#include <sys/stat.h>
#include "libbb.h"
+/* This function is used from NOFORK applets. It must not allocate anything */
+
int bb_make_directory (char *path, long mode, int flags)
{
mode_t mask;