Do not mask previous return-values in libutil/rm.c
Thanks Michael Forney <mforney@mforney.org> for this observation!
This commit is contained in:
parent
d806f75cb6
commit
5d6e609455
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user