Guardian Digital Inc. >
InfoCenter >
Mailing List Archives >
Amavis
Amavis Mailing List Archive
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/
|