Re: [lxc-devel] [PATCH 1/3] lxc-attach: Try really hard to determine login shell

2013-03-06 Thread Serge Hallyn
Quoting Christian Seiler (christ...@iwakd.de): > If no command is specified, and using getpwuid() to determine the login > shell fails, try to spawn a process that executes the utility 'getent'. > getpwuid() may fail because of incompatibilities between the NSS > implementations on the host and in

[lxc-devel] [PATCH 1/3] lxc-attach: Try really hard to determine login shell

2013-03-06 Thread Christian Seiler
If no command is specified, and using getpwuid() to determine the login shell fails, try to spawn a process that executes the utility 'getent'. getpwuid() may fail because of incompatibilities between the NSS implementations on the host and in the container. Signed-off-by: Christian Seiler --- s

Re: [lxc-devel] [PATCH 1/3] lxc-attach: Try really hard to determine login shell

2013-03-06 Thread Christian Seiler
Hi Serge, > Actually, I think it would be better to have lxc_attach_getpwuid() > become lxc_attach_getpwshell(), and change the caller a bit. > Would shorten up the code quite a bit. What do you think? Ok, will do. -- Christian --

Re: [lxc-devel] [PATCH 1/3] lxc-attach: Try really hard to determine login shell

2013-03-06 Thread Serge Hallyn
Quoting Christian Seiler (christ...@iwakd.de): > If no command is specified, and using getpwuid() to determine the login > shell fails, try to spawn a process that executes the utility 'getent'. > getpwuid() may fail because of incompatibilities between the NSS > implementations on the host and in

Re: [lxc-devel] [PATCH 1/3] lxc-attach: Try really hard to determine login shell

2013-03-06 Thread Serge Hallyn
Quoting Christian Seiler (christ...@iwakd.de): > If no command is specified, and using getpwuid() to determine the login > shell fails, try to spawn a process that executes the utility 'getent'. > getpwuid() may fail because of incompatibilities between the NSS > implementations on the host and in

[lxc-devel] [PATCH 1/3] lxc-attach: Try really hard to determine login shell

2013-03-05 Thread Christian Seiler
If no command is specified, and using getpwuid() to determine the login shell fails, try to spawn a process that executes the utility 'getent'. getpwuid() may fail because of incompatibilities between the NSS implementations on the host and in the container. Signed-off-by: Christian Seiler --- s