From: Lennart Poettering Date: Mon, 12 Jul 2010 18:35:14 +0000 (+0200) Subject: util: fix error handling in acquire_terminal() X-Git-Tag: v3~30 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bc0351dd8bdd5045101616d304a3f16ecb91e5a;p=systemd util: fix error handling in acquire_terminal() --- diff --git a/src/util.c b/src/util.c index fa34137b..b5513dd7 100644 --- a/src/util.c +++ b/src/util.c @@ -2030,7 +2030,7 @@ int acquire_terminal(const char *name, bool fail, bool force, bool ignore_tiocst } if (e.wd != wd || !(e.mask & IN_CLOSE)) { - r = -errno; + r = -EIO; goto fail; }