chiark / gitweb /
util: fix error handling in acquire_terminal()
authorLennart Poettering <lennart@poettering.net>
Mon, 12 Jul 2010 18:35:14 +0000 (20:35 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 12 Jul 2010 18:35:14 +0000 (20:35 +0200)
src/util.c

index fa34137..b5513dd 100644 (file)
@@ -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;
                         }