diff options
author | Gerald Carter <jerry@samba.org> | 2002-06-17 18:36:36 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2002-06-17 18:36:36 +0000 |
commit | 1e6e5b299c235b513095a76a4cd9fffc41e8fc9c (patch) | |
tree | 9f741529073ad411cc7328334e26d3e35b1d33f1 /source/utils/status.c | |
parent | a11c5d7ad07d259d764aede4745d13f8163a8212 (diff) | |
download | samba-1e6e5b299c235b513095a76a4cd9fffc41e8fc9c.tar.gz samba-1e6e5b299c235b513095a76a4cd9fffc41e8fc9c.tar.xz samba-1e6e5b299c235b513095a76a4cd9fffc41e8fc9c.zip |
beginning to sync up for 2.2.5 release....
Diffstat (limited to 'source/utils/status.c')
-rw-r--r-- | source/utils/status.c | 10 |
1 files changed, 7 insertions, 3 deletions
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); |