From d3aaf50a4059cbd3402eb4ffb33fcb82ba06b561 Mon Sep 17 00:00:00 2001 From: Krishna Srinivas Date: Fri, 21 Oct 2016 12:09:33 +0530 Subject: [PATCH] posix: Split on ":" in path d:\export makes minio use wrong disk. (#3027) As the host/path split happens at a higher layer now, split at posix is not needed. fixes part of #2987 --- cmd/posix.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/posix.go b/cmd/posix.go index db10411b1..db8838cc8 100644 --- a/cmd/posix.go +++ b/cmd/posix.go @@ -103,9 +103,6 @@ func newPosix(diskPath string) (StorageAPI, error) { return nil, errInvalidArgument } suppliedDiskPath := diskPath - if idx := strings.LastIndex(diskPath, ":"); idx != -1 { - diskPath = diskPath[idx+1:] - } var err error // Disallow relative paths, figure out absolute paths. diskPath, err = filepath.Abs(diskPath)