s3 onefs: Plumb smb_filename through onefs createfile path
[ira/wip.git] / source3 / modules / vfs_onefs_shadow_copy.c
index 45860fa90d3b0ecd8e5a109eecc24977eb3c16d0..3eca664c8ab393175920d7a1b8d72afe08cccad7 100644 (file)
@@ -278,21 +278,21 @@ onefs_shadow_copy_rename(vfs_handle_struct *handle, const char *old_name,
 }
 
 static int
-onefs_shadow_copy_stat(vfs_handle_struct *handle, const char *path,
-                      SMB_STRUCT_STAT *sbuf)
+onefs_shadow_copy_stat(vfs_handle_struct *handle,
+                      struct smb_filename *smb_fname)
 {
-       SHADOW_NEXT(STAT,
-                   (handle, cpath ?: path, sbuf),
-                   int);
+       SHADOW_NEXT_SMB_FNAME(STAT,
+                             (handle, smb_fname),
+                             int);
 }
 
 static int
-onefs_shadow_copy_lstat(vfs_handle_struct *handle, const char *path,
-                       SMB_STRUCT_STAT *sbuf)
+onefs_shadow_copy_lstat(vfs_handle_struct *handle,
+                       struct smb_filename *smb_fname)
 {
-       SHADOW_NEXT(LSTAT,
-                   (handle, cpath ?: path, sbuf),
-                   int);
+       SHADOW_NEXT_SMB_FNAME(LSTAT,
+                             (handle, smb_fname),
+                             int);
 }
 
 static int