summaryrefslogtreecommitdiffstats
path: root/src/udev
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-02-04 21:17:32 +0100
committerMike Yuan <me@yhndnzj.com>2024-02-06 08:09:28 +0100
commitb409aacb0aff9ced1a6f703f744bb4f0b6964b88 (patch)
tree720364066b394d577c7e93a45fc24ec70122e369 /src/udev
parentlogin/user-runtime-dir: properly check for mount point (diff)
downloadsystemd-b409aacb0aff9ced1a6f703f744bb4f0b6964b88.tar.xz
systemd-b409aacb0aff9ced1a6f703f744bb4f0b6964b88.zip
mountpoint-util: introduce path_is_mount_point_full
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/test-udev-format.c2
-rw-r--r--src/udev/test-udev-spawn.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/test-udev-format.c b/src/udev/test-udev-format.c
index 18a60b351e..7eacb6b81a 100644
--- a/src/udev/test-udev-format.c
+++ b/src/udev/test-udev-format.c
@@ -36,7 +36,7 @@ TEST(udev_resolve_subsys_kernel) {
}
static int intro(void) {
- if (path_is_mount_point("/sys", NULL, 0) <= 0)
+ if (path_is_mount_point("/sys") <= 0)
return log_tests_skipped("/sys is not mounted");
return EXIT_SUCCESS;
diff --git a/src/udev/test-udev-spawn.c b/src/udev/test-udev-spawn.c
index 3a11dd9b20..8486676821 100644
--- a/src/udev/test-udev-spawn.c
+++ b/src/udev/test-udev-spawn.c
@@ -81,7 +81,7 @@ static void test2(void) {
int main(int argc, char *argv[]) {
_cleanup_free_ char *self = NULL;
- if (path_is_mount_point("/sys", NULL, 0) <= 0)
+ if (path_is_mount_point("/sys") <= 0)
return log_tests_skipped("/sys is not mounted");
if (argc > 1) {