Commit 51e9fc9a authored by Niels Möller's avatar Niels Möller
Browse files

* src/server_session.c (do_spawn_exec): Fixed declaration order.

Rev: src/server_session.c:1.47
parent 82396d08
......@@ -830,8 +830,10 @@ do_spawn_exec(struct channel_request *c,
case 0:
{ /* Child */
#define MAX_ENV 1
/* No args, end the USER_EXEC method fills in argv[0]. */
struct env_value env[MAX_ENV];
int env_length = 0;
/* No args, and the USER_EXEC method fills in argv[0]. */
#if 0
/* NOTE: HPUX compiler can't handle array initialization. */
char *argv[] = { NULL, "-c", command_line->data, NULL };
......@@ -842,8 +844,6 @@ do_spawn_exec(struct channel_request *c,
argv[2] = command_line->data;
argv[3] = NULL;
#endif
struct env_value env[MAX_ENV];
int env_length = 0;
debug("do_spawn_shell: Child process\n");
assert(getuid() == connection->user->uid);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment