APM: Problem opening a file
Evan Harris
eharris at puremagic.com
Thu Jul 24 12:01:43 CDT 2003
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