From: Joerg Gollnick Date: Sun, 16 Jan 2011 18:40:46 +0000 (+0100) Subject: Fix mntflags initialization X-Git-Tag: lxc-0.7.4-rc1~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91656ce587b99ae193e5de7e12ec9d9a5a78caa0;p=thirdparty%2Flxc.git Fix mntflags initialization Dear all, while setting up a container on x86_64 (archlinux host/guest) I had trouble with mounting dev/pts and others from container.fstab and a ssh login does not work (only ssh container bash -i gives you a shell) The cause is that conf.c does not initialize mntflags. Signed-off-by: Daniel Lezcano --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index df6f485a3..2f66e769f 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -881,6 +881,7 @@ static int parse_mntopts(const char *mntopts, unsigned long *mntflags, char *p, *saveptr = NULL; *mntdata = NULL; + *mntflags = 0L; if (!mntopts) return 0;