error message on NAMEDB_MAGIC inconsistency
miekg at atoom.net
Fri Jan 7 08:57:03 UTC 2005
[On 07 Jan, @ 07:36, Koh-ichi wrote in "error message on NAMEDB_MAGIC ..."]
> I got an error message like the following:
> Jan 7 12:13:52 myhost nsd: corrupted database: /var/db/nsd.db
> Jan 7 12:13:52 myhost nsd: unable to load /var/db/nsd.db: No such file or directory
> with the error, so to call strerror() sounds inapropriate, I
yes, you're right, but I don't see a quick fix.
namedb_open() returns NULL on error, so there is currently no
difference between a database error or a 'file not found' error.
Maybe dropping the whole log_msg() from server.c would be an idea,
and leave the error reporting in namedb_open().
More information about the nsd-users