diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c index 1f876e7e104..6a25c87b7f7 100644 --- a/source3/modules/vfs_shadow_copy2.c +++ b/source3/modules/vfs_shadow_copy2.c @@ -194,7 +194,7 @@ static bool shadow_copy2_update_snaplist(struct vfs_handle_struct *handle, * time. */ if (seconds > 0 || (priv->snaps->snaplist == NULL)) { - smb_fname.base_name = "."; + smb_fname.base_name = discard_const_p(char, "."); fsp.fsp_name = &smb_fname; ret = shadow_copy2_get_shadow_copy_data(handle, &fsp,