Fail straight away rather than recursively printing error messages :)

This commit is contained in:
Glenn L McGrath 2002-09-28 08:30:47 +00:00
parent 8132e933e6
commit 891ee641cb

View File

@ -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);