[clamav/f12/master] use 'groupmems', not 'usermod'

ensc ensc at fedoraproject.org
Sun Aug 15 21:11:25 UTC 2010


commit d60067cb925517100c741fd1272a663e9458d08f
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 d8a88e7..55f27f3 100644
--- a/clamav.spec
+++ b/clamav.spec
@@ -541,7 +541,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 || :
@@ -706,6 +706,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
+
 * Sun Jun 20 2010 Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de> - 0.96.1-1200
 - updated to 0.96.1
 - applied upstream patch which allows to disable JIT compiler (#573191)


More information about the scm-commits mailing list