importd: make sure we don't accidentally close fd 0

Fixes #1330
This commit is contained in:
Lennart Poettering
2015-09-22 16:40:36 +02:00
parent 7757cfbecb
commit 3be78ab2b8
+1
View File
@@ -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;