From 80007233fa315c590aa9189639052bff3ce71194 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sun, 16 Jul 2023 22:39:21 +0800 Subject: [PATCH] Disk (Linux): fix #479 --- src/detection/disk/disk_linux.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/detection/disk/disk_linux.c b/src/detection/disk/disk_linux.c index 2859fa374..6cca83dab 100644 --- a/src/detection/disk/disk_linux.c +++ b/src/detection/disk/disk_linux.c @@ -19,6 +19,10 @@ static bool isPhysicalDevice(FFstrbuf* device) { #ifndef __ANDROID__ //On Android, `/dev` is not accessable, so that the following checks always fail + //https://askubuntu.com/a/1289123 + if(ffStrbufEqualS(device, "/cow")) + return true; + //DrvFs is a filesystem plugin to WSL that was designed to support interop between WSL and the Windows filesystem. if(ffStrbufEqualS(device, "drvfs")) return true;