mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 18:43:02 +01:00
Make comparing of host name case-insensitive
This commit is contained in:
parent
3ce26a3eb1
commit
6d33d87728
@ -291,7 +291,7 @@ public:
|
|||||||
PathName db(_database), host;
|
PathName db(_database), host;
|
||||||
if (ISC_extract_host(db, host, false) == ISC_PROTOCOL_TCPIP)
|
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");
|
pr_error(status, "nbackup needs local access to database file");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user