pkgsrc change: Add support for DESTDIR. Changes from 3.0.24 are huge, please refer WHATSNEW.txt. <http://viewcvs.samba.org/cgi-bin/viewcvs.cgi/branches/SAMBA_3_0_26/WHATSNEW.txt?rev=22651&view=markup>
16 lines
768 B
Text
16 lines
768 B
Text
$NetBSD: patch-bd,v 1.3 2007/10/28 07:28:48 taca 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;
|