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

Make comparing of host name case-insensitive

This commit is contained in:
roman-simakov 2013-12-06 14:58:07 +00:00
parent 39befb8a68
commit 592c89dbea

View File

@ -278,7 +278,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");
}