]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc-attach: use execvp instead of execve
authorDavid Ward <david.ward@ll.mit.edu>
Thu, 3 May 2012 22:50:15 +0000 (00:50 +0200)
committerDaniel Lezcano <daniel.lezcano@free.fr>
Thu, 3 May 2012 22:50:15 +0000 (00:50 +0200)
commit631c07d49cb666f46990d83210d5ac916a700f21
tree33f56263e6d0973f1ac173d7d9776aeae3a466b1
parent910bb4fa53eddcaba291ee8ce917f161ef49caf0
lxc-attach: use execvp instead of execve

execvp does not require specifying the full path to the executable
(e.g., "ls" instead of "/bin/ls"), making the operation of 'lxc-attach'
consistent with 'lxc-start' and 'lxc-execute'.

Signed-off-by: David Ward <david.ward@ll.mit.edu>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/lxc_attach.c