diff options
author | Volker Lendecke <vl@samba.org> | 2013-08-30 12:49:43 +0000 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2013-09-26 09:45:02 +0200 |
commit | 3a5ae0c11c4234950e6080a3b71f3d66db06edac (patch) | |
tree | 6868c8ebb8f54744b8bcc867dbc88ccf54489b00 /nsswitch | |
parent | 9cfc00190882aea1915a721af2abbd07784ce6a7 (diff) | |
download | samba-3a5ae0c11c4234950e6080a3b71f3d66db06edac.tar.gz |
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>
(cherry picked from commit 7d91ffc6fdc3b371564e14f09822a96264ea372a)
Diffstat (limited to 'nsswitch')
0 files changed, 0 insertions, 0 deletions