[clamav/f14/master] use 'groupmems', not 'usermod'
ensc
ensc at fedoraproject.org
Wed Aug 11 11:16:50 UTC 2010
commit 2b76840a22f6502c09ba4381c410528cfb229a01
Author: Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de>
Date: Wed Aug 11 13:12:59 2010 +0200
use 'groupmems', not 'usermod'
'usermod' does not work when user does not exist in local /etc/passwd
but e.g. in LDAP
clamav.spec | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/clamav.spec b/clamav.spec
index bd79214..7570194 100644
--- a/clamav.spec
+++ b/clamav.spec
@@ -549,7 +549,7 @@ test -e %freshclamlog || {
%triggerin milter -- clamav-scanner
# Add the milteruser to the scanuser group; this is required when
# milter and clamd communicate through local sockets
-/usr/sbin/usermod -a -G %scanuser %milteruser &>/dev/null || :
+/usr/sbin/groupmems -g %scanuser -a %milteruser &>/dev/null || :
%pre milter
%__fe_groupadd 5 -r %milteruser &>/dev/null || :
@@ -714,6 +714,10 @@ test "$1" != "0" || /sbin/initctl -q stop clamav-milter || :
%changelog
+* Wed Aug 11 2010 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de>
+- use 'groupmems', not 'usermod' to add a user to a group because
+ 'usermod' does not work when user does not exist in local /etc/passwd
+
* Tue Jul 13 2010 Dan Horák <dan[at]danny.cz> - 0.96.1-1401
- ocaml not available (at least) on s390(x)
More information about the scm-commits
mailing list