1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-31 14:50:15 +03:00

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

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;