]> git.pld-linux.org Git - packages/SysVinit.git/commitdiff
- patches from rawhide.
authorkloczek <kloczek@pld-linux.org>
Fri, 16 Feb 2001 04:53:31 +0000 (04:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    sysvinit-notty.patch -> 1.1
    sysvinit-wall-n.patch -> 1.1

sysvinit-notty.patch [new file with mode: 0644]
sysvinit-wall-n.patch [new file with mode: 0644]

diff --git a/sysvinit-notty.patch b/sysvinit-notty.patch
new file mode 100644 (file)
index 0000000..f3bbea1
--- /dev/null
@@ -0,0 +1,21 @@
+--- 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);
+       }
+       /*
diff --git a/sysvinit-wall-n.patch b/sysvinit-wall-n.patch
new file mode 100644 (file)
index 0000000..e8faf33
--- /dev/null
@@ -0,0 +1,36 @@
+--- 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");
This page took 0.058796 seconds and 4 git commands to generate.