8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 07:23:03 +01:00

Make comparing of host name case-insensitive

This commit is contained in:
roman-simakov 2013-12-06 14:49:35 +00:00
parent 3ce26a3eb1
commit 6d33d87728

View File

@ -291,7 +291,7 @@ public:
PathName db(_database), host;
if (ISC_extract_host(db, host, false) == ISC_PROTOCOL_TCPIP)
{
if (strncmp(host.c_str(), localhost, sizeof(localhost) - 1) != 0)
if (host.substr(0, sizeof(localhost) -1) != localhost)
pr_error(status, "nbackup needs local access to database file");
}