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
This commit is contained in:
parent
8a915880e7
commit
879d6c85af
@ -259,7 +259,7 @@ extern int create_icmp_socket(void);
|
|||||||
|
|
||||||
char *dirname (const char *path);
|
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);
|
const char *u_signal_names(const char *str_sig, int *signo, int startnum);
|
||||||
|
|
||||||
|
@ -259,7 +259,7 @@ extern int create_icmp_socket(void);
|
|||||||
|
|
||||||
char *dirname (const char *path);
|
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);
|
const char *u_signal_names(const char *str_sig, int *signo, int startnum);
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
* Also create parent directories as necessary if flags contains
|
* Also create parent directories as necessary if flags contains
|
||||||
* FILEUTILS_RECUR. */
|
* 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 (!(flags & FILEUTILS_RECUR)) {
|
||||||
if (mkdir (path, 0777) < 0) {
|
if (mkdir (path, 0777) < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user