* bootstrap.conf (gnulib_modules): Drop rmdir-errno.
* src/rmdir.c (errno_rmdir_non_empty): Check both cases allowed by
POSIX, rather than relying on configure-time check that might
fail during cross-compilation. Reverts commit
9b6eb98d41.
regex
rename-dest-slash
rmdir
- rmdir-errno
root-dev-ino
rpmatch
safe-read
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