Browse Source

Fixing potential linux issue for smbfs

Toby Chui 3 years ago
parent
commit
2c28cd0a1d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      mod/filesystem/abstractions/smbfs/smbfs.go

+ 1 - 0
mod/filesystem/abstractions/smbfs/smbfs.go

@@ -174,6 +174,7 @@ func (a ServerMessageBlockFileSystemAbstraction) VirtualPathToRealPath(subpath s
 }
 
 func (a ServerMessageBlockFileSystemAbstraction) RealPathToVirtualPath(fullpath string, username string) (string, error) {
+	fullpath = filterFilepath(fullpath)
 	fullpath = strings.TrimPrefix(fullpath, "\\")
 	vpath := a.UUID + ":/" + filterFilepath(fullpath)
 	return vpath, nil