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

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to