Skip to content

Commit 5026be2

Browse files
Fix parsing mountpoints with backslashes
#364
1 parent 70aad5c commit 5026be2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/detection/disk/disk_linux.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ static void strbufAppendMountPoint(FFstrbuf* mountpoint, const char* source)
77
{
88
while(*source != '\0' && !isspace(*source))
99
{
10+
//Backslash is encoded as \134
11+
if(strncmp(source, "\\134", 4) == 0)
12+
{
13+
ffStrbufAppendC(mountpoint, '\\');
14+
source += 4;
15+
continue;
16+
}
17+
1018
//Space is encoded as \040
1119
if(strncmp(source, "\\040", 4) == 0)
1220
{

0 commit comments

Comments
 (0)