[lxc-devel] [PATCH] Mounting of filesystems from fstab file
Daniel Lezcano
daniel.lezcano at free.fr
Sun Jan 16 18:41:26 UTC 2011
On 01/16/2011 07:00 PM, Joerg Gollnick wrote:
> 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.
> Best regards Joerg
>
>
> --- a/src/lxc/conf.c
> +++ b/src/lxc/conf.c
> @@ -880,7 +880,8 @@ static int parse_mntopts(const char *mntopts, unsigned
> long *mntflags,
> char *s, *data;
> char *p, *saveptr = NULL;
>
> - *mntdata = NULL;
> + *mntdata = NULL;
> + *mntflags = 0UL;
>
> if (!mntopts)
> return 0;
Good catch, Thanks !
Applied.
-- Daniel
More information about the lxc-devel
mailing list