- Timestamp:
- Dec 8, 2006, 6:42:29 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gmake/kmkbuiltin/rmdir.c
r685 r687 119 119 for (errors = 0; *argv; argv++) { 120 120 if (rmdir(*argv) < 0) { 121 if ( (!ignore_fail_on_non_empty || errno != ENOTEMPTY)121 if ( (!ignore_fail_on_non_empty || (errno != ENOTEMPTY && errno != EPERM && errno != EACCES)) 122 122 && (!ignore_fail_on_not_exist || errno != ENOENT)) { 123 123 warn("%s", *argv); … … 168 168 169 169 if (rmdir(path) < 0) { 170 if (ignore_fail_on_non_empty && errno == ENOTEMPTY)170 if (ignore_fail_on_non_empty && (errno == ENOTEMPTY || errno == EPERM || errno == EACCES)) 171 171 break; 172 172 if (!ignore_fail_on_not_exist || errno != ENOENT) {
Note:
See TracChangeset
for help on using the changeset viewer.