mirror of
https://github.com/minio/minio.git
synced 2025-11-20 09:56:07 -05:00
posix: reserved files should be filtered out at posix not object layer. (#1554)
This commit is contained in:
@@ -69,6 +69,10 @@ func parseDirents(dirPath string, buf []byte) (entries []string, err error) {
|
||||
if name == "." || name == ".." {
|
||||
continue
|
||||
}
|
||||
// Skip special files.
|
||||
if hasReservedPrefix(name) || hasReservedSuffix(name) {
|
||||
continue
|
||||
}
|
||||
|
||||
switch dirent.Type {
|
||||
case syscall.DT_DIR:
|
||||
|
||||
Reference in New Issue
Block a user