8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 20:03:02 +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:
hvlad 2013-03-28 13:15:03 +00:00
parent 7c61a0bad9
commit 05126afd12

View File

@ -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;