summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-12 20:35:14 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-12 20:35:14 +0200
commit7bc0351dd8bdd5045101616d304a3f16ecb91e5a (patch)
treeb0bc8d4576bbcd790eddd5d819b32ff7493eca99 /src/util.c
parentfc9b2a84dcf70bdd3100cbcb84f2858dd5303d76 (diff)
util: fix error handling in acquire_terminal()
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
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;
}