mirror of
https://github.com/minio/minio.git
synced 2025-03-31 17:53:43 -04:00
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
This commit is contained in:
parent
43ce028840
commit
d3aaf50a40
@ -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…
x
Reference in New Issue
Block a user