Re: [PATCH] Try to remove the given path even if it can't be opened
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Apr 1, 2011, 14:01 UTC
- Message-ID
- <AANLkTikjfkieO9VdpEka7Hb0Fk3st1+dCMF9ti0Kg5Fw@mail.gmail.com>
- In-Reply-To
- <4D95D528.6050409@drmicha.warpmail.net>
On Fri, Apr 1, 2011 at 15:37, Michael J Gruber <git@drmicha.warpmail.net> wrote:
Show 7 quoted lines
> How about simply > > if (!dir) > return rmdir(path->buf); > > like we do later on in that function? >
I'm used to try to keep the returned value of a function I modify, and I'm also used to not trust the return values of the functions I don't control. That's to my defense.
But you're unquestionably right.