[From nobody Sun Jun 28 17:17:04 2026
Received: (at submit) by bugs.debian.org; 25 Mar 2022 20:44:31 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.2-bugs.debian.org_2005_01_02
 (2018-09-13) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-23.3 required=4.0 tests=BAYES_00,DKIM_SIGNED,
 DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HAS_PACKAGE,MURPHY_DRUGS_REL8,
 PGPSIGNATURE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE
 autolearn=ham autolearn_force=no
 version=3.4.2-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 22; hammy, 150; neutral, 144; spammy,
 0. spammytokens: hammytokens:0.000-+--H*ct:application,
 0.000-+--H*ct:protocol, 0.000-+--H*ct:micalg, 0.000-+--H*ct:signed,
 0.000-+--H*ct:pgp-signature
Return-path: &lt;mike.gabriel@das-netzwerkteam.de&gt;
Received: from fregna.das-netzwerkteam.de ([2a01:4f8:202:1381::2]:46036)
 by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from &lt;mike.gabriel@das-netzwerkteam.de&gt;)
 id 1nXqnO-0004Zv-HP
 for submit@bugs.debian.org; Fri, 25 Mar 2022 20:44:31 +0000
Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de
 [IPv6:2a01:4f8:202:1381::105])
 by fregna.das-netzwerkteam.de (Postfix) with ESMTPS id C24F86066E
 for &lt;submit@bugs.debian.org&gt;; Fri, 25 Mar 2022 20:44:24 +0000 (UTC)
Received: from das-netzwerkteam.de (localhost [127.0.0.1])
 by grimnir.das-netzwerkteam.de (Postfix) with ESMTP id A316CC0AFA
 for &lt;submit@bugs.debian.org&gt;; Fri, 25 Mar 2022 21:44:24 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=das-netzwerkteam.de;
 s=dkim; t=1648241064;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type;
 bh=7u2JPCtg3YM+vacR8N4eami3ce5wsOr0VbW9O7O6tAE=;
 b=0fgsxETF3+cYGrCo8seW8yCkmQsYNbh5wE7gi7wn5HiUdjOxWIdnjG0zRt0YkrlEXxYpES
 Rf2Q1lJLEdzzofTM0g5qArt3ShU2QC/pdWQQ/rsC/TF13KnewjakwdQRSczq/1QaHLjRRu
 7JyrrhtZJ8iCKis9+g1CpdlTWNkZP+bPJRCclfHpHQT7jTWnE0j3gHDskmwtKWRh9yAMBb
 GuJie64zac3pU4CT6cecaE6Qx4QrajXcPO71bfDMB1YHJnkl6MDheP1HyzzMBSGMFkCYzs
 4K4N/pOtnmcxWPnwdp9XhftyZlYpivy91Z/qFb9U8sUf38WH4UqB2R382mNRmz0dHWZyZK
 RAQhFsEyYSA4V7+FZ1AKunq92bm85hdxvpfLAyngQd4b0n0aYwyvunalSj+Cvsevvd93yB
 5f49mzBRbmAz+gMYQP0+u6wmYd0jrqTXB1caqlhlBP0SkuPLzjKqYUfq+f8rMfkeVSK7+e
 xyzMT3cvzdQ1OdOLOf2KkPT7wELGajc7s53IsqZQyASmBkMSn+K8gCZrminHQCtpDhrvdf
 jUYK58YUeR/ULnR3CweNicMxosjvTVAhrgIDSCBV+wDe8cLQ62zLYCvg2vJG8uITE5/FyT
 1rq42C3A682SZVoufcDBiY9G8Q37tSVmMChrHg8PQEAgN8XRW2zQI=
Received: from [176.126.93.55] ([176.126.93.55]) by mail.das-netzwerkteam.de
 (Horde Framework) with HTTPS; Fri, 25 Mar 2022 20:44:24 +0000
Date: Fri, 25 Mar 2022 20:44:24 +0000
Message-ID: &lt;20220325204424.Horde.NADcDlmZZd0XoCDO-7sOSGq@mail.das-netzwerkteam.de&gt;
From: Mike Gabriel &lt;mike.gabriel@das-netzwerkteam.de&gt;
To: submit@bugs.debian.org
Subject: clamav-base: Silence output to id command's output to stderr before
 adding clamav user
User-Agent: Horde Application Framework 5
Accept-Language: de,en
Organization: DAS-NETZWERKTEAM
X-Originating-IP: 176.126.93.55
X-Remote-Browser: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML,
 like Gecko) Chrome/99.0.4844.74 Safari/537.36
Content-Type: multipart/signed; boundary=&quot;=_Jp_9ZAV2rPqy2wVw6jqrV43&quot;;
 protocol=&quot;application/pgp-signature&quot;; micalg=pgp-sha512
MIME-Version: 1.0
Delivered-To: submit@bugs.debian.org

This message is in MIME format and has been PGP signed.

--=_Jp_9ZAV2rPqy2wVw6jqrV43
Content-Type: multipart/mixed; boundary=&quot;=_R8HNWxFooMS8Sez8pzx8Txr&quot;

This message is in MIME format.

