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
master
Krishna Srinivas 8 years ago committed by Harshavardhana
parent 43ce028840
commit d3aaf50a40
  1. 3
      cmd/posix.go

@ -103,9 +103,6 @@ func newPosix(diskPath string) (StorageAPI, error) {
return nil, errInvalidArgument return nil, errInvalidArgument
} }
suppliedDiskPath := diskPath suppliedDiskPath := diskPath
if idx := strings.LastIndex(diskPath, ":"); idx != -1 {
diskPath = diskPath[idx+1:]
}
var err error var err error
// Disallow relative paths, figure out absolute paths. // Disallow relative paths, figure out absolute paths.
diskPath, err = filepath.Abs(diskPath) diskPath, err = filepath.Abs(diskPath)

Loading…
Cancel
Save