Changeset 1151 in kBuild for trunk/src/kmk/kmkbuiltin
- Timestamp:
- Sep 27, 2007 11:39:37 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kmkbuiltin/rmdir.c
r982 r1151 114 114 for (errors = 0; *argv; argv++) { 115 115 if (rmdir(*argv) < 0) { 116 if ( (!ignore_fail_on_non_empty || (errno != ENOTEMPTY && errno != EPERM && errno != EACCES && errno != EINVAL ))116 if ( (!ignore_fail_on_non_empty || (errno != ENOTEMPTY && errno != EPERM && errno != EACCES && errno != EINVAL && errno != EEXIST)) 117 117 && (!ignore_fail_on_not_exist || errno != ENOENT)) { 118 118 warn("%s", *argv); … … 166 166 167 167 if (rmdir(path) < 0) { 168 if (ignore_fail_on_non_empty && (errno == ENOTEMPTY || errno == EPERM || errno == EACCES || errno == EINVAL ))168 if (ignore_fail_on_non_empty && (errno == ENOTEMPTY || errno == EPERM || errno == EACCES || errno == EINVAL || errno == EEXIST)) 169 169 break; 170 170 if (!ignore_fail_on_not_exist || errno != ENOENT) {
Note:
See TracChangeset
for help on using the changeset viewer.