1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/source3/locking
Volker Lendecke 7d91ffc6fd smbd: Fix flawed share_mode_stale_pid API
The comment for this routine said:

> Modifies d->num_share_modes, watch out in routines iterating over
> that array.

Well, it turns out that *every* caller of this API got it wrong. So I
think it's better to change the routine.

This leaves the array untouched while iterating but filters out the
deleted ones while saving them back to disk.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
2013-09-03 17:13:53 +02:00
..
brlock.c s3:locking:brlock: add function brl_cleanup_disconnected() 2013-04-18 13:15:12 +02:00
locking.c smbd: Fix flawed share_mode_stale_pid API 2013-09-03 17:13:53 +02:00
posix.c s3: Remove reduce_windows_lock_ref_count, used only once 2012-06-22 15:16:51 +02:00
proto.h smbd: Rename parameter "i" to "idx" 2013-09-03 17:13:53 +02:00
share_mode_lock.c smbd: Fix flawed share_mode_stale_pid API 2013-09-03 17:13:53 +02:00