From: Glenn L McGrath Date: Sat, 28 Sep 2002 08:30:47 +0000 (-0000) Subject: Fail straight away rather than recursively printing error messages :) X-Git-Tag: 0_60_5~52 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=891ee641cb7ffde66ae9cb565893bfdeadd1adf0;p=oweals%2Fbusybox.git Fail straight away rather than recursively printing error messages :) --- 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);