diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-06-11 12:32:37 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-06-11 18:01:06 +0200 |
commit | bae47ba7d250866019212f9411e5462b480d31b8 (patch) | |
tree | 31015ef9240f014b083cfea1d4f3ba073b489900 /src/core/device.c | |
parent | core: rework how we validate DeviceAllow= settings (diff) | |
download | systemd-bae47ba7d250866019212f9411e5462b480d31b8.tar.xz systemd-bae47ba7d250866019212f9411e5462b480d31b8.zip |
tree-wide: use PATH_STARTSWITH_SET() at two more places
Diffstat (limited to 'src/core/device.c')
-rw-r--r-- | src/core/device.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/device.c b/src/core/device.c index 915991bf90..3219c850ed 100644 --- a/src/core/device.c +++ b/src/core/device.c @@ -546,8 +546,7 @@ static int device_process_new(Manager *m, struct udev_device *dev) { /* Don't bother with the /dev/block links */ p = udev_list_entry_get_name(item); - if (path_startswith(p, "/dev/block/") || - path_startswith(p, "/dev/char/")) + if (PATH_STARTSWITH_SET(p, "/dev/block/", "/dev/char/")) continue; /* Verify that the symlink in the FS actually belongs |