Hi M. Grant,

thank you for your answer.

2009/6/9 Stephen Gran <[email protected]>:
> 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:
>
> st...@varinia:~$ groups
> steve root adm mail dialout cdrom floppy audio dip video plugdev games users 
> netdev fuse powerdev libvirt nvram
> st...@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

[email protected]: groups --version
groups (GNU coreutils) 6.10
...
Written by David MacKenzie.

[email protected]: groups --version
groups (GNU coreutils) 6.9
...
Written by David MacKenzie.

Best regards,
Romain.

_______________________________________________
Pkg-clamav-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-clamav-devel

Reply via email to