--=_R8HNWxFooMS8Sez8pzx8Txr
Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Package: src:clamav
Severity: wishlist
Version: 0.103.5+dfsg-1

Dear maintainers of clamav,

I am currently working on a project where clamav gets installed and=20=20
configured=20via FAI. The FAI installation collects and error from the=20=
=20
clamav-base's=20postinst script:

```
[...]
Setting up clamav-base (&lt;version&gt;)
id: 'clamav': no such user
[...]
```

It would be cool to have this non-error silenced in=20=20
clamav-base.postinst.=20Patch attached.

Mike


--=20

DAS-NETZWERKTEAM
c\o=20Technik- und =C3=96kologiezentrum Eckernf=C3=B6rde
Mike Gabriel, Marienthaler Str. 17, 24340 Eckernf=C3=B6rde
mobile: +49 (1520) 1976 148
landline: +49 (4351) 850 8940

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de


--=_R8HNWxFooMS8Sez8pzx8Txr
Content-Type: text/plain;
 name=clamav_0.103.5+dfsg-1_0.103.5+dfsg-1.1.debdiff
Content-Disposition: attachment; size=1220;
 filename=clamav_0.103.5+dfsg-1_0.103.5+dfsg-1.1.debdiff
Content-Transfer-Encoding: quoted-printable

diff -Nru clamav-0.103.5+dfsg/debian/changelog clamav-0.103.5+dfsg/debian/c=
hangelog
--- clamav-0.103.5+dfsg/debian/changelog	2022-01-12 21:31:23.000000000 +010=
0
+++ clamav-0.103.5+dfsg/debian/changelog	2022-03-25 21:33:24.000000000 +010=
0
@@ -1,3 +1,12 @@
+clamav (0.103.5+dfsg-1.1) UNRELEASED; urgency=3Dmedium
+
+  * Non-maintainer upload.
+  * debian/clamav-base:
+    + Silence id command's output to stderr before adding clamav user.
+      (Closes: -1).
+
+ -- Mike Gabriel &lt;sunweaver@debian.org&gt;  Fri, 25 Mar 2022 21:33:24 +0100
+
 clamav (0.103.5+dfsg-1) unstable; urgency=3Dmedium
=20
=20  * Import 0.103.5
diff -Nru clamav-0.103.5+dfsg/debian/clamav-base.postinst.in clamav-0.103.5=
+dfsg/debian/clamav-base.postinst.in
--- clamav-0.103.5+dfsg/debian/clamav-base.postinst.in	2022-01-12 21:02:01.=
000000000 +0100
+++ clamav-0.103.5+dfsg/debian/clamav-base.postinst.in	2022-03-25 21:33:24.=
000000000 +0100
@@ -32,7 +32,7 @@
=20
=20  # Set up the clamav user on new install
   if [ -z &quot;$2&quot; ]; then
-    if ! id clamav; then
+    if ! id clamav 2&gt;/dev/null; then
         adduser --system --no-create-home --quiet \
             --disabled-password --disabled-login \
 	    --shell /bin/false --group --home /var/lib/clamav clamav

--=_R8HNWxFooMS8Sez8pzx8Txr--

--=_Jp_9ZAV2rPqy2wVw6jqrV43
Content-Type: application/pgp-signature
Content-Description: Digitale PGP-Signatur
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIzBAABCgAdFiEEm/uu6GwKpf+/IgeCmvRrMCV3GzEFAmI+KacACgkQmvRrMCV3
GzFWrBAAnttElepYclbJ6mEFMB2P1eqe4OHEqqoxx44DLik3qPmQzbZax3+XUafv
7gzfMUziEn+B7k7bA+KedgNWqP38e9HRMI/4APQoawX4CeCA024atz5HakK++whA
h19QM3VJhB6g74NwBXPzutlCsmqtNBBXRRXhFOY6z5DSa++T9mdVJyq5TkI55Jvk
edni+znq24QEZTS6bVZ00vrkYz9N69ch0cZhgCVYu8Nme83shOtpGIxHdJAGgpDH
+tb3IM4ayC1zEH+5y3n4a1H1zwtsYBspGGK2dWkhpKL7Qfxo4vLH0E+EFv71fLDp
GocN2GSc0jlQFLYcptiVBm61eGpoatzQMxD1MMGIoArLDHWccml8BG90JT98w1/Z
v4F/rrEgYmKMdqic9qCDyiPkOGx0eKEAacer/Cyuwu3cslUUuooPBzSxnLyT1w/E
6bIgod2HhPyKdmssBPaGNW179gMi7TVgfkQJPQSF6yrZBfreilttKOao6Pmi4m6J
9fkzhnr2ojs2kVxKAgnZ39hcprb5+6LAy2prikES21V5p7UgYxJpY4zRdDgru/Oq
T+RUufgneryu2pEOos0Jbn5DRbu+YyMhaqDAtTtvW74ERfY2TapnkQBwYflFOjVZ
KUn2SukqFrDtUwS/P3FD/Bwe8eILfc6fKetTlABvgVNAua122II=
=caCv
-----END PGP SIGNATURE-----

--=_Jp_9ZAV2rPqy2wVw6jqrV43--
]