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:
parent
39befb8a68
commit
592c89dbea
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user