1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

improved error message in case the lock list is truncated

(This used to be commit f4ecc5a8e3)
This commit is contained in:
Andrew Tridgell 1999-12-22 01:36:27 +00:00
parent ecfee3f170
commit fc4e722127

View File

@ -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");