-use execlp
authorChristian Grothoff <christian@grothoff.org>
Fri, 16 Nov 2012 16:26:31 +0000 (16:26 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 16 Nov 2012 16:26:31 +0000 (16:26 +0000)
src/transport/gnunet-transport-wlan-receiver.c
src/transport/gnunet-transport-wlan-sender.c

index 22ad2e20d32fb151ad9babf83f59b4c1ffb45162..73ca83ddc9603d1ae9c302bf7d18eccb80acf983 100644 (file)
@@ -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)
     {
index c5718b858fb9e322447a72be9b8851a439022436..23561fadad6ff57fcf73a417a36cd5a2dbd16441 100644 (file)
@@ -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)
     {