chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc9b2a8
)
util: fix error handling in acquire_terminal()
author
Lennart Poettering
<lennart@poettering.net>
Mon, 12 Jul 2010 18:35:14 +0000
(20:35 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Mon, 12 Jul 2010 18:35:14 +0000
(20:35 +0200)
src/util.c
patch
|
blob
|
history
diff --git
a/src/util.c
b/src/util.c
index fa34137bdca66edf0af68d801334e2f1e721921b..b5513dd74c45174b74b3a8fad55ea719d3f08a18 100644
(file)
--- 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;
}