* Find the snapshot directory (if any) for the given
* filename (which is relative to the share).
*/
-static char *shadow_copy2_find_snapdir(TALLOC_CTX *mem_ctx,
- struct vfs_handle_struct *handle,
- struct smb_filename *smb_fname)
+static const char *shadow_copy2_find_snapdir(TALLOC_CTX *mem_ctx,
+ struct vfs_handle_struct *handle,
+ struct smb_filename *smb_fname)
{
char *path, *p;
- char *snapdir;
+ const char *snapdir;
struct shadow_copy2_config *config;
SMB_VFS_HANDLE_GET_DATA(handle, config, struct shadow_copy2_config,