From: Tim Kientzle Date: Tue, 28 Jul 2009 15:14:42 +0000 (-0400) Subject: Revert r1295; it was well-intentioned but wrong. X-Git-Tag: v2.8.0~483 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cfd6ea08475dfc985fa245d5d94d19ee011b049;p=thirdparty%2Flibarchive.git Revert r1295; it was well-intentioned but wrong. SVN-Revision: 1300 --- 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;