mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Merge pull request #62159 from dixudx/fix_nsenter_file_type
fix bug for regular empty file
This commit is contained in:
commit
ec89794c84
@ -259,7 +259,7 @@ func (n *Mounter) GetFileType(pathname string) (mount.FileType, error) {
|
||||
return mount.FileTypeBlockDev, nil
|
||||
case "directory":
|
||||
return mount.FileTypeDirectory, nil
|
||||
case "regular file":
|
||||
case "regular file", "regular empty file":
|
||||
return mount.FileTypeFile, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user