summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2014-01-11 14:56:57 -0800
committerAndreas Schneider <asn@samba.org>2014-01-15 09:45:09 +0100
commit51a115b62048735b4c8ec79211ce45600cfa5c01 (patch)
treefc977d594a38fd8d3f0b1458df96281866f6716e /source3
parent5afc25eceb0c0e031bbe162617309178f3bcc425 (diff)
downloadsamba-51a115b62048735b4c8ec79211ce45600cfa5c01.tar.gz
samba-51a115b62048735b4c8ec79211ce45600cfa5c01.tar.xz
samba-51a115b62048735b4c8ec79211ce45600cfa5c01.zip
s3: dir - Introduce 32-bit wire versions of the 'special' values.
https://bugzilla.samba.org/show_bug.cgi?id=2662 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/dir.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index fb2ad88f75..ee9110e413 100644
--- a/source3/smbd/dir.c
+++ b/source3/smbd/dir.c
@@ -34,6 +34,11 @@
#define START_OF_DIRECTORY_OFFSET ((long)0)
#define DOT_DOT_DIRECTORY_OFFSET ((long)0x80000000)
+/* "Special" directory offsets in 32-bit wire format. */
+#define WIRE_END_OF_DIRECTORY_OFFSET ((uint32_t)0xFFFFFFFF)
+#define WIRE_START_OF_DIRECTORY_OFFSET ((uint32_t)0)
+#define WIRE_DOT_DOT_DIRECTORY_OFFSET ((uint32_t)0x80000000)
+
/* Make directory handle internals available. */
struct name_cache_entry {