From 4c5152b8fe2637ab067111ab23753f683ad692ac Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Fri, 13 Feb 2004 14:48:57 +0000 Subject: Fix a few comments/formatting issues to make it more in line with 3.0 and reduce diff output. (This used to be commit 306c021000d36f13b3740839b62df60986e4e112) --- source3/passdb/pdb_tdb.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source3/passdb') diff --git a/source3/passdb/pdb_tdb.c b/source3/passdb/pdb_tdb.c index 2460c97a1b..f54463e158 100644 --- a/source3/passdb/pdb_tdb.c +++ b/source3/passdb/pdb_tdb.c @@ -37,7 +37,7 @@ static int tdbsam_debug_level = DBGC_ALL; #endif -#define TDBSAM_VERSION 1 /* Most recent TDBSAM version */ +#define TDBSAM_VERSION 1 /* Most recent TDBSAM version */ #define TDBSAM_VERSION_STRING "INFO/version" #define PASSDB_FILE_NAME "passdb.tdb" #define USERPREFIX "USER_" @@ -183,8 +183,11 @@ static TDB_CONTEXT * tdbsam_tdbopen (const char *name, int open_flags) tdbsamver_t version; /* Try to open tdb passwd */ - if (!(pdb_tdb = tdb_open_log(name, 0, TDB_DEFAULT, open_flags, 0600))) + if (!(pdb_tdb = tdb_open_log(name, 0, TDB_DEFAULT, + open_flags, 0600))) { + DEBUG(0, ("Unable to open/create TDB passwd\n")); return NULL; + } /* Check the version */ version = (tdbsamver_t) tdb_fetch_int32(pdb_tdb, @@ -230,7 +233,7 @@ static TDB_CONTEXT * tdbsam_tdbopen (const char *name, int open_flags) } /***************************************************************************** - Utility functions to open the tdb sam database + Utility functions to close the tdb sam database ****************************************************************************/ static void tdbsam_tdbclose ( struct tdbsam_privates *state ) -- cgit