....
 

Guardian Digital Inc. > InfoCenter > Mailing List Archives > Amavis

Amavis Mailing List Archive

From: Mark Martinec (Mark.Martinec+amavis@ijs.si)
Date: Fri Dec 17 2004 - 08:25:37 EST


Gary,

> > Strange. Perhaps your Perl is too clever and recognizes the rename
> > to the same name is a no-op. Try to rename to a different name -
> > the second argument in the qw list, i.e.
> > qw(/etc/amavis/amavisd.conf /etc/amavis/amavisd.conf.different)
>
> # su amavis -c 'perl -e "warn rename(qw(/etc/amavis/amavisd.conf
> /etc/amavis/amavisd.conf-2)) ? qq(renamed, nogood\n) : qq(can not,ok\n)"'
> can not,ok

So it appears this is the answer,
the test must attempt to rename to a different name
to be relevant:

--- amavisd~ Thu Dec 16 16:07:25 2004
+++ amavisd Fri Dec 17 14:19:16 2004
@@ -5430,3 +5430,3 @@
                    "by EUID $>, EGID $)" );
- } elsif (rename($config_file, $config_file)) {
+ } elsif (rename($config_file, $config_file.'.moved')) {
         push(@msg, "Directory of a config file \"$config_file\" is writable ".

Mark

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/



[ About Guardian Digital ] - [ Press Center ] - [ Contact Us ] - [ System Activation ] - [ Reseller Info ] - [ Online Store ] - [ Site Map ]
Copyright (c) 2000 - 2004 Guardian Digital, Inc. Linux Lockbox and EnGarde are Trademarks of Guardian Digital, Inc.