diff options
author | Jeremy Allison <jra@samba.org> | 2016-02-23 13:14:03 -0800 |
---|---|---|
committer | Uri Simchoni <uri@samba.org> | 2016-02-24 16:05:55 +0100 |
commit | 873df9a8a5508a3a4f51dfe447a5ffcdf18bab09 (patch) | |
tree | aa8516d7133a30fd2e353eaad9cefc0c695b2f83 /examples/VFS/skel_transparent.c | |
parent | d7f552cbbd173db941ef752fb70609eb1b0d0e70 (diff) | |
download | samba-873df9a8a5508a3a4f51dfe447a5ffcdf18bab09.tar.gz |
s3: VFS: Modify mkdir to take a const struct smb_filename * instead of const char *
Preparing to reduce use of lp_posix_pathnames().
Uses the same techniques as commit 616d068f0cebb8e50a855b6e30f36fccb7f5a3c8
(synthetic_smb_fname()) to cope with modules that
modify the incoming pathname.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
Autobuild-User(master): Uri Simchoni <uri@samba.org>
Autobuild-Date(master): Wed Feb 24 16:05:55 CET 2016 on sn-devel-144
Diffstat (limited to 'examples/VFS/skel_transparent.c')
-rw-r--r-- | examples/VFS/skel_transparent.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index fc3c8181fd9..ac8cbc85f30 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -157,9 +157,11 @@ static void skel_rewind_dir(vfs_handle_struct *handle, DIR *dirp) SMB_VFS_NEXT_REWINDDIR(handle, dirp); } -static int skel_mkdir(vfs_handle_struct *handle, const char *path, mode_t mode) +static int skel_mkdir(vfs_handle_struct *handle, + const struct smb_filename *smb_fname, + mode_t mode) { - return SMB_VFS_NEXT_MKDIR(handle, path, mode); + return SMB_VFS_NEXT_MKDIR(handle, smb_fname, mode); } static int skel_rmdir(vfs_handle_struct *handle, const char *path) |