Fail straight away rather than recursively printing error messages :)
This commit is contained in:
parent
8132e933e6
commit
891ee641cb
@ -61,7 +61,7 @@ int make_directory (char *path, long mode, int flags)
|
||||
if ((flags == FILEUTILS_RECUR) && (errno == EEXIST)) {
|
||||
ret = 0;
|
||||
} else {
|
||||
perror_msg("Cannot create directory '%s'", path);
|
||||
perror_msg_and_die("Cannot create directory '%s'", path);
|
||||
}
|
||||
}
|
||||
return(ret);
|
||||
|
Loading…
Reference in New Issue
Block a user