diff options
author | Aravind Srinivasan <aravind.srinivasan@isilon.com> | 2009-09-03 20:46:10 +0000 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2009-09-24 10:59:33 -0700 |
commit | 637901c24288740d51f28e2378c02d956dd7b17d (patch) | |
tree | 2d5dca7fa68bb1f0959c136cbddf1cdeafc3a229 /source3/modules/vfs_full_audit.c | |
parent | c870043b27dff10010e45358d924cbdd688f6555 (diff) | |
download | samba-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/modules/vfs_full_audit.c')
-rw-r--r-- | source3/modules/vfs_full_audit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c index b5c9e6bd9c..22abee416c 100644 --- a/source3/modules/vfs_full_audit.c +++ b/source3/modules/vfs_full_audit.c @@ -1518,11 +1518,12 @@ static void smb_full_audit_strict_unlock(struct vfs_handle_struct *handle, } static NTSTATUS smb_full_audit_translate_name(vfs_handle_struct *handle, - char **mapped_name) + char **mapped_name, + enum vfs_translate_direction direction) { NTSTATUS result; - result = SMB_VFS_NEXT_TRANSLATE_NAME(handle, mapped_name); + result = SMB_VFS_NEXT_TRANSLATE_NAME(handle, mapped_name, direction); do_log(SMB_VFS_OP_TRANSLATE_NAME, NT_STATUS_IS_OK(result), handle, ""); |