From: Christian Grothoff Date: Fri, 16 Nov 2012 16:26:31 +0000 (+0000) Subject: -use execlp X-Git-Tag: initial-import-from-subversion-38251~10810 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=915af2719420470cf09ba7bcd70cec8eeb76c7d6;p=oweals%2Fgnunet.git -use execlp --- diff --git a/src/transport/gnunet-transport-wlan-receiver.c b/src/transport/gnunet-transport-wlan-receiver.c index 22ad2e20d..73ca83ddc 100644 --- a/src/transport/gnunet-transport-wlan-receiver.c +++ b/src/transport/gnunet-transport-wlan-receiver.c @@ -101,7 +101,7 @@ main (int argc, char *argv[]) fprintf (stderr, "dup2 failed: %s\n", strerror (errno)); (void) close (commpipe[0]); /* Close unused side of pipe (in side) */ /* Replace the child fork with a new process */ - if (execl + if (execlp ("gnunet-helper-transport-wlan", "gnunet-helper-transport-wlan", argv[1], NULL) == -1) { diff --git a/src/transport/gnunet-transport-wlan-sender.c b/src/transport/gnunet-transport-wlan-sender.c index c5718b858..23561fada 100644 --- a/src/transport/gnunet-transport-wlan-sender.c +++ b/src/transport/gnunet-transport-wlan-sender.c @@ -204,7 +204,7 @@ main (int argc, char *argv[]) fprintf (stderr, "dup2 failed: %s\n", strerror (errno)); (void) close (commpipe[1]); /* Close unused side of pipe (out side) */ /* Replace the child fork with a new process */ - if (execl + if (execlp ("gnunet-helper-transport-wlan", "gnunet-helper-transport-wlan", argv[1], NULL) == -1) {