-=| Damyan Ivanov, 09.05.2013 11:10:01 +0300 |=-
> http://tracker.firebirdsql.org/browse/CORE-3996 is flagged as fixed 
> for 2.5.3, but I can't see the commit in the B2_5_Release branch.

The attached patch (to be applied to B2_5_Release) seems to fix the 
crash for me.

-- dam
Description: fix a crash when creating a database outside of allowed paths
 firebird.conf/DatabaseAccess must be 'None' or 'Restricted'
Author: Damyan Ivanov <d...@debian.org>
Bug: http://tracker.firebirdsql.org/browse/CORE-3996

--- a/src/jrd/jrd.cpp
+++ b/src/jrd/jrd.cpp
@@ -1985,7 +1985,7 @@ ISC_STATUS GDS_CREATE_DATABASE(ISC_STATU
 	const VdnResult vdn = verifyDatabaseName(expanded_name, user_status, is_alias);
 	if (!is_alias && vdn == VDN_FAIL)
 	{
-		trace_failed_attach(NULL, filename, options, true, false);
+		trace_failed_attach(NULL, filename, options, true, user_status);
 		return user_status[1];
 	}
 
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to