diff options
author | Guillem Jover <guillem@debian.org> | 2009-09-06 06:30:08 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2009-09-06 08:59:33 +0200 |
commit | a83e83c156e9cf2d084b1cc8cf561cec4f021ac9 (patch) | |
tree | 63832f4fc19406df7c548dd16faa69b698d10657 /src/enquiry.c | |
parent | d75c567c6140efb6b019825155a1a70402534d87 (diff) | |
download | dpkg-a83e83c156e9cf2d084b1cc8cf561cec4f021ac9.tar.gz |
dpkg: Check stdout for errors instead of stderr in audit()
Diffstat (limited to 'src/enquiry.c')
-rw-r--r-- | src/enquiry.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/enquiry.c b/src/enquiry.c index 5f773f806..dcea3ae33 100644 --- a/src/enquiry.c +++ b/src/enquiry.c @@ -132,7 +132,9 @@ void audit(const char *const *argv) { iterpkgend(it); if (head) putchar('\n'); } - if (ferror(stderr)) werr("stderr"); + + if (ferror(stdout)) + werr("stdout"); } struct sectionentry { |