From ea28cf95c55ef30521ce8a96d5fe7f6f367b37d0 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Tue, 1 Oct 2019 12:00:46 -0400 Subject: [PATCH] app/reset: Fix argc range check Otherwise, e.g. `rpm-ostree reset foobar` doesn't actually error out. Some users have hit this as a typo for `rpm-ostree override reset foobar`. --- src/app/rpmostree-builtin-reset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/rpmostree-builtin-reset.c b/src/app/rpmostree-builtin-reset.c index 71226875..c24a4e1b 100644 --- a/src/app/rpmostree-builtin-reset.c +++ b/src/app/rpmostree-builtin-reset.c @@ -72,7 +72,7 @@ rpmostree_builtin_reset (int argc, error)) return FALSE; - if (argc < 1 || argc > 2) + if (argc != 1) { rpmostree_usage_error (context, "Too few or too many arguments", error); return FALSE;