From 1cfd6ea08475dfc985fa245d5d94d19ee011b049 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Tue, 28 Jul 2009 11:14:42 -0400 Subject: [PATCH] Revert r1295; it was well-intentioned but wrong. SVN-Revision: 1300 --- tar/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tar/util.c b/tar/util.c index 8fba34b72..156afa927 100644 --- a/tar/util.c +++ b/tar/util.c @@ -215,7 +215,7 @@ yes(const char *fmt, ...) fprintf(stderr, " (y/N)? "); fflush(stderr); - l = fread(buff, 1, sizeof(buff) - 1, stderr); + l = read(2, buff, sizeof(buff) - 1); if (l <= 0) return (0); buff[l] = 0; -- 2.47.3