Permalink
Browse files

Add missing parameter when running config|fetch

  • Loading branch information...
1 parent d6731a5 commit d71175d3351f35b5a9961bc13a4afdd61ad32e4f @char101 char101 committed Apr 5, 2016
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/node/node.c
View
@@ -551,7 +551,7 @@ static int handle_connection() {
strcmp(cmd, "fetch") == 0
) {
char cmdline[LINE_MAX];
- char *argv[2] = { 0, };
+ char *argv[3] = { 0, };
pid_t pid;
if(arg == NULL) {
printf("# no plugin given\n");
@@ -573,6 +573,7 @@ static int handle_connection() {
/* Now is the time to set environnement */
setenvvars_conf(arg);
argv[0] = arg;
+ argv[1] = cmd;
/* Using posix_spawnp() here instead of fork() since we will
* do a little more than a mere exec --> setenvvars_conf() */

0 comments on commit d71175d

Please sign in to comment.