X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=execute.c;h=7192abfffb8cc7776735841920dbcfe132cdc111;hp=fe3dc8b251c502c33b6f2eacbfdcc880b6bbec1b;hb=a06b0b562bc11e5ca2ea88074fb3b38f2503ed6b;hpb=15ae422b7471cf6f41ccf450243d8afd8ea0a054 diff --git a/execute.c b/execute.c index fe3dc8b25..7192abfff 100644 --- a/execute.c +++ b/execute.c @@ -35,6 +35,7 @@ #include #include #include +#include #include "execute.h" #include "strv.h" @@ -467,7 +468,7 @@ fail: return r; } -static int restore_conform_stdio(const ExecContext *context, +static int restore_confirm_stdio(const ExecContext *context, int *saved_stdin, int *saved_stdout, bool *keep_stdin, @@ -822,7 +823,7 @@ int exec_spawn(ExecCommand *command, } /* Release terminal for the question */ - if ((r = restore_conform_stdio(context, + if ((r = restore_confirm_stdio(context, &saved_stdin, &saved_stdout, &keep_stdin, &keep_stdout))) goto fail;