summaryrefslogtreecommitdiff
path: root/misc/dialog
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
commit8c4f2eb1c9b6fc765a07355a9fb3d4e7f8f0ed4b (patch)
treec2613e5c8c6f8f8cb224fe9cff6ca97646d7dd34 /misc/dialog
parent8d751efc7b24847a1b73a20a7cd405153c27d54c (diff)
downloadpkgsrc-8c4f2eb1c9b6fc765a07355a9fb3d4e7f8f0ed4b.tar.gz
Fix another stupid program, which assumes that *stdin =*reopen()
is ever likely to work.
Diffstat (limited to 'misc/dialog')
-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);
+ }