- redirect stderr from compressors to /dev/null
dup2(d->compressed_fd,STDIN_FILENO);
dup2(Pipe[1],STDOUT_FILENO);
}
+ int const nullfd = open("/dev/null", O_WRONLY);
+ if (nullfd != -1)
+ {
+ dup2(nullfd,STDERR_FILENO);
+ close(nullfd);
+ }
SetCloseExec(STDOUT_FILENO,false);
SetCloseExec(STDIN_FILENO,false);
[ David Kalnischkies ]
* apt-pkg/deb/deblistparser.cc:
- only treat the native apt as essential by default
+ * apt-pkg/contrib/fileutl.cc:
+ - redirect stderr from compressors to /dev/null
- -- David Kalnischkies <kalnischkies@gmail.com> Wed, 18 Apr 2012 18:12:07 +0200
+ -- David Kalnischkies <kalnischkies@gmail.com> Thu, 19 Apr 2012 11:04:37 +0200
apt (0.9.1) unstable; urgency=low