aboutsummaryrefslogtreecommitdiff
path: root/libbb/make_directory.c
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2002-09-28 08:30:47 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2002-09-28 08:30:47 +0000
commit891ee641cb7ffde66ae9cb565893bfdeadd1adf0 (patch)
tree4918a0db7654debaa847b86977e8ae25551a683c /libbb/make_directory.c
parent8132e933e6cf0e6bffccb1902f872b584a32c580 (diff)
downloadbusybox-891ee641cb7ffde66ae9cb565893bfdeadd1adf0.tar.gz
Fail straight away rather than recursively printing error messages :)
Diffstat (limited to 'libbb/make_directory.c')
-rw-r--r--libbb/make_directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/make_directory.c b/libbb/make_directory.c
index 2a2788b68..3f81d9ac2 100644
--- a/libbb/make_directory.c
+++ b/libbb/make_directory.c
@@ -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);