From 71089253d149f32c7fb1c7e8d4c25e9de6e8c53f Mon Sep 17 00:00:00 2001 From: alexpeshkoff Date: Fri, 4 Dec 2009 17:48:07 +0000 Subject: [PATCH] Fixed an issue, detected during 2.5.0.RC1 QA - bad message when user had no rights to access /tmp/firebird --- src/jrd/os/posix/os_utils.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jrd/os/posix/os_utils.cpp b/src/jrd/os/posix/os_utils.cpp index 6f6ea30c6d..4254db4a13 100644 --- a/src/jrd/os/posix/os_utils.cpp +++ b/src/jrd/os/posix/os_utils.cpp @@ -26,6 +26,7 @@ // File functions #include "firebird.h" +#include "gen/iberror.h" #include "../jrd/common.h" #include "../common/classes/init.h" @@ -133,7 +134,9 @@ void createLockDirectory(const char* pathname) { continue; } - Firebird::system_call_failed::raise("mkdir"); + Firebird::string msg; + msg.printf("Can't access lock files' directory %s", pathname); + (Firebird::Arg::Gds(isc_random) << msg).raise(); } #ifndef SUPERSERVER