mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user