this patch cleans up a small bug in the rm utility, there was a stray semicolon 
after the confirm() check for the -i flag, which made the function return early 
instead of proceeding with the removal when confirm() returned 1.

---
 libutil/rm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libutil/rm.c b/libutil/rm.c
index fb99840..56e3469 100644
--- a/libutil/rm.c
+++ b/libutil/rm.c
@@ -28,7 +28,7 @@ rm(int dirfd, const char *name, struct stat *st, void *data, 
struct recursor *r)
        }
 
        if (!quiet && (!write && isatty(0) || ask)) {
-               if (!confirm("remove file '%s'", r->path));
+               if (!confirm("remove file '%s'", r->path))
                        return;
        }
 
-- 
2.49.0


Reply via email to