diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-09-28 08:30:47 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-09-28 08:30:47 +0000 |
commit | 479518d9dc7431e109ff387debd67624b650564b (patch) | |
tree | 4918a0db7654debaa847b86977e8ae25551a683c /libbb | |
parent | aafafcf80cb47ae77e3f9c766c6e722713967fc7 (diff) | |
download | busybox-w32-479518d9dc7431e109ff387debd67624b650564b.tar.gz busybox-w32-479518d9dc7431e109ff387debd67624b650564b.tar.bz2 busybox-w32-479518d9dc7431e109ff387debd67624b650564b.zip |
Fail straight away rather than recursively printing error messages :)
git-svn-id: svn://busybox.net/trunk/busybox@5602 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/make_directory.c | 2 |
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) | |||
61 | if ((flags == FILEUTILS_RECUR) && (errno == EEXIST)) { | 61 | if ((flags == FILEUTILS_RECUR) && (errno == EEXIST)) { |
62 | ret = 0; | 62 | ret = 0; |
63 | } else { | 63 | } else { |
64 | perror_msg("Cannot create directory '%s'", path); | 64 | perror_msg_and_die("Cannot create directory '%s'", path); |
65 | } | 65 | } |
66 | } | 66 | } |
67 | return(ret); | 67 | return(ret); |