From 879d6c85af32a368feae1625b38716ea493de699 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 2 Aug 2001 09:58:19 +0000 Subject: make_directory used mode as if it were an signed entity, but in fact it was a mode_t which is unsigned. Fix it to be signed... -Erik --- libbb/make_directory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb/make_directory.c') diff --git a/libbb/make_directory.c b/libbb/make_directory.c index 54d9b4c51..0a9d7b160 100644 --- a/libbb/make_directory.c +++ b/libbb/make_directory.c @@ -33,7 +33,7 @@ * Also create parent directories as necessary if flags contains * FILEUTILS_RECUR. */ -int make_directory (char *path, mode_t mode, int flags) +int make_directory (char *path, long mode, int flags) { if (!(flags & FILEUTILS_RECUR)) { if (mkdir (path, 0777) < 0) { -- cgit v1.2.3