From: Alex Riesen Date: Fri, 01 Apr 2011 14:01:50 GMT Subject: Re: [PATCH] Try to remove the given path even if it can't be opened Message-ID: In-Reply-To: <4D95D528.6050409@drmicha.warpmail.net> On Fri, Apr 1, 2011 at 15:37, Michael J Gruber wrote: > 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.