s3: VFS: Change SMB_VFS_CHFLAGS to use const struct smb_filename * instead of const...
[kamenim/samba-autobuild/.git] / source3 / modules / vfs_default.c
index 6de5d641c3e1bf7bfde926b83f5dca4723c4be62..b2c6c28f87b5dbd3cc37692c140676d68b1fd0d8 100644 (file)
@@ -2465,11 +2465,12 @@ static char *vfswrap_realpath(vfs_handle_struct *handle, const char *path)
        return result;
 }
 
-static int vfswrap_chflags(vfs_handle_struct *handle, const char *path,
-                          unsigned int flags)
+static int vfswrap_chflags(vfs_handle_struct *handle,
+                       const struct smb_filename *smb_fname,
+                       unsigned int flags)
 {
 #ifdef HAVE_CHFLAGS
-       return chflags(path, flags);
+       return chflags(smb_fname->base_name, flags);
 #else
        errno = ENOSYS;
        return -1;