]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
lxc: correctly backport /dev/tty fix
authorEric Blake <eblake@redhat.com>
Mon, 29 Jul 2013 21:45:25 +0000 (15:45 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 29 Jul 2013 21:49:22 +0000 (15:49 -0600)
https://bugzilla.redhat.com/show_bug.cgi?id=982317

maint-only patch; reported by Geert Jansen

Commit 17cdc298 tried to backport upstream 90a0c6d, but in
resolving conflicts, failed to account that upstream commit
e1d32bb refactored code to leave off a leading /dev.

* src/lxc/lxc_container.c (lxcContainerPopulateDevices): Use
correct device name.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/lxc/lxc_container.c

index 8497c1064572cf743bb4e15c30a7b20729ea0129..972486bb82d1623c196f3372e1a1b7d18362ab75 100644 (file)
@@ -839,7 +839,7 @@ static int lxcContainerPopulateDevices(char **ttyPaths, size_t nttyPaths)
         { LXC_DEV_MAJ_MEMORY, LXC_DEV_MIN_FULL, 0666, "/dev/full" },
         { LXC_DEV_MAJ_MEMORY, LXC_DEV_MIN_RANDOM, 0666, "/dev/random" },
         { LXC_DEV_MAJ_MEMORY, LXC_DEV_MIN_URANDOM, 0666, "/dev/urandom" },
-        { LXC_DEV_MAJ_TTY, LXC_DEV_MIN_TTY, 0666, "/tty" },
+        { LXC_DEV_MAJ_TTY, LXC_DEV_MIN_TTY, 0666, "/dev/tty" },
     };
     const struct {
         const char *src;