summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-02-04 06:31:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:06:25 -0500
commit40d3c7ebb22bae6f486e8c60c3bb0494d2d397d9 (patch)
tree34e4eec0c679809d469bf853459d5c27b3c1c090 /source3/include
parentfeb50dae419380f200bc127632be88637788dc8f (diff)
downloadsamba-40d3c7ebb22bae6f486e8c60c3bb0494d2d397d9.tar.gz
samba-40d3c7ebb22bae6f486e8c60c3bb0494d2d397d9.tar.bz2
samba-40d3c7ebb22bae6f486e8c60c3bb0494d2d397d9.zip
r13329: Fix libsmbsharemodes.so to work with the stored delete token.
Less trouble than I thought plus it didn't need an interface change (thank goodness !). Jeremy. (This used to be commit dbe2572d1c713f46b0d1d0c405f88456c9336297)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/smb.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index b167e4ee12..dc03ba44d4 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -670,6 +670,31 @@ struct share_mode_lock {
BOOL modified;
};
+/*
+ * Internal structure of locking.tdb share mode db.
+ * Used by locking.c and libsmbsharemodes.c
+ */
+
+struct locking_data {
+ union {
+ struct {
+ int num_share_mode_entries;
+ BOOL delete_on_close;
+ BOOL initial_delete_on_close; /* Only set at NTCreateX if file was created. */
+ uint32 delete_token_size; /* Only valid if either of
+ the two previous fields
+ are True. */
+ } s;
+ struct share_mode_entry dummy; /* Needed for alignment. */
+ } u;
+ /* The following four entries are implicit
+ struct share_mode_entry modes[num_share_mode_entries];
+ char unix_token[delete_token_size] (divisible by 4).
+ char share_name[];
+ char file_name[];
+ */
+};
+
#define NT_HASH_LEN 16
#define LM_HASH_LEN 16