redirecting stderr to /dev/null

Sven Mueller debian at incase.de
Fri Mar 24 17:35:38 UTC 2006


Hi.

I read up on some old piuparts thread on d-devel and noticed that we
have a slight hint of a problem in our postinst script:

We completely suppress error messages from  adduser (>/dev/null 2>&1 or
something similar).

I prepared a patch to make adduser as quiet as possible and redirect
stdout only, but I wanted to have feedback from at least one
co-maintainer for this. What it adds --quiet to the adduser options
(supported as least since sarge) and does >/dev/null (and removes the
stderr redirection).

Though I like quiet package installations (and absolutely hate debconf
warnings when frontend is set to non-interactive - they produce mails
noone wants to see ;-)), I really think that suppressing error messages,
even if we try to catch and explain the errors is wrong.

What do you think?

regards,
Sven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 188 bytes
Desc: OpenPGP digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-cyrus-imapd-debian-devel/attachments/20060324/dcc27b07/signature.pgp


More information about the Pkg-Cyrus-imapd-Debian-devel mailing list