]> git.ipfire.org Git - people/stevee/pakfire.git/commitdiff
jail: Fix logic error in interactive flag
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 17 Aug 2022 08:55:35 +0000 (08:55 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 17 Aug 2022 08:55:35 +0000 (08:55 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/jail.c

index a97160e23fc3a9d7b7f6bb19d73615f48a39638b..15caedf092f859954e5ddf656d9c55692db986a9 100644 (file)
@@ -1347,7 +1347,7 @@ static int __pakfire_jail_exec(struct pakfire_jail* jail, const char* argv[],
        }
 
        // Create pipes to communicate with child process if we are not running interactively
-       if (interactive) {
+       if (!interactive) {
                // stdout
                r = pakfire_jail_setup_pipe(jail, &ctx.pipes.stdout, 0);
                if (r)