diff options
author | Eric Andersen | 2001-08-02 09:58:19 +0000 |
---|---|---|
committer | Eric Andersen | 2001-08-02 09:58:19 +0000 |
commit | 879d6c85af32a368feae1625b38716ea493de699 (patch) | |
tree | e34f0613f60a311d2715cdbce127a5c97faaaefb /libbb | |
parent | 8a915880e7c86534859353f40ee18fbbe8004c26 (diff) | |
download | busybox-879d6c85af32a368feae1625b38716ea493de699.zip busybox-879d6c85af32a368feae1625b38716ea493de699.tar.gz |
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
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/libbb.h | 2 | ||||
-rw-r--r-- | libbb/make_directory.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libbb/libbb.h b/libbb/libbb.h index df52027..70ac36a 100644 --- a/libbb/libbb.h +++ b/libbb/libbb.h @@ -259,7 +259,7 @@ extern int create_icmp_socket(void); char *dirname (const char *path); -int make_directory (char *path, mode_t mode, int flags); +int make_directory (char *path, long mode, int flags); const char *u_signal_names(const char *str_sig, int *signo, int startnum); diff --git a/libbb/make_directory.c b/libbb/make_directory.c index 54d9b4c..0a9d7b1 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) { |