]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/attach.h
lxc-attach: Try really hard to determine login shell
authorChristian Seiler <christian@iwakd.de>
Mon, 4 Mar 2013 22:38:25 +0000 (23:38 +0100)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 6 Mar 2013 20:29:50 +0000 (14:29 -0600)
commit905022f73f5dee19cd6a880f8112b0a6aa45ba22
tree2b34cb468cf733f0536ea4b3c9dbfd229a6433de
parent66b503423832b65059ca62c2897f2ed266804391
lxc-attach: Try really hard to determine login shell

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 <christian@iwakd.de>
src/lxc/attach.c
src/lxc/attach.h
src/lxc/lxc_attach.c