diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-12 20:35:14 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-12 20:35:14 +0200 |
commit | 7bc0351dd8bdd5045101616d304a3f16ecb91e5a (patch) | |
tree | b0bc8d4576bbcd790eddd5d819b32ff7493eca99 | |
parent | fc9b2a84dcf70bdd3100cbcb84f2858dd5303d76 (diff) |
util: fix error handling in acquire_terminal()
-rw-r--r-- | src/util.c | 2 |
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; } |