git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4e6733a
)
windows-delonclose-20050522
author
Jeffrey Altman
<jaltman@secure-endpoints.com>
Sun, 22 May 2005 06:53:44 +0000 (06:53 +0000)
committer
Jeffrey Altman
<jaltman@secure-endpoints.com>
Sun, 22 May 2005 06:53:44 +0000 (06:53 +0000)
Fix support for the CreateFile(DELETE_ON_CLOSE) option.
src/WINNT/afsd/smb3.c
patch
|
blob
|
history
diff --git
a/src/WINNT/afsd/smb3.c
b/src/WINNT/afsd/smb3.c
index
033012b
..
ca638c6
100644
(file)
--- a/
src/WINNT/afsd/smb3.c
+++ b/
src/WINNT/afsd/smb3.c
@@
-5328,6
+5328,8
@@
long smb_ReceiveNTCreateX(smb_vc_t *vcp, smb_packet_t *inp, smb_packet_t *outp)
fidflags |= SMB_FID_OPENREAD;
if (desiredAccess & AFS_ACCESS_WRITE)
fidflags |= SMB_FID_OPENWRITE;
+ if (createOptions & FILE_DELETE_ON_CLOSE)
+ fidflags |= SMB_FID_DELONCLOSE;
code = 0;
@@
-5989,6
+5991,8
@@
long smb_ReceiveNTTranCreate(smb_vc_t *vcp, smb_packet_t *inp, smb_packet_t *out
fidflags |= SMB_FID_OPENREAD;
if (desiredAccess & AFS_ACCESS_WRITE)
fidflags |= SMB_FID_OPENWRITE;
+ if (createOptions & FILE_DELETE_ON_CLOSE)
+ fidflags |= SMB_FID_DELONCLOSE;
dscp = NULL;
code = 0;