sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 5d6e609455e04f4c6f5e633cb9eae21a9ef66718
parent d806f75cb64523318665f77c75fbbb55b562eaf5
Author: FRIGN <dev@frign.de>
Date:   Mon,  2 Mar 2015 10:53:55 +0100

Do not mask previous return-values in libutil/rm.c

Thanks Michael Forney <mforney@mforney.org> for this observation!

Diffstat:
Mlibutil/rm.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libutil/rm.c b/libutil/rm.c @@ -17,6 +17,7 @@ rm(const char *path, int unused) if (remove(path) < 0) { if (!rm_fflag) weprintf("remove %s:", path); - rm_status = !(rm_fflag && errno == ENOENT); + if (!(rm_fflag && errno == ENOENT)) + rm_status = 1; } }