NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/58998: services_mkdb refers to /var/db/services.db but getservbyname() refers to /var/db/services.cdb
The following reply was made to PR bin/58998; it has been noted by GNATS.
From: Valery Ushakov <uwe%stderr.spb.ru@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: bin/58998: services_mkdb refers to /var/db/services.db but
getservbyname() refers to /var/db/services.cdb
Date: Thu, 16 Jan 2025 14:06:21 +0300
On Thu, Jan 16, 2025 at 02:45:02 +0000, Andrew Cagney via gnats wrote:
> Yes, btw, should getservbyname() mention both DBs?
I don't think so. getservbyname() uses .cdb. It used to use .db but
no longer does. There's no point to document what it used to do.
On the other hand services_mkdb can update _both_ new .cdb, used by
the current getservbyname(), _and_ the old .db that is used by
e.g. old copies of getservbyname() from previous releases that are
statically linked into old static binaries. So in this case the old
.db file needs to be documented.
-uwe
Home |
Main Index |
Thread Index |
Old Index