mirror of
https://github.com/minio/minio.git
synced 2025-11-22 10:37:42 -05:00
all/windows: Be case in-sensitive about pattern matching. (#3682)
Resource strings and paths are case insensitive on windows deployments but if user happens to use upper case instead of lower case for certain configuration params like bucket policies and bucket notification config. We might not honor them which leads to a wrong behavior on windows. This is windows only behavior, for all other platforms case is still kept sensitive.
This commit is contained in:
@@ -68,10 +68,6 @@ func parseDirents(dirPath string, buf []byte) (entries []string, err error) {
|
||||
if name == "." || name == ".." {
|
||||
continue
|
||||
}
|
||||
// Skip special files.
|
||||
if hasPosixReservedPrefix(name) {
|
||||
continue
|
||||
}
|
||||
|
||||
switch dirent.Type {
|
||||
case syscall.DT_DIR:
|
||||
|
||||
Reference in New Issue
Block a user