VirtualBox

Changeset 1151 in kBuild for trunk/src/kmk/kmkbuiltin


Ignore:
Timestamp:
Sep 27, 2007 11:39:37 PM (17 years ago)
Author:
bird
Message:

On solaris rmdir returns EEXIST instead of ENOTEMPTY.

File:
1 edited

Legend:

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

    r982 r1151  
    114114        for (errors = 0; *argv; argv++) {
    115115                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))
    117117                            &&  (!ignore_fail_on_not_exist || errno != ENOENT)) {
    118118                                warn("%s", *argv);
     
    166166
    167167                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))
    169169                                break;
    170170                        if (!ignore_fail_on_not_exist || errno != ENOENT) {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette