summaryrefslogtreecommitdiff
path: root/source3/include/smb.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-09-14 19:49:55 +0000
committerJeremy Allison <jra@samba.org>1998-09-14 19:49:55 +0000
commitcd5d4d5c12395fc55cca5048ff368d52717ab9cc (patch)
tree7718d13474c589a9b17d8ee579b7b09d10deacf4 /source3/include/smb.h
parent9b20e5bac2a7b83f8e3dfdf3a274a1ce12dbd92c (diff)
downloadsamba-cd5d4d5c12395fc55cca5048ff368d52717ab9cc.tar.gz
samba-cd5d4d5c12395fc55cca5048ff368d52717ab9cc.tar.bz2
samba-cd5d4d5c12395fc55cca5048ff368d52717ab9cc.zip
Fixed problems people were having with creating profile
directories (NTTrans/Create with Security Descriptor for a directory). It turns out the CIFS spec is bogus (what a suprise) and the 'is a directory' flag is actually embedded in the create_options field. Jeremy. (This used to be commit 68750d8153f01bd0802bb86e93c3ca5d11acb199)
Diffstat (limited to 'source3/include/smb.h')
-rw-r--r--source3/include/smb.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 5a90f08258..412b1f3383 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -1187,6 +1187,16 @@ struct bitmap {
#define FILE_OVERWRITE 4
#define FILE_OVERWRITE_IF 5
+/* CreateOptions field. */
+#define FILE_DIRECTORY_FILE 0x0001
+#define FILE_WRITE_THROUGH 0x0002
+#define FILE_SEQUENTIAL_ONLY 0x0004
+#define FILE_NON_DIRECTORY_FILE 0x0040
+#define FILE_NO_EA_KNOWLEDGE 0x0200
+#define FILE_EIGHT_DOT_THREE_ONLY 0x0400
+#define FILE_RANDOM_ACCESS 0x0800
+#define FILE_DELETE_ON_CLOSE 0x1000
+
/* Responses when opening a file. */
#define FILE_WAS_OPENED 1
#define FILE_WAS_CREATED 2