mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 22:43:03 +01:00
Well, there is a case where relative path could contain drive letter, for ex. C:xxx\yyy\zzz.
Correct first version of code.
This commit is contained in:
parent
7c61a0bad9
commit
05126afd12
@ -153,10 +153,7 @@ bool PathUtils::isRelative(const Firebird::PathName& path)
|
||||
{
|
||||
if (path.length() > 0)
|
||||
{
|
||||
if (hasDriveLetter(path))
|
||||
return false;
|
||||
|
||||
const char ds = path[0];
|
||||
const char ds = hasDriveLetter(path) ? path[2] : path[0];
|
||||
return ds != PathUtils::dir_sep && ds != '/';
|
||||
}
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user