summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2005-11-08 13:20:45 +0000
committerjoerg <joerg@pkgsrc.org>2005-11-08 13:20:45 +0000
commitdbd30a5366f9b5833803d551f34abc57d5778e5e (patch)
treec2613e5c8c6f8f8cb224fe9cff6ca97646d7dd34
parent6d0a5dcd1b8660c45e660eef205f88c2022926ec (diff)
downloadpkgsrc-dbd30a5366f9b5833803d551f34abc57d5778e5e.tar.gz
Fix another stupid program, which assumes that *stdin =*reopen()
is ever likely to work.
-rw-r--r--misc/dialog/distinfo3
-rw-r--r--misc/dialog/patches/patch-aa13
2 files changed, 15 insertions, 1 deletions
diff --git a/misc/dialog/distinfo b/misc/dialog/distinfo
index 05e4ea22e60..881e1a7ba9c 100644
--- a/misc/dialog/distinfo
+++ b/misc/dialog/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.7 2005/09/30 22:02:56 wiz Exp $
+$NetBSD: distinfo,v 1.8 2005/11/08 13:20:45 joerg Exp $
SHA1 (dialog-1.0-20050911.tgz) = 96c11fb4a98d5f9f074d8339fe2bad501e0f5786
RMD160 (dialog-1.0-20050911.tgz) = 9fe5698fd2dda5cd2391302d39b081abf6f86ab8
Size (dialog-1.0-20050911.tgz) = 307686 bytes
+SHA1 (patch-aa) = f1603548145704ea9ef4ff539ce6ec650f1fd8d3
diff --git a/misc/dialog/patches/patch-aa b/misc/dialog/patches/patch-aa
new file mode 100644
index 00000000000..0a1096bbb71
--- /dev/null
+++ b/misc/dialog/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.11 2005/11/08 13:20:45 joerg Exp $
+
+--- util.c.orig 2005-11-08 13:00:19.000000000 +0000
++++ util.c
+@@ -262,7 +262,7 @@ init_dialog(FILE *input, FILE *output)
+ if ((fd1 = open_terminal(&device, O_RDONLY)) >= 0
+ && (fd2 = dup(fileno(stdin))) >= 0) {
+ dialog_state.pipe_input = fdopen(fd2, "r");
+- *stdin = *freopen(device, "r", stdin);
++ stdin = freopen(device, "r", stdin);
+ if (fileno(stdin) != 0) /* some functions may read fd #0 */
+ (void) dup2(fileno(stdin), 0);
+ }