Unverified Commit ec89794c authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #62159 from dixudx/fix_nsenter_file_type

fix bug for regular empty file
parents b6b01e17 f715d416
...@@ -259,7 +259,7 @@ func (n *Mounter) GetFileType(pathname string) (mount.FileType, error) { ...@@ -259,7 +259,7 @@ func (n *Mounter) GetFileType(pathname string) (mount.FileType, error) {
return mount.FileTypeBlockDev, nil return mount.FileTypeBlockDev, nil
case "directory": case "directory":
return mount.FileTypeDirectory, nil return mount.FileTypeDirectory, nil
case "regular file": case "regular file", "regular empty file":
return mount.FileTypeFile, nil return mount.FileTypeFile, nil
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment