APM: Re: Problem opening a file

Evan Harris eharris at puremagic.com
Thu Jul 24 16:23:13 CDT 2003


Update to this question.  I come to find out that the sendmail install on
this machine was upgraded last night.

Still, I'd like to know what exactly the failure is and how to go about
fixing it.  Why did a sendmail upgrade affect tie/DB_File in such a way as
to cause that error to be thrown?

Evan

> I'm getting the following error trying to open a file with perl tie DB_File:
>
> ERROR: Unable to open access.db file '/etc/mail/access.db': Inappropriate
> ioctl for device at ./relaydelay.pl line 1168.
>
> Here's the code that generated it:
>
>   if (defined $sendmail_accessdb_file) {
>     my %accessdb;
>     # Test that we can open the accessdb file
>     if (! tie (%accessdb, 'DB_File', $sendmail_accessdb_file, O_RDONLY)) {
>       die "ERROR: Unable to open access.db file '$sendmail_accessdb_file': $!";
>     }
>     untie %accessdb;
>   }
>
> Any suggestions on how to fix this?  As far as I can see, the file is fine,
> I even deleted it and recompiled it.  The strange thing is it was working on
> the same system a day or two ago, and AFAIK, nothing has changed on the
> system as far as perl/libs etc.
>
> Evan




More information about the Austin mailing list