]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/lxc/conf.c
utils: introduce safe_mount_beneath_at()
[mirror_lxc.git] / src / lxc / conf.c
index 5fcfb0afa3229bf93fc29739981f8339c0675f0b..2ab77babf4352ab45e77654bbe6dcb8fd28111e6 100644 (file)
@@ -1074,7 +1074,7 @@ static int mount_autodev(const char *name, const struct lxc_rootfs *rootfs,
                goto reset_umask;
        }
 
-       ret = safe_mount_beneath(path, "none", "dev", "tmpfs", 0, mount_options);
+       ret = safe_mount_beneath_at(root_mntpt_fd, "none", "dev", "tmpfs", 0, mount_options);
        if (ret < 0) {
                __do_free char *fallback_path = NULL;