mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
Found whilst back-porting the fix for bug 8837 - smbd crashes when deleting directory and veto files are enabled.
The delete tokens are unique to each name hash representing a pathname, if we don't correctly return here we'll add duplicate tokens for a given pasname hash. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Apr 7 02:13:58 CEST 2012 on sn-devel-104
This commit is contained in:
parent
a92c532573
commit
989fc20fc3
@ -934,8 +934,7 @@ void set_delete_on_close_lck(files_struct *fsp,
|
||||
*dt = d->delete_tokens[
|
||||
d->num_delete_tokens-1];
|
||||
d->num_delete_tokens -= 1;
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
/* Replace this token with the
|
||||
given tok. */
|
||||
TALLOC_FREE(dt->delete_nt_token);
|
||||
@ -945,6 +944,8 @@ void set_delete_on_close_lck(files_struct *fsp,
|
||||
dt->delete_token = copy_unix_token(dt, tok);
|
||||
SMB_ASSERT(dt->delete_token != NULL);
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!delete_on_close) {
|
||||
|
Loading…
Reference in New Issue
Block a user