git://git.onelab.eu
/
lxc-userspace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
43a13aa
)
Without this, scp, ssh with bash arguments etc. does not work
author
Sapan Bhatia
<gwsapan@gmail.com>
Thu, 14 Mar 2013 18:10:10 +0000
(14:10 -0400)
committer
Sapan Bhatia
<gwsapan@gmail.com>
Thu, 14 Mar 2013 18:10:10 +0000
(14:10 -0400)
vsh.c
patch
|
blob
|
history
diff --git
a/vsh.c
b/vsh.c
index
8780b24
..
03e7566
100644
(file)
--- a/
vsh.c
+++ b/
vsh.c
@@
-45,7
+45,7
@@
char **extend_argv(int argc, char **argv, int num_extra_args) {
return argv2;
}
return argv2;
}
-#define NUM_LXCSU_EXEC_ARGS
1
+#define NUM_LXCSU_EXEC_ARGS
2
int main(int argc, char **argv, char **envp)
{
int main(int argc, char **argv, char **envp)
{
@@
-70,6
+70,7
@@
int main(int argc, char **argv, char **envp)
snprintf(slice_id_str, 255, "%u", slice_xid);
argv2[0] = strdup(LXCSU_PATH);
argv2[1] = strdup(slice_name);
snprintf(slice_id_str, 255, "%u", slice_xid);
argv2[0] = strdup(LXCSU_PATH);
argv2[1] = strdup(slice_name);
+ argv2[2] = strdup("--");
if (setuid(geteuid())) goto out_exception;
if (setuid(geteuid())) goto out_exception;