goto ERROR;
}
- // Setup the PTY
- r = pakfire_pty_create(&ctx.pty, jail->ctx, ctx.loop);
- if (r < 0)
- goto ERROR;
-
// Are we running in interactive mode?
if (pakfire_jail_exec_has_flag(&ctx, PAKFIRE_JAIL_INTERACTIVE)) {
+ // Setup the PTY
+ r = pakfire_pty_create(&ctx.pty, jail->ctx, ctx.loop);
+ if (r < 0)
+ goto ERROR;
+
// Make the PTY interactive
r = pakfire_pty_interactive(ctx.pty);
if (r < 0)
// Capture Output?
} else if (output) {
+#warning This needs to be moved back internally again
+#if 0
r = pakfire_pty_capture_output(ctx.pty, output, output_length);
if (r < 0) {
ERROR(jail->ctx, "Failed to set up output capture: %s\n", strerror(-r));
goto ERROR;
}
+#endif
// Otherwise we dump everything to the console
} else {