summaryrefslogtreecommitdiffstats
path: root/source3/passdb/pdb_tdb.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@sernet.de>2007-11-04 18:15:37 +0100
committerVolker Lendecke <vl@sernet.de>2007-11-05 03:16:58 +0100
commit33d83175715d2179588c774259fd707c6daea2f9 (patch)
treea512fe8714ce460f6ad9c7e5cb0251e202143750 /source3/passdb/pdb_tdb.c
parent4c3040a4e8f484256b1c660ee0544b1b964c785f (diff)
downloadsamba-33d83175715d2179588c774259fd707c6daea2f9.tar.gz
samba-33d83175715d2179588c774259fd707c6daea2f9.tar.xz
samba-33d83175715d2179588c774259fd707c6daea2f9.zip
static pstring removal
(This used to be commit 5490e2d77233f594a42cb32eda8215014db544e3)
Diffstat (limited to 'source3/passdb/pdb_tdb.c')
-rw-r--r--source3/passdb/pdb_tdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c
index 79427a587cd..099b443072c 100644
--- a/source3/passdb/pdb_tdb.c
+++ b/source3/passdb/pdb_tdb.c
@@ -55,7 +55,7 @@ static bool pwent_initialized;
static TDB_CONTEXT *tdbsam;
static int ref_count = 0;
-static pstring tdbsam_filename;
+static char *tdbsam_filename;
/**********************************************************************
Marshall/unmarshall struct samu structs.
@@ -1609,7 +1609,7 @@ static NTSTATUS pdb_init_tdbsam(struct pdb_methods **pdb_method, const char *loc
pstr_sprintf( tdbfile, "%s/%s", dyn_STATEDIR(), PASSDB_FILE_NAME );
pfile = tdbfile;
}
- pstrcpy( tdbsam_filename, pfile );
+ tdbsam_filename = SMB_STRDUP(pfile);
/* no private data */