1
0
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:
Gerald (Jerry) Carter
2007-11-01 15:53:44 -04:00
parent b7d2fadbef
commit d6cdbfd875
14 changed files with 37 additions and 37 deletions

View File

@@ -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 );