1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

s3: Be less picky on stale share mode entries

If a process died, the share mode entry might be bogus. Ignore those entries.

Signed-off-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke
2012-05-14 14:57:34 +02:00
committed by Jeremy Allison
parent 49237b0cef
commit 43296090f9

View File

@ -620,7 +620,9 @@ bool is_valid_share_mode_entry(const struct share_mode_entry *e)
num_props += (EXCLUSIVE_OPLOCK_TYPE(e->op_type) ? 1 : 0);
num_props += (LEVEL_II_OPLOCK_TYPE(e->op_type) ? 1 : 0);
SMB_ASSERT(num_props <= 1);
if (serverid_exists(&e->pid) && (num_props > 1)) {
smb_panic("Invalid share mode entry");
}
return (num_props != 0);
}