]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
portablectl: actually allow set-limit with one arg
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Thu, 7 May 2026 11:07:52 +0000 (13:07 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Thu, 7 May 2026 11:11:50 +0000 (13:11 +0200)
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
src/portable/portablectl.c

index 575ab4149aa63183d3f8ce0a9561c99bae7a9773..c70d50634676a2a7cb0ad3a0383c2f8fda40329d 100644 (file)
@@ -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;