summaryrefslogtreecommitdiff
path: root/net-misc/pipes/files/pipes-1.16.1-execlp.patch
blob: d7e31cced8c8a4d37ebecfd7c4d4f0bb8deaf5bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/plis.c
+++ b/plis.c
@@ -443,9 +443,9 @@
                             if(!strncmp(argv[a], "pcon ", 5)) ChildPconTest(argv[a]);
                             
                             if(usesh)
-                                execl(SHELL, "sh", "-c", argv[a], NULL);
+                                execl(SHELL, "sh", "-c", argv[a], (char *) NULL);
                             else
-                                execlp(argv[a], NULL);
+                                execlp(argv[a], ";", (char *) NULL);
                         }
                         else
                         {