From c31f4c71b215826652e007650af5748156da7482 Mon Sep 17 00:00:00 2001 From: xiaoji <345865759@163.com> Date: Wed, 5 Jun 2024 18:34:35 +0800 Subject: [PATCH] removed dubble quote in blkid --- src/ldevice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ldevice.c b/src/ldevice.c index 211a253..3d99e4d 100644 --- a/src/ldevice.c +++ b/src/ldevice.c @@ -393,7 +393,7 @@ const char* system_get_blkid() { } char command[128]; - snprintf(command, sizeof(command), "blkid %s", device); + snprintf(command, sizeof(command), "blkid %s | sed 's/\"//g'", device); fp = popen(command, "r"); if (fp == NULL) { -- Gitee