]> err.no Git - systemd/commitdiff
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 fa34137bdca66edf0af68d801334e2f1e721921b..b5513dd74c45174b74b3a8fad55ea719d3f08a18 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;
                         }