diff options
author | Jeremy Allison <jra@samba.org> | 2014-01-11 14:59:00 -0800 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2014-01-15 09:45:09 +0100 |
commit | 81df4123ca6fae6e9d901c59a12407f3f89dc335 (patch) | |
tree | 193ee9dfae02856f1c447556f4dadcb10a5b5f37 /source3 | |
parent | 51a115b62048735b4c8ec79211ce45600cfa5c01 (diff) | |
download | samba-81df4123ca6fae6e9d901c59a12407f3f89dc335.tar.gz samba-81df4123ca6fae6e9d901c59a12407f3f89dc335.tar.xz samba-81df4123ca6fae6e9d901c59a12407f3f89dc335.zip |
s3:dir - Cope with fixed mapping of '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.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c index ee9110e413..13e2090d14 100644 --- a/source3/smbd/dir.c +++ b/source3/smbd/dir.c @@ -905,6 +905,13 @@ void dptr_init_search_op(struct dptr_struct *dptr) static uint32_t map_dir_offset_to_wire(struct dptr_struct *dptr, long offset) { + if (offset == END_OF_DIRECTORY_OFFSET) { + return WIRE_END_OF_DIRECTORY_OFFSET; + } else if(offset == START_OF_DIRECTORY_OFFSET) { + return WIRE_START_OF_DIRECTORY_OFFSET; + } else if (offset == DOT_DOT_DIRECTORY_OFFSET) { + return WIRE_DOT_DOT_DIRECTORY_OFFSET; + } return (uint32_t)offset; } |