[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rmdir errno cleanup
From: |
Pádraig Brady |
Subject: |
Re: rmdir errno cleanup |
Date: |
Wed, 16 Sep 2009 16:05:48 +0100 |
User-agent: |
Thunderbird 2.0.0.6 (X11/20071008) |
Eric Blake wrote:
> --- 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;
> }
I agree with this as I can't see EEXIST ever
being returned for another case.
cheers,
Pádraig.