From d856a97da126ff6500d78885063216ff85eda8fb Mon Sep 17 00:00:00 2001 From: andrewsykim Date: Mon, 26 Feb 2018 13:30:30 -0500 Subject: [PATCH] fix bug where character devices are not recognized --- pkg/util/mount/mount_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/mount/mount_linux.go b/pkg/util/mount/mount_linux.go index 9899ebf80f..11835432d7 100644 --- a/pkg/util/mount/mount_linux.go +++ b/pkg/util/mount/mount_linux.go @@ -432,7 +432,7 @@ func (mounter *Mounter) GetFileType(pathname string) (FileType, error) { case syscall.S_IFBLK: return FileTypeBlockDev, nil case syscall.S_IFCHR: - return FileTypeBlockDev, nil + return FileTypeCharDev, nil case syscall.S_IFDIR: return FileTypeDirectory, nil case syscall.S_IFREG: