summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_shadow_copy2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c
index 5efae3b0ed..eac83fca74 100644
--- a/source3/modules/vfs_shadow_copy2.c
+++ b/source3/modules/vfs_shadow_copy2.c
@@ -476,6 +476,9 @@ static int shadow_copy2_mknod(vfs_handle_struct *handle,
static char *shadow_copy2_realpath(vfs_handle_struct *handle,
const char *fname, char *resolved_path)
{
+ if (shadow_copy2_match_name(fname) && (fname[GMT_NAME_LEN] == '\0')) {
+ return SMB_VFS_NEXT_REALPATH(handle, ".", resolved_path);
+ }
SHADOW2_NEXT(REALPATH, (handle, name, resolved_path), char *, NULL);
}