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>
34 lines
1.3 KiB
Text
34 lines
1.3 KiB
Text
$NetBSD: patch-bh,v 1.3 2007/10/28 07:28:48 taca Exp $
|
|
|
|
--- registry/reg_db.c.orig 2007-03-01 13:55:05.000000000 +0900
|
|
+++ registry/reg_db.c
|
|
@@ -234,12 +234,12 @@ BOOL regdb_init( void )
|
|
if ( tdb_reg )
|
|
return True;
|
|
|
|
- if ( !(tdb_reg = tdb_open_log(lock_path("registry.tdb"), 0, TDB_DEFAULT, O_RDWR, 0600)) )
|
|
+ if ( !(tdb_reg = tdb_open_log(state_path("registry.tdb"), 0, TDB_DEFAULT, O_RDWR, 0600)) )
|
|
{
|
|
- tdb_reg = tdb_open_log(lock_path("registry.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
|
|
+ tdb_reg = tdb_open_log(state_path("registry.tdb"), 0, TDB_DEFAULT, O_RDWR|O_CREAT, 0600);
|
|
if ( !tdb_reg ) {
|
|
DEBUG(0,("regdb_init: Failed to open registry %s (%s)\n",
|
|
- lock_path("registry.tdb"), strerror(errno) ));
|
|
+ state_path("registry.tdb"), strerror(errno) ));
|
|
return False;
|
|
}
|
|
|
|
@@ -281,11 +281,11 @@ WERROR regdb_open( void )
|
|
|
|
become_root();
|
|
|
|
- tdb_reg = tdb_open_log(lock_path("registry.tdb"), 0, TDB_DEFAULT, O_RDWR, 0600);
|
|
+ tdb_reg = tdb_open_log(state_path("registry.tdb"), 0, TDB_DEFAULT, O_RDWR, 0600);
|
|
if ( !tdb_reg ) {
|
|
result = ntstatus_to_werror( map_nt_error_from_unix( errno ) );
|
|
DEBUG(0,("regdb_open: Failed to open %s! (%s)\n",
|
|
- lock_path("registry.tdb"), strerror(errno) ));
|
|
+ state_path("registry.tdb"), strerror(errno) ));
|
|
}
|
|
|
|
unbecome_root();
|