summaryrefslogtreecommitdiff
path: root/src/enquiry.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2009-09-06 06:30:08 +0200
committerGuillem Jover <guillem@debian.org>2009-09-06 08:59:33 +0200
commita83e83c156e9cf2d084b1cc8cf561cec4f021ac9 (patch)
tree63832f4fc19406df7c548dd16faa69b698d10657 /src/enquiry.c
parentd75c567c6140efb6b019825155a1a70402534d87 (diff)
downloaddpkg-a83e83c156e9cf2d084b1cc8cf561cec4f021ac9.tar.gz
dpkg: Check stdout for errors instead of stderr in audit()
Diffstat (limited to 'src/enquiry.c')
-rw-r--r--src/enquiry.c4
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 {