]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix mntflags initialization
authorJoerg Gollnick <code4lxc@wurzelbenutzer.de>
Sun, 16 Jan 2011 18:40:46 +0000 (19:40 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Sun, 16 Jan 2011 18:40:46 +0000 (19:40 +0100)
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 <dlezcano@fr.ibm.com>
src/lxc/conf.c

index df6f485a3f617d1f9db1df2fe9aaa0de02b0d513..2f66e769f5f5c958f2be829e8dee41e2b0245575 100644 (file)
@@ -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;