diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-02-04 21:17:32 +0100 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-02-06 08:09:28 +0100 |
commit | b409aacb0aff9ced1a6f703f744bb4f0b6964b88 (patch) | |
tree | 720364066b394d577c7e93a45fc24ec70122e369 /src/udev | |
parent | login/user-runtime-dir: properly check for mount point (diff) | |
download | systemd-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.c | 2 | ||||
-rw-r--r-- | src/udev/test-udev-spawn.c | 2 |
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) { |