]> git.ipfire.org Git - pakfire.git/commitdiff
archive: Reformat arguments for systemd-sysusers
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Feb 2025 14:19:36 +0000 (14:19 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Feb 2025 14:19:36 +0000 (14:19 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/archive.c

index 44419b142e637104c3092bdb0a6a42d699d99d44..980233cd4370878fb37db3c217a08b6e308ed6a2 100644 (file)
@@ -1925,10 +1925,16 @@ static int pakfire_archive_handle_systemd_sysusers(struct pakfire_archive* archi
 
        // Format --replace
        r = pakfire_string_format(replace, "--replace=/%s", path);
-       if (r)
+       if (r < 0)
                goto ERROR;
 
-       const char* argv[] = { "/usr/bin/systemd-sysusers", replace, "-", NULL };
+       const char* argv[] = {
+               "/usr/bin/systemd-sysusers",
+               "--no-pager",
+               replace,
+               "-",
+               NULL,
+       };
 
        // Create a new jail
        r = pakfire_jail_create(&jail, archive->pakfire);