--- /dev/null
+--- sysvinit-2.78/src/sulogin.c.foo Wed Jan 31 14:06:36 2001
++++ sysvinit-2.78/src/sulogin.c Wed Jan 31 15:37:18 2001
+@@ -366,7 +366,8 @@
+ signal(SIGINT, SIG_IGN);
+ signal(SIGTSTP, SIG_IGN);
+ if (optind < argc) tty = argv[optind];
+- if (tty) {
++ if (tty && (fd = open(tty, O_RDONLY)) >= 0 && isatty(fd)) {
++ close(fd);
+ if ((fd = open(tty, O_RDWR)) >= 0) {
+
+ /*
+@@ -400,6 +401,8 @@
+ close(fd);
+ } else
+ perror(tty);
++ } else {
++ if (fd>0) close(fd);
+ }
+
+ /*
--- /dev/null
+--- sysvinit-2.78/man/wall.1.foo Wed Jan 31 15:42:53 2001
++++ sysvinit-2.78/man/wall.1 Wed Jan 31 15:46:18 2001
+@@ -3,6 +3,7 @@
+ wall -- send a message to everybody's terminal.
+ .SH SYNOPSIS
+ .B wall
++.RB [ \-n ]
+ .RB [ " message " ]
+ .SH DESCRIPTION
+ .B Wall
+@@ -11,7 +12,12 @@
+ it can be sent to \fIwall\fP's standard input. When using the standard input
+ from a terminal, the message should be terminated with the \fBEOF\fP key
+ (usually Control-D).
++.SH OPTIONS
++.IP \fB\-n\fn
++Suppresses the normal banner, changing it to "Remote broadcast message"
++This option is only available to root, and is used by rpc.walld.
+ .SH SEE ALSO
+-mesg(1).
++mesg(1),
++rpc.rwalld(8).
+ .SH AUTHOR
+ Miquel van Smoorenburg, miquels@cistron.nl
+--- sysvinit-2.78/src/wall.c.foo Wed Jan 31 15:41:33 2001
++++ sysvinit-2.78/src/wall.c Wed Jan 31 15:40:40 2001
+@@ -42,7 +42,8 @@
+ * Undocumented option for suppressing
+ * banner from rpc.rwalld.
+ */
+- remote = 1;
++ if (getuid() == 0)
++ remote = 1;
+ break;
+ default:
+ fprintf(stderr, "usage: wall [message]\n");