mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 09:23:03 +01:00
Use universal path separator.
This commit is contained in:
parent
770f5d85a2
commit
86325858c4
@ -50,6 +50,7 @@
|
|||||||
#include "../jrd/msg_encode.h"
|
#include "../jrd/msg_encode.h"
|
||||||
#include "../jrd/iberr.h"
|
#include "../jrd/iberr.h"
|
||||||
#include "../jrd/gds_proto.h"
|
#include "../jrd/gds_proto.h"
|
||||||
|
#include "../jrd/os/path_utils.h"
|
||||||
|
|
||||||
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@ -2386,8 +2387,11 @@ void API_ROUTINE gds__prefix(TEXT *resultString, TEXT *file)
|
|||||||
}
|
}
|
||||||
strcat(resultString, ib_prefix);
|
strcat(resultString, ib_prefix);
|
||||||
|
|
||||||
if (resultString[strlen(resultString) - 1] != '/')
|
int len = strlen(resultString);
|
||||||
strcat(resultString, "/");
|
if (resultString[len - 1] != PathUtils::dir_sep) {
|
||||||
|
resultString[len] = PathUtils::dir_sep;
|
||||||
|
resultString[len + 1] = 0;
|
||||||
|
}
|
||||||
strcat(resultString, file);
|
strcat(resultString, file);
|
||||||
}
|
}
|
||||||
#endif /* !defined(VMS) */
|
#endif /* !defined(VMS) */
|
||||||
|
Loading…
Reference in New Issue
Block a user