1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 23:51:28 +03:00

nspawn: fix memleak

This was a typo, swapping prefix_root() in place of prefix_roota().

Fixes CID 1299640.
This commit is contained in:
Tom Gundersen 2015-05-25 23:01:45 +02:00
parent 2371271c2a
commit cc9fce6554
Notes: Lennart Poettering 2015-06-17 23:36:57 +02:00
Backport: bugfix

View File

@ -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)