diff options
author | Ron Yorston <rmy@pobox.com> | 2012-09-07 11:48:25 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2012-09-07 11:48:25 +0100 |
commit | fecf687cc358883de2da21de33346f0df204c80b (patch) | |
tree | d22c606157926fb659374ae68d55e3a874bacf25 /libbb/make_directory.c | |
parent | b25a7c28a0f684087fa6ccbbc7e265a9cac0f0fa (diff) | |
parent | 6d463de46b418e6c4c8d1397033608f78b33ab21 (diff) | |
download | busybox-w32-fecf687cc358883de2da21de33346f0df204c80b.tar.gz busybox-w32-fecf687cc358883de2da21de33346f0df204c80b.tar.bz2 busybox-w32-fecf687cc358883de2da21de33346f0df204c80b.zip |
Merge branch 'busybox' into merge
Conflicts:
include/libbb.h
shell/ash.c
Diffstat (limited to 'libbb/make_directory.c')
-rw-r--r-- | libbb/make_directory.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libbb/make_directory.c b/libbb/make_directory.c index 8057f2cec..6f59fda29 100644 --- a/libbb/make_directory.c +++ b/libbb/make_directory.c | |||
@@ -114,6 +114,10 @@ int FAST_FUNC bb_make_directory(char *path, long mode, int flags) | |||
114 | * an error. */ | 114 | * an error. */ |
115 | if ((mode != -1) && (chmod(path, mode) < 0)) { | 115 | if ((mode != -1) && (chmod(path, mode) < 0)) { |
116 | fail_msg = "set permissions of"; | 116 | fail_msg = "set permissions of"; |
117 | if (flags & FILEUTILS_IGNORE_CHMOD_ERR) { | ||
118 | flags = 0; | ||
119 | goto print_err; | ||
120 | } | ||
117 | break; | 121 | break; |
118 | } | 122 | } |
119 | goto ret0; | 123 | goto ret0; |
@@ -123,8 +127,9 @@ int FAST_FUNC bb_make_directory(char *path, long mode, int flags) | |||
123 | *s2 = c; | 127 | *s2 = c; |
124 | } /* while (1) */ | 128 | } /* while (1) */ |
125 | 129 | ||
126 | bb_perror_msg("can't %s directory '%s'", fail_msg, path); | ||
127 | flags = -1; | 130 | flags = -1; |
131 | print_err: | ||
132 | bb_perror_msg("can't %s directory '%s'", fail_msg, path); | ||
128 | goto ret; | 133 | goto ret; |
129 | ret0: | 134 | ret0: |
130 | flags = 0; | 135 | flags = 0; |