summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1999-12-22 01:36:27 +0000
committerAndrew Tridgell <tridge@samba.org>1999-12-22 01:36:27 +0000
commitf4ecc5a8e39ee69c59123b7b3ffbd081f69824ca (patch)
tree3759e17ba4b83f33e80e01c44b7ef7574e73b903
parented7541668e9bc98ae9daf55f817d2de04345e660 (diff)
downloadsamba-f4ecc5a8e39ee69c59123b7b3ffbd081f69824ca.tar.gz
samba-f4ecc5a8e39ee69c59123b7b3ffbd081f69824ca.tar.xz
samba-f4ecc5a8e39ee69c59123b7b3ffbd081f69824ca.zip
improved error message in case the lock list is truncated
-rw-r--r--source/utils/status.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/utils/status.c b/source/utils/status.c
index 35f91ef2aff..51118914922 100644
--- a/source/utils/status.c
+++ b/source/utils/status.c
@@ -324,13 +324,20 @@ static int traverse_fn1(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf)
printf("\n");
if (!shares_only) {
+ int ret;
+
if (!locking_init(1)) {
printf("Can't initialise shared memory - exiting\n");
exit(1);
}
- if (share_mode_forall(print_share_mode) <= 0)
+ ret = share_mode_forall(print_share_mode);
+
+ if (ret == 0) {
printf("No locked files\n");
+ } else if (ret == -1) {
+ printf("locked file list truncated\n");
+ }
printf("\n");