diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-08-02 09:58:19 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-08-02 09:58:19 +0000 |
commit | 21fec1d3e9975f533b932ade4477a5740a0a9cdf (patch) | |
tree | e34f0613f60a311d2715cdbce127a5c97faaaefb /libbb/make_directory.c | |
parent | f879c0b092f00b2820eda23a3f4c96f03d86805e (diff) | |
download | busybox-w32-21fec1d3e9975f533b932ade4477a5740a0a9cdf.tar.gz busybox-w32-21fec1d3e9975f533b932ade4477a5740a0a9cdf.tar.bz2 busybox-w32-21fec1d3e9975f533b932ade4477a5740a0a9cdf.zip |
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
git-svn-id: svn://busybox.net/trunk/busybox@3192 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-rw-r--r-- | libbb/make_directory.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ | |||
33 | * Also create parent directories as necessary if flags contains | 33 | * Also create parent directories as necessary if flags contains |
34 | * FILEUTILS_RECUR. */ | 34 | * FILEUTILS_RECUR. */ |
35 | 35 | ||
36 | int make_directory (char *path, mode_t mode, int flags) | 36 | int make_directory (char *path, long mode, int flags) |
37 | { | 37 | { |
38 | if (!(flags & FILEUTILS_RECUR)) { | 38 | if (!(flags & FILEUTILS_RECUR)) { |
39 | if (mkdir (path, 0777) < 0) { | 39 | if (mkdir (path, 0777) < 0) { |