Re: [dev] [sbase] [PATCH v2] rm: Fix exit status with -f for nonexistent paths

From: FRIGN <dev_AT_frign.de>
Date: Mon, 2 Mar 2015 10:56:02 +0100

On Sun, 1 Mar 2015 23:02:00 -0800
Michael Forney <mforney_AT_mforney.org> wrote:

Hey Michael,

> So I think we need to do
>
> if (!(rm_fflag && errno == ENOENT))
> rm_status = 1;
>
> instead of
>
> rm_status = !(rm_fflag && errno == ENOENT);

oh yeah, considering how long I've worked with these
flag-games, I should've known about that by now.
Thanks for reporting! Fixed here:
http://git.2f30.org/sbase/commit/?id=5d6e609455e04f4c6f5e633cb9eae21a9ef66718

Cheers

FRIGN

-- 
FRIGN <dev_AT_frign.de>
Received on Mon Mar 02 2015 - 10:56:02 CET

This archive was generated by hypermail 2.3.0 : Mon Mar 02 2015 - 11:00:08 CET