mirror of
https://github.com/samba-team/samba.git
synced 2025-12-02 00:23:50 +03:00
Patch 2 of 3 from Debian Samba packagers:
The point is doing the following associations: - non discardable state data (all TDB files that may need to be backed up) go to statedir - shared data (codepage stuff) go to codepagedir The patch *does not change* the default location for these directories. So, there is no behaviour change when applying it. The main change is for samba developers who have to think when dealing with files that previously pertained to libdir whether they: - go in statedir - go in codepagedir - stay in libdir
This commit is contained in:
@@ -66,7 +66,7 @@ char *elog_tdbname( const char *name )
|
||||
{
|
||||
fstring path;
|
||||
char *tdb_fullpath;
|
||||
char *eventlogdir = lock_path( "eventlog" );
|
||||
char *eventlogdir = state_path( "eventlog" );
|
||||
|
||||
pstr_sprintf( path, "%s/%s.tdb", eventlogdir, name );
|
||||
strlower_m( path );
|
||||
@@ -348,7 +348,7 @@ ELOG_TDB *elog_open_tdb( char *logname, bool force_clear )
|
||||
|
||||
/* make sure that the eventlog dir exists */
|
||||
|
||||
eventlogdir = lock_path( "eventlog" );
|
||||
eventlogdir = state_path( "eventlog" );
|
||||
if ( !directory_exist( eventlogdir, NULL ) )
|
||||
mkdir( eventlogdir, 0755 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user