From: Lennart Poettering Date: Tue, 22 Sep 2015 14:40:36 +0000 (+0200) Subject: importd: make sure we don't accidentally close fd 0 X-Git-Tag: v227~101^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1335%2Fhead;p=thirdparty%2Fsystemd.git importd: make sure we don't accidentally close fd 0 Fixes #1330 --- diff --git a/src/import/importd.c b/src/import/importd.c index b91300a5df2..c90ada5da4a 100644 --- a/src/import/importd.c +++ b/src/import/importd.c @@ -167,6 +167,7 @@ static int transfer_new(Manager *m, Transfer **ret) { t->type = _TRANSFER_TYPE_INVALID; t->log_fd = -1; t->stdin_fd = -1; + t->stdout_fd = -1; t->verify = _IMPORT_VERIFY_INVALID; id = m->current_transfer_id + 1;