$OpenBSD: patch-source3_modules_vfs_acl_tdb_c,v 1.3 2019/12/19 02:57:28 jca Exp $

Workaround/fix for https://bugzilla.samba.org/show_bug.cgi?id=11761

Index: source3/modules/vfs_acl_tdb.c
--- source3/modules/vfs_acl_tdb.c.orig
+++ source3/modules/vfs_acl_tdb.c
@@ -59,7 +59,7 @@ static bool acl_tdb_init(void)
 
 	become_root();
 	acl_db = db_open(NULL, dbname, 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600,
-			 DBWRAP_LOCK_ORDER_1, DBWRAP_FLAG_NONE);
+			 DBWRAP_LOCK_ORDER_2, DBWRAP_FLAG_NONE);
 	unbecome_root();
 
 	if (acl_db == NULL) {
