[pkg-bacula-devel] Bug#908255: bacula-common: preinst script has a wrong redirection

treinen at debian.org treinen at debian.org
Fri Sep 7 18:54:21 BST 2018


Package: bacula-common
Version: 9.0.8-1
Severity: minor
User: treinen at debian.org
Usertags: colis-shparser

Dear maintainer,

the preinst file of package bacula-common contains a wrong
redirection of the form:

some-command 2>&1 > /dev/null

Here it was probably intended to send both 2 (stderr) and 1 (stdout)
to /dev/null. In reality, the effect of the above is to send only 1
to /dev/null, and to send 2 to the file that 1 was sent to before
that line. The correct invocation to send both to /dev/null is

some-command > /dev/null 2>&1

This bug filing has been discussed and approved in thread [1].

-Nicolas and Ralf.

[1] https://lists.debian.org/debian-devel/2018/08/msg00031.html 



More information about the pkg-bacula-devel mailing list