From 7bc0351dd8bdd5045101616d304a3f16ecb91e5a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 12 Jul 2010 20:35:14 +0200 Subject: util: fix error handling in acquire_terminal() --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.c b/src/util.c index fa34137bdc..b5513dd74c 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; } -- cgit v1.2.3-54-g00ecf