From e58ff86ab51e68a6c639c8b2f6b107e8bc882dff Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 8 Nov 2005 13:20:45 +0000 Subject: Fix another stupid program, which assumes that *stdin =*reopen() is ever likely to work. --- misc/dialog/distinfo | 3 ++- misc/dialog/patches/patch-aa | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 misc/dialog/patches/patch-aa (limited to 'misc/dialog') 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); + } -- cgit v1.2.3