Changeset 687 for trunk/src


Ignore:
Timestamp:
Dec 8, 2006, 6:42:29 AM (19 years ago)
Author:
bird
Message:

Ignore EPERM and EACCES too (rmdir . on win).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/kmkbuiltin/rmdir.c

    r685 r687  
    119119        for (errors = 0; *argv; argv++) {
    120120                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))
    122122                                &&      (!ignore_fail_on_not_exist || errno != ENOENT)) {
    123123                                warn("%s", *argv);
     
    168168
    169169                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))
    171171                                break;
    172172                        if (!ignore_fail_on_not_exist || errno != ENOENT) {
Note: See TracChangeset for help on using the changeset viewer.