Sophie

Sophie

distrib > Mandriva > 2009.1 > i586 > media > main-release-src > by-pkgid > 3837d6e6d6e4fc5e03616d6e4e2ddc8c > files > 7

sysvinit-2.86-11mdv2009.1.src.rpm

--- ./src/dowall.c.wall	2003-04-17 13:32:01.000000000 +0200
+++ ./src/dowall.c	2003-07-01 15:44:14.000000000 +0200
@@ -189,7 +189,7 @@
 			alarm(2);
 			flags = O_WRONLY|O_NDELAY|O_NOCTTY;
 			if (file_isatty(term) &&
-			    (fd = open(term, flags)) >= 0) {
+				(fd = open(term, flags)) >= 0 && isatty(fd)) {
 				if (isatty(fd) &&
 				    (tp = fdopen(fd, "w")) != NULL) {
 					fputs(line, tp);