This fixes viewing the content of snapshots in the share root directory. We
have to treat the filename that *just* consists of "@GMT-YYYY.MM.DD-HH.MM.SS"
like the share root, which is the current working directory.
* as here all paths start with "/", not with "@"
*/
if (shadow_copy2_match_name(fname)) {
+ if (fname[GMT_NAME_LEN] == '\0') {
+ return SMB_VFS_NEXT_REALPATH(handle, ".",
+ resolved_path);
+ }
fname += GMT_NAME_LEN+1;
}
return SMB_VFS_NEXT_REALPATH(handle, fname, resolved_path);