Possible bug with spam permissions

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


-----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".

>
> Regards,
>   JP
>
> ------------------------ 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!
>

- -- 
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/AwUBQwwsBhH2WUcUFbZUEQIucQCgu6T6olF8yFabHMAJepB9XMndbCcAoKJS
CKDhxIY5vKZ88DS6nrqy5JZR
=UE+/
-----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