From cc1e1bb03e49ccb90f36173a3d1ff10ab5676eb0 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Sat, 5 Aug 2023 22:31:24 +0800 Subject: [PATCH] shared/fstab-util: use is_device_path instead of is_device_node Follow-up for 99299d0d5a722812cedc0a23e4987f90a257c2d2 is_device_node() calls lstat(), causing device node symlinks under /dev/disk/ not being compared correctly using devnode_same(). Fixes #28585 --- src/shared/fstab-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/fstab-util.c b/src/shared/fstab-util.c index c121d261794..28121b8e2c6 100644 --- a/src/shared/fstab-util.c +++ b/src/shared/fstab-util.c @@ -76,7 +76,7 @@ static int fstab_is_same_node(const char *what_fstab, const char *path) { if (path_equal(node, path)) return true; - if (is_device_node(path) && is_device_node(node)) + if (is_device_path(path) && is_device_path(node)) return devnode_same(node, path); return false; -- 2.47.3