diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-22 17:48:08 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-22 17:48:08 +0000 |
commit | 25807f170879cb04cec6d335f25e2d39c378c9d6 (patch) | |
tree | 83402a2c66b72e62e38c650f29d4b2d6399c3de2 | |
parent | 1ba94b3df165a7888b233c1fd210e8dd00775ef8 (diff) | |
download | busybox-w32-25807f170879cb04cec6d335f25e2d39c378c9d6.tar.gz busybox-w32-25807f170879cb04cec6d335f25e2d39c378c9d6.tar.bz2 busybox-w32-25807f170879cb04cec6d335f25e2d39c378c9d6.zip |
- the archivers expect mode to be a mode_t, so do not trip signed/unsigned conversion purposefully
git-svn-id: svn://busybox.net/trunk/busybox@17467 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | include/libbb.h | 2 | ||||
-rw-r--r-- | libbb/mode_string.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h index cd192b9eb..57531e491 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -228,7 +228,7 @@ extern void trim(char *s); | |||
228 | extern char *skip_whitespace(const char *); | 228 | extern char *skip_whitespace(const char *); |
229 | extern char *skip_non_whitespace(const char *); | 229 | extern char *skip_non_whitespace(const char *); |
230 | 230 | ||
231 | extern const char *bb_mode_string(int mode); | 231 | extern const char *bb_mode_string(mode_t mode); |
232 | extern int is_directory(const char *name, int followLinks, struct stat *statBuf); | 232 | extern int is_directory(const char *name, int followLinks, struct stat *statBuf); |
233 | extern int remove_file(const char *path, int flags); | 233 | extern int remove_file(const char *path, int flags); |
234 | extern int copy_file(const char *source, const char *dest, int flags); | 234 | extern int copy_file(const char *source, const char *dest, int flags); |
diff --git a/libbb/mode_string.c b/libbb/mode_string.c index 01029bfee..d3ff18375 100644 --- a/libbb/mode_string.c +++ b/libbb/mode_string.c | |||
@@ -51,7 +51,7 @@ static const char type_chars[16] = "?pc?d?b?-?l?s???"; | |||
51 | /* 0123456789abcdef */ | 51 | /* 0123456789abcdef */ |
52 | static const char mode_chars[7] = "rwxSTst"; | 52 | static const char mode_chars[7] = "rwxSTst"; |
53 | 53 | ||
54 | const char *bb_mode_string(int mode) | 54 | const char *bb_mode_string(mode_t mode) |
55 | { | 55 | { |
56 | static char buf[12]; | 56 | static char buf[12]; |
57 | char *p = buf; | 57 | char *p = buf; |
@@ -91,7 +91,7 @@ static const char type_chars[16] = "?pc?d?b?-?l?s???"; | |||
91 | /* 0123456789abcdef */ | 91 | /* 0123456789abcdef */ |
92 | static const char mode_chars[7] = "rwxSTst"; | 92 | static const char mode_chars[7] = "rwxSTst"; |
93 | 93 | ||
94 | const char *bb_mode_string(int mode) | 94 | const char *bb_mode_string(mode_t mode) |
95 | { | 95 | { |
96 | static char buf[12]; | 96 | static char buf[12]; |
97 | char *p = buf; | 97 | char *p = buf; |