diff --git a/src/detached_mounts_propagation.c b/src/detached_mounts_propagation.c index 17db2c026ebfa283a7e761b7664f32ddf136372e..dd11f7be883187722962c63afedc801331b6358a 100644 --- a/src/detached_mounts_propagation.c +++ b/src/detached_mounts_propagation.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include @@ -127,7 +126,7 @@ int main(int argc, char *argv[]) if (ret < 0) exit_log("%m - Failed to create new mount namespace"); - ret = mount(NULL, base_dir, NULL, MS_REC | MS_SHARED, NULL); + ret = sys_mount(NULL, base_dir, NULL, MS_REC | MS_SHARED, NULL); if (ret < 0) exit_log("%m - Failed to make base_dir shared mountpoint"); @@ -174,7 +173,7 @@ int main(int argc, char *argv[]) } close(fd_tree); - ret = umount2(target, MNT_DETACH); + ret = sys_umount2(target, MNT_DETACH); if (ret < 0) { fprintf(stderr, "%m - Failed to unmount %s", target); exit_code = EXIT_FAILURE; diff --git a/src/vfs/utils.c b/src/vfs/utils.c index 6db7a11dda3e8f6dd5cbffaea6e1c51bfd050b32..f30e3bd939f0017ddd457ce91a61846d1433ba8f 100644 --- a/src/vfs/utils.c +++ b/src/vfs/utils.c @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include