From: Mike Yuan Date: Sat, 5 Aug 2023 14:31:24 +0000 (+0800) Subject: shared/fstab-util: use is_device_path instead of is_device_node X-Git-Tag: v255-rc1~809 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cc1e1bb03e49ccb90f36173a3d1ff10ab5676eb0;p=thirdparty%2Fsystemd.git 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 --- 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;