summaryrefslogtreecommitdiff
path: root/source3/smbd/trans2.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-03-23 02:57:44 +0000
committerJeremy Allison <jra@samba.org>2002-03-23 02:57:44 +0000
commitc90cd26e9430b2fc065f620bdb6aaf4be0372fcc (patch)
tree24d94d8df7d083923998f92d07202fa5cae66c3b /source3/smbd/trans2.c
parentce236d1dbf2673e2ff921683554cee41fca33249 (diff)
downloadsamba-c90cd26e9430b2fc065f620bdb6aaf4be0372fcc.tar.gz
samba-c90cd26e9430b2fc065f620bdb6aaf4be0372fcc.tar.bz2
samba-c90cd26e9430b2fc065f620bdb6aaf4be0372fcc.zip
Fix the mp3 rename bug - also tidy up our open code and remove the special
cases for rename and unlink. Had to add desired_access into the share mode record. Jeremy. (This used to be commit 3b1b8ac43535fb0839c5474fa55bf7150f6cde31)
Diffstat (limited to 'source3/smbd/trans2.c')
-rw-r--r--source3/smbd/trans2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 185fe1c633..5d0ee08f42 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -1861,7 +1861,7 @@ NTSTATUS set_delete_on_close_internal(files_struct *fsp, BOOL delete_on_close)
* Only allow delete on close for files/directories opened with delete intent.
*/
- if (delete_on_close && !GET_DELETE_ACCESS_REQUESTED(fsp->share_mode)) {
+ if (delete_on_close && !(fsp->desired_access & DELETE_ACCESS)) {
DEBUG(10,("set_delete_on_close_internal: file %s delete on close flag set but delete access denied.\n",
fsp->fsp_name ));
return NT_STATUS_ACCESS_DENIED;