File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ import (
29
29
30
30
"golang.org/x/sys/windows"
31
31
"k8s.io/klog/v2"
32
- "k8s.io/kubernetes/pkg/util/filesystem"
33
32
"k8s.io/mount-utils"
34
33
utilpath "k8s.io/utils/path"
35
34
)
@@ -103,14 +102,6 @@ func isSystemCannotAccessErr(err error) bool {
103
102
func (hu * (HostUtil )) GetFileType (pathname string ) (FileType , error ) {
104
103
filetype , err := getFileType (pathname )
105
104
106
- // os.Stat will return a 1920 error (windows.ERROR_CANT_ACCESS_FILE) if we use it on a Unix Socket
107
- // on Windows. In this case, we need to use a different method to check if it's a Unix Socket.
108
- if err == errUnknownFileType || isSystemCannotAccessErr (err ) {
109
- if isSocket , errSocket := filesystem .IsUnixDomainSocket (pathname ); errSocket == nil && isSocket {
110
- return FileTypeSocket , nil
111
- }
112
- }
113
-
114
105
return filetype , err
115
106
}
116
107
You can’t perform that action at this time.
0 commit comments