From 1e6e5b299c235b513095a76a4cd9fffc41e8fc9c Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 17 Jun 2002 18:36:36 +0000 Subject: beginning to sync up for 2.2.5 release.... --- source/utils/status.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'source/utils/status.c') diff --git a/source/utils/status.c b/source/utils/status.c index 044cd7a6a16..ff45bb97961 100644 --- a/source/utils/status.c +++ b/source/utils/status.c @@ -641,12 +641,15 @@ static int traverse_fn1(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf, void *st tdb = tdb_open_log(lock_path("connections.tdb"), 0, TDB_DEFAULT, O_RDONLY, 0); if (!tdb) { - printf("connections.tdb not initialised\n"); - if (!lp_status(-1)) + printf("%s not initialized.\n", lock_path("connections.tdb")); + printf("This is normal if an SMB client has never connected to your server.\n"); + if (!lp_status(-1)) { printf("You need to have status=yes in your smb config file\n"); + } return(0); } else if (verbose) { - printf("Opened status file %s\n", fname); + slprintf (fname, sizeof(fname)-1, "%s/%s", lp_lockdir(), "connections.tdb"); + printf("Opened %s\n", fname); } if (locks_only) goto locks; @@ -660,6 +663,7 @@ static int traverse_fn1(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf, void *st printf("----------------------------------------------\n"); } tdb_traverse(tdb, traverse_fn1, NULL); + locks: if (processes_only) exit(0); -- cgit