Kaynağa Gözat

dpkg: Check stdout for errors instead of stderr in audit()

Guillem Jover 17 yıl önce
ebeveyn
işleme
a83e83c156
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      src/enquiry.c

+ 3 - 1
src/enquiry.c

@@ -132,7 +132,9 @@ void audit(const char *const *argv) {
     iterpkgend(it);
     iterpkgend(it);
     if (head) putchar('\n');
     if (head) putchar('\n');
   }
   }
-  if (ferror(stderr)) werr("stderr");  
+
+  if (ferror(stdout))
+    werr("stdout");
 }
 }
 
 
 struct sectionentry {
 struct sectionentry {