shared/fstab-util: use is_device_path instead of is_device_node

Follow-up for 99299d0d5a

is_device_node() calls lstat(), causing device node
symlinks under /dev/disk/ not being compared correctly
using devnode_same().

Fixes #28585
This commit is contained in:
Mike Yuan
2023-08-05 22:31:24 +08:00
committed by Luca Boccassi
parent 0be1de7ffc
commit cc1e1bb03e

View File

@@ -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;