← Commit list

b3f7261ff

Glenn L McGrath
Glenn L McGrath
2002-09-22
FAILED Duration: 5s

Subject

Fix error messages conditions, and make them the same as GNU mkdir.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/make_directory.c+2 -2
@@ -58,10 +58,10 @@ int make_directory (char *path, long mode, int flags)
}
ret = mkdir(path, mode);
if (ret == -1) {
- if (errno == EEXIST) {
+ if ((flags == FILEUTILS_RECUR) && (errno == EEXIST)) {
ret = 0;
} else {
- perror_msg("Cannot create directory %s", path);
+ perror_msg("Cannot create directory '%s'", path);
}
}
return(ret);