fs: Filter out valid paths and volnames. (#1321)

This commit is contained in:
Harshavardhana
2016-04-16 19:33:29 -07:00
parent b2ec7da9f9
commit 33633fd15d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ func isValidPath(path string) bool {
// isValidPrefix verifies where the prefix is a valid path.
func isValidPrefix(prefix string) bool {
// Prefix can be empty.
if prefix == "" {
if prefix == "" || prefix == "/" {
return true
}
// Verify if prefix is a valid path.