summaryrefslogtreecommitdiff
path: root/net/samba/patches/patch-bd
diff options
context:
space:
mode:
Diffstat (limited to 'net/samba/patches/patch-bd')
-rw-r--r--net/samba/patches/patch-bd19
1 files changed, 11 insertions, 8 deletions
diff --git a/net/samba/patches/patch-bd b/net/samba/patches/patch-bd
index ed8c5b25311..ef400574ad7 100644
--- a/net/samba/patches/patch-bd
+++ b/net/samba/patches/patch-bd
@@ -1,13 +1,16 @@
-$NetBSD: patch-bd,v 1.2 2006/01/02 22:33:36 jlam Exp $
+$NetBSD: patch-bd,v 1.2.14.1 2007/11/16 15:19:25 ghen Exp $
---- lib/account_pol.c.orig 2005-12-20 10:28:38.000000000 -0500
+--- lib/account_pol.c.orig 2007-03-01 13:54:30.000000000 +0900
+++ lib/account_pol.c
-@@ -262,7 +262,7 @@ BOOL init_account_policy(void)
+@@ -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|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;
+- 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;