diff options
Diffstat (limited to 'src/rmdir.c')
| -rw-r--r-- | src/rmdir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rmdir.c b/src/rmdir.c index 3bfff22d4..899964c2e 100644 --- a/src/rmdir.c +++ b/src/rmdir.c @@ -74,7 +74,7 @@ static struct option const longopts[] = static bool errno_rmdir_non_empty (int error_number) { - return (error_number == RMDIR_ERRNO_NOT_EMPTY); + return error_number == ENOTEMPTY || error_number == EEXIST; } /* Return true if when rmdir fails with errno == ERROR_NUMBER @@ -177,7 +177,7 @@ Remove the DIRECTORY(ies), if they are empty.\n\ "), stdout); fputs (HELP_OPTION_DESCRIPTION, stdout); fputs (VERSION_OPTION_DESCRIPTION, stdout); - emit_bug_reporting_address (); + emit_ancillary_info (); } exit (status); } |
