summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-05-25 23:01:45 +0200
committerTom Gundersen <teg@jklm.no>2015-05-25 23:01:50 +0200
commitcc9fce65544117f9c5e02daed6fb445c10127e37 (patch)
tree6d5d227d1a6836023d380abf6ad41e969e9c027c /src
parent2371271c2acaeab31e232b6749f12aeac7c18348 (diff)
nspawn: fix memleak
This was a typo, swapping prefix_root() in place of prefix_roota(). Fixes CID 1299640.
Diffstat (limited to 'src')
-rw-r--r--src/nspawn/nspawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index 322675222d..23bb959171 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -1782,7 +1782,7 @@ static int setup_pts(const char *dest) {
return log_oom();
/* Mount /dev/pts itself */
- p = prefix_root(dest, "/dev/pts");
+ p = prefix_roota(dest, "/dev/pts");
if (mkdir(p, 0755) < 0)
return log_error_errno(errno, "Failed to create /dev/pts: %m");
if (mount("devpts", p, "devpts", MS_NOSUID|MS_NOEXEC, options) < 0)