summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorreed <reed>2005-11-08 18:05:23 +0000
committerreed <reed>2005-11-08 18:05:23 +0000
commit0593a5477e2f784c05b0cc444521a1c9b906a077 (patch)
treec7c0a8fad523e1dbe6eed1ef70a33ef5db26fd06 /misc
parent50f4fc63ea222fe0b5ec623bd2a25cf510ce8063 (diff)
downloadpkgsrc-0593a5477e2f784c05b0cc444521a1c9b906a077.tar.gz
Use patch from Thomas Dickey for this "tty-input".
(Not bumping PKGREVISION, since it was bumped today for similar patch.)
Diffstat (limited to 'misc')
-rw-r--r--misc/dialog/distinfo4
-rw-r--r--misc/dialog/patches/patch-aa11
2 files changed, 8 insertions, 7 deletions
diff --git a/misc/dialog/distinfo b/misc/dialog/distinfo
index 309f6a7f916..e71118a3696 100644
--- a/misc/dialog/distinfo
+++ b/misc/dialog/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.9 2005/11/08 14:42:10 joerg Exp $
+$NetBSD: distinfo,v 1.10 2005/11/08 18:05:23 reed 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) = b732f91c113e45b7baab2f557f2719154a5ed0a1
+SHA1 (patch-aa) = a86769efc393d641b72fa273edf47a8bcc3f9e35
diff --git a/misc/dialog/patches/patch-aa b/misc/dialog/patches/patch-aa
index a981132d511..7becff8e6bf 100644
--- a/misc/dialog/patches/patch-aa
+++ b/misc/dialog/patches/patch-aa
@@ -1,13 +1,14 @@
-$NetBSD: patch-aa,v 1.12 2005/11/08 14:42:10 joerg Exp $
+$NetBSD: patch-aa,v 1.13 2005/11/08 18:05:23 reed Exp $
---- util.c.orig 2005-11-08 13:00:19.000000000 +0000
-+++ util.c
-@@ -262,7 +262,7 @@ init_dialog(FILE *input, FILE *output)
+--- util.c.orig 2005-10-30 12:15:17.000000000 -0800
++++ util.c 2005-10-31 15:55:28.000000000 -0800
+@@ -264,7 +264,8 @@
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);
-+ freopen(device, "r", stdin);
++ if (freopen(device, "r", stdin) == 0)
++ dlg_exiterr("cannot open tty-input");
if (fileno(stdin) != 0) /* some functions may read fd #0 */
(void) dup2(fileno(stdin), 0);
}