From: Zbigniew Jędrzejewski-Szmek Date: Thu, 7 May 2026 11:07:52 +0000 (+0200) Subject: portablectl: actually allow set-limit with one arg X-Git-Tag: v261-rc1~265^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=de29e618434ad53fee7e60cfc2e3d186968b21cb;p=thirdparty%2Fsystemd.git portablectl: actually allow set-limit with one arg In the man page and in the actual code, the first arg is optional. But the arg limit in the verbs table did not allow only one arg to be specified. Fixes: 61d0578b07b97cbffebfd350bac481274e310d39 --- diff --git a/src/portable/portablectl.c b/src/portable/portablectl.c index 575ab4149aa..c70d5063467 100644 --- a/src/portable/portablectl.c +++ b/src/portable/portablectl.c @@ -1215,7 +1215,7 @@ static int verb_remove_image(int argc, char *argv[], uintptr_t _data, void *user return 0; } -VERB(verb_set_limit, "set-limit", "[NAME|PATH] LIMIT", 3, 3, 0, +VERB(verb_set_limit, "set-limit", "[NAME|PATH] LIMIT", 2, 3, 0, "Set image or pool size limit (disk quota)"); static int verb_set_limit(int argc, char *argv[], uintptr_t _data, void *userdata) { _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL;