diff options
author | aszlig <aszlig@nix.build> | 2018-07-02 05:26:22 +0200 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2018-07-02 05:26:22 +0200 |
commit | 38e417120d9045534e77bfa20a27c293b718ffd8 (patch) | |
tree | e59a4ce2a8e3a42d36755afbca08e7d76f4a9ded /pkgs/build-support/build-sandbox/src/setup.c | |
parent | e05f98c7af4f4ad36e6566c8a6f3343138cff255 (diff) |
pkgs/sandbox: Expose get_mount_target()
I'm going to use the sandboxing implementation as the basis for something else where I'm going to do additional mounts on top of the existing ones. This is just to make it easier to find the mount target. Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/build-support/build-sandbox/src/setup.c')
-rw-r--r-- | pkgs/build-support/build-sandbox/src/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/build-sandbox/src/setup.c b/pkgs/build-support/build-sandbox/src/setup.c index 18b288d9..e4304b1f 100644 --- a/pkgs/build-support/build-sandbox/src/setup.c +++ b/pkgs/build-support/build-sandbox/src/setup.c @@ -120,7 +120,7 @@ static bool makedirs(const char *path, bool do_cache) return true; } -static char *get_mount_target(const char *path) +char *get_mount_target(const char *path) { size_t pathlen = strlen(path), rootdir_len = strlen(FS_ROOT_DIR); char *target; |