summaryrefslogtreecommitdiff
path: root/source3/include/vfs_macros.h
diff options
context:
space:
mode:
authorAravind Srinivasan <aravind.srinivasan@isilon.com>2009-09-03 20:46:10 +0000
committerTim Prouty <tprouty@samba.org>2009-09-24 10:59:33 -0700
commit637901c24288740d51f28e2378c02d956dd7b17d (patch)
tree2d5dca7fa68bb1f0959c136cbddf1cdeafc3a229 /source3/include/vfs_macros.h
parentc870043b27dff10010e45358d924cbdd688f6555 (diff)
downloadsamba-637901c24288740d51f28e2378c02d956dd7b17d.tar.gz
samba-637901c24288740d51f28e2378c02d956dd7b17d.tar.bz2
samba-637901c24288740d51f28e2378c02d956dd7b17d.zip
vfs catia: Fix the double translation that was happening with createfile and open.
Since the catia translation is implemented for open, it should not also be done in createfile. By removing createfile from catia, translation is now done correctly for the primary open path. In order to support systems that have custom createfile implementations that don't eventually call SMB_VFS_OPEN, SMB_VFS_TRANSLATE_NAME has been expanded to take an additional argument that specifies direction. Signed-off-by: Tim Prouty <tprouty@samba.org>
Diffstat (limited to 'source3/include/vfs_macros.h')
-rw-r--r--source3/include/vfs_macros.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/include/vfs_macros.h b/source3/include/vfs_macros.h
index 7cc5579e25..8ca7f373bf 100644
--- a/source3/include/vfs_macros.h
+++ b/source3/include/vfs_macros.h
@@ -345,10 +345,10 @@
#define SMB_VFS_NEXT_STRICT_UNLOCK(handle, fsp, plock) \
smb_vfs_call_strict_unlock((handle)->next, (fsp), (plock))
-#define SMB_VFS_TRANSLATE_NAME(conn, mapped_name) \
- smb_vfs_call_translate_name((conn)->vfs_handles, (mapped_name))
-#define SMB_VFS_NEXT_TRANSLATE_NAME(handle, mapped_name) \
- smb_vfs_call_translate_name((handle)->next, (mapped_name))
+#define SMB_VFS_TRANSLATE_NAME(conn, mapped_name, direction) \
+ smb_vfs_call_translate_name((conn)->vfs_handles, (mapped_name), (direction))
+#define SMB_VFS_NEXT_TRANSLATE_NAME(handle, mapped_name, direction) \
+ smb_vfs_call_translate_name((handle)->next, (mapped_name), (direction))
#define SMB_VFS_NEXT_STRICT_UNLOCK(handle, fsp, plock) \
smb_vfs_call_strict_unlock((handle)->next, (fsp), (plock))