ref: 674a5092f280ed3191e8903e04de449f387b1c24
parent: 9475d4b92efdec988bc256b2599313348cce88f4
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Oct 13 17:29:16 EDT 2025
permind: fix permuted file generation from /sys/man (thanks dave) The argument list of execl() must be terminated with NULL, not 0.
--- a/sys/lib/man/permind/ptx1.c
+++ b/sys/lib/man/permind/ptx1.c
@@ -241,7 +241,7 @@
if(fork()==0){
execl("/bin/sort", "sort", sortopt, "+0", "-1", "+1", "-o",
- sortfile, sortfile, 0);
+ sortfile, sortfile, NULL);
diag("sort exec failed","");
}
if((w = wait()) == NULL || w->msg[0] != '\0')
@@ -252,7 +252,7 @@
if(fork()==0){
if(dup(create(wfile,OWRITE|OTRUNC,0666),1) == -1)
diag("Cannot create width file:",wfile);
- execl(roff, roff, "-a", kfile, 0);
+ execl(roff, roff, "-a", kfile, NULL);
diag("troff exec failed","");
}
if((w = wait()) == NULL || w->msg[0] != '\0')
--
⑨