Zhang,

> > Perhaps you changed the line 60:
> >   my($db_home) =  # DB databases directory
> > and left the expression in the continuation line 61 dangling
> > without an assignment.
>
> not changed.

Maybe your packager did it.

> # grep -i 'db_home' /usr/sbin/amavisd-nanny
> my($db_home) = "/var/amavis/db";
>   defined $ENV{'AMAVISD_DB_HOME'} ? $ENV{'AMAVISD_DB_HOME'} :
> '/var/amavis/db';
>     @dbstat = stat("$db_home/$dbfile");
>     $errn==0 || $errn==ENOENT  or die "stat $db_home/$dbfile: $!";
>       printf STDERR ("Reopening nanny database %s/%s\n", $db_home,$dbfile);
>         -Home => $db_home, -Flags => DB_INIT_CDB | DB_INIT_MPOOL,
>                      $db_home,$dbfile);
>
> My amavisd-new is 2.6.2.

The relevant code section from amavisd-nanny, both 2.6.2 and 2.6.3,
is the following:

my($dbfile) = 'nanny.db';
my($db_home) =  # DB databases directory
  defined $ENV{'AMAVISD_DB_HOME'} ? $ENV{'AMAVISD_DB_HOME'} : '/var/amavis/db';
my($wakeuptime) = 2;  # -w, sleep time in seconds, may be fractional
my($repeatcount);     # -c, repeat count (when defined)

If you changed the line "my($db_home) =  # DB databases directory"
and terminated the statement there, the expression in the continuation
line is left there in limbo.

  Mark




------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.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/ 

Reply via email to