summaryrefslogtreecommitdiff
path: root/net/samba30/patches/patch-bd
diff options
context:
space:
mode:
Diffstat (limited to 'net/samba30/patches/patch-bd')
-rw-r--r--net/samba30/patches/patch-bd16
1 files changed, 16 insertions, 0 deletions
diff --git a/net/samba30/patches/patch-bd b/net/samba30/patches/patch-bd
new file mode 100644
index 00000000000..36192e126d5
--- /dev/null
+++ b/net/samba30/patches/patch-bd
@@ -0,0 +1,16 @@
+$NetBSD: patch-bd,v 1.1.1.1 2011/12/15 22:23:24 asau Exp $
+
+--- lib/account_pol.c.orig 2007-03-01 13:54:30.000000000 +0900
++++ lib/account_pol.c
+@@ -213,9 +213,9 @@ BOOL init_account_policy(void)
+ return True;
+ }
+
+- tdb = tdb_open_log(lock_path("account_policy.tdb"), 0, TDB_DEFAULT, O_RDWR, 0600);
++ tdb = tdb_open_log(state_path("account_policy.tdb"), 0, TDB_DEFAULT, O_RDWR, 0600);
+ if (!tdb) { /* the account policies files does not exist or open failed, try to create a new one */
+- tdb = tdb_open_log(lock_path("account_policy.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
++ tdb = tdb_open_log(state_path("account_policy.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
+ if (!tdb) {
+ DEBUG(0,("Failed to open account policy database\n"));
+ return False;