pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/dialog Fix another stupid program, which assumes ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c55f4dbfc1a8
branches:  trunk
changeset: 502684:c55f4dbfc1a8
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Nov 08 13:20:45 2005 +0000

description:
Fix another stupid program, which assumes that *stdin =*reopen()
is ever likely to work.

diffstat:

 misc/dialog/distinfo         |   3 ++-
 misc/dialog/patches/patch-aa |  13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 6b53aadafbf8 -r c55f4dbfc1a8 misc/dialog/distinfo
--- a/misc/dialog/distinfo      Tue Nov 08 12:58:47 2005 +0000
+++ b/misc/dialog/distinfo      Tue Nov 08 13:20:45 2005 +0000
@@ -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 -r 6b53aadafbf8 -r c55f4dbfc1a8 misc/dialog/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/dialog/patches/patch-aa      Tue Nov 08 13:20:45 2005 +0000
@@ -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);
+       }



Home | Main Index | Thread Index | Old Index