[Pkg-clamav-devel] pkg-clamav : possible error in clamav-base.config.in
Romain Dartigues
romain.dartigues at gmail.com
Tue Jun 9 21:29:11 UTC 2009
Hi M. Grant,
thank you for your answer.
2009/6/9 Stephen Gran <sgran at debian.org>:
> On Tue, Jun 09, 2009 at 11:03:00AM -0400, Romain Dartigues said:
>> Good day,
>>
>> i'd like to report a possible error in debian/clamav-base.config.in;
>> if i should proceed in another fashion, please le me know how.
>> ::
>> AddGroups=`groups "$User" | awk -F ':' '{print $2}' | sed -e s/"$User"//`
>>
>> As far as i know, the command "groups" does not print any ":" if used
>> with one user (and "$User" is quoted), so:
>
> steve at varinia:~$ groups
> steve root adm mail dialout cdrom floppy audio dip video plugdev games users netdev fuse powerdev libvirt nvram
> steve at varinia:~$ groups steve
> steve : steve root adm mail dialout cdrom floppy audio dip video plugdev games users netdev fuse powerdev libvirt nvram
>
> So, I'm not sure why you're seeing the output you are, but I'm not.
You are right, it seem's the ":" is a characteristic of Debian and RedHat.
I had the "issue" on Ubuntu (8.04) and since on Ubuntu and my
Slackware "groups" have the same behavior, i assumed it was universal.
I'll report it to the Ubuntu community; but maybe you could, then,
patch it with:
AddGroups=`groups "$User" | sed -e 's/^.*: \?//g' -e s/"$User"//`
It should support both forms.
For information
user at ubuntu-8.04: groups --version
groups (GNU coreutils) 6.10
...
Written by David MacKenzie.
user at slackware-12.0: groups --version
groups (GNU coreutils) 6.9
...
Written by David MacKenzie.
Best regards,
Romain.
More information about the Pkg-clamav-devel
mailing list