summaryrefslogtreecommitdiff
path: root/x11/rxvt
diff options
context:
space:
mode:
authorchristos <christos>2002-12-18 15:31:21 +0000
committerchristos <christos>2002-12-18 15:31:21 +0000
commit87cc7367d9b09dcd855d1aaede02752a386ded75 (patch)
tree98a8b06b14b0fef7ac0742c94f51ea96f1859c2d /x11/rxvt
parent5d6a595a6d35a40e2444ef2b2a906b6bc5e6c187 (diff)
downloadpkgsrc-87cc7367d9b09dcd855d1aaede02752a386ded75.tar.gz
keep stdout open so that utmp_update [the kernel] does not bitch
Diffstat (limited to 'x11/rxvt')
-rw-r--r--x11/rxvt/distinfo3
-rw-r--r--x11/rxvt/patches/patch-ah19
2 files changed, 21 insertions, 1 deletions
diff --git a/x11/rxvt/distinfo b/x11/rxvt/distinfo
index c6aa4c48cbb..6ab516d08f3 100644
--- a/x11/rxvt/distinfo
+++ b/x11/rxvt/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2002/10/26 18:02:16 bouyer Exp $
+$NetBSD: distinfo,v 1.8 2002/12/18 15:31:21 christos Exp $
SHA1 (rxvt-2.7.3.tar.bz2) = 1f5380ba70d1b795e6532a79b1e2d7371505b504
Size (rxvt-2.7.3.tar.bz2) = 266784 bytes
@@ -9,3 +9,4 @@ SHA1 (patch-ad) = 86047c69fa397d71f3e71ae476bd7addd153729f
SHA1 (patch-ae) = ce0bd392cde7c436834f68391e0d38b53f1755cc
SHA1 (patch-af) = 4974d45d51e1d8a5b5ee86e690c8dd0ca1c8ed35
SHA1 (patch-ag) = 132922885b899dff22a964b1bb491ac25b6e17b8
+SHA1 (patch-ah) = 909dbe0b6dcc0a2fde44f1b174f9af07e78d480e
diff --git a/x11/rxvt/patches/patch-ah b/x11/rxvt/patches/patch-ah
new file mode 100644
index 00000000000..da7d2119f41
--- /dev/null
+++ b/x11/rxvt/patches/patch-ah
@@ -0,0 +1,19 @@
+$NetBSD: patch-ah,v 1.5 2002/12/18 15:31:22 christos Exp $
+
+--- src/init.c.orig Sun Mar 26 02:47:01 2000
++++ src/init.c Wed Dec 18 10:29:05 2002
+@@ -895,9 +895,13 @@
+ /*
+ * Close all unused file descriptors.
+ * We don't want them, we don't need them.
++ * We keep stdout/stderr, and we will re-open stdin, because
++ * we want 0,1,2 open so that when pututxline() calls utmp_update
++ * which is set{u,g}id() the kernel does not complain.
+ */
+ for (i = 0; i < num_fds; i++) {
+- if (i == STDERR_FILENO || i == cfd || i == tty_fd || i == Xfd)
++ if (i == STDOUT_FILENO || i == STDERR_FILENO
++ || i == cfd || i == tty_fd || i == Xfd)
+ continue;
+ close(i);
+ }