Permalink
Browse files

Merge pull request #32 from char101/patch-1

Add missing parameter when running config|fetch
  • Loading branch information...
2 parents d6731a5 + d71175d commit cc3e69b9cbf827cfc607126669a5f42722463ac3 @steveschnepp steveschnepp committed Jun 6, 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 cc3e69b

Please sign in to comment.