Possible bug with spam permissions

Julian Field MailScanner at ecs.soton.ac.uk
Wed Aug 24 09:18:47 IST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 24 Aug 2005, at 09:12, Julian Field wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 24 Aug 2005, at 09:05, Jan-Peter Koopmann wrote:
>
>
>> On Wednesday, August 24, 2005 10:02 AM Julian Field wrote:
>>
>>
>>
>>> It's possible the "6 0 6" is causing the problem, I can understand
>>> why they do it.
>>>
>>>
>>
>> You can? Fill me in please...
>>
>
> It's a means of supplying a scalar and a list out of the same
> variable. If you use it with arithmetic, only the first number will
> be used. If you use it as a string, you get all the numbers, so you
> can 'split " "' it into a list. In this case, I imagine the list is
> all the secondary groups.
>
>
>>
>>
>>
>>> Can you try adding 0 to the gid just before the chown line?
>>>
>>>
>>
>> ??? No idea what you mean sorry.
>>
>
> After
>      $gid = $global::MS->{quar}->{gid};
> add this:
>      $gid = $gid + 0;
> If you print $gid after that line, it should just say "6" instead of
> "6 0 6".

Hmmm, can't be that. Why is the $gid be picking up the wrong number  
altogether?
The quarantine for viruses and for spam both access the same  
variables as far as I can see, but obviously they aren't. Can any of  
you guys spot the difference?
- -- 
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.2 (Build 2425)

iQA/AwUBQwwtaRH2WUcUFbZUEQIQMgCgh+QtHLd9avoRBgznceOjFX4UZdUAn1lZ
6oO2gMUh4vxwcrnTdrvusBUu
=0SPR
-----END PGP SIGNATURE-----

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!



More information about the MailScanner mailing list