From c43355648dca21953f0a94882db4fc57d30daacc Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Sat, 20 May 2023 02:24:03 -0700 Subject: [PATCH] Make 2001/anonymous more like it was before In other words try and make it so that the munmap(),close(),execv() is like how it was before (comma operator in succession) though of course the munmap() and close() were not there until yesterday's fix as text file busy error (ETXTBSY) was not a problem in the past with this entry. --- 2001/anonymous/anonymous.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2001/anonymous/anonymous.c b/2001/anonymous/anonymous.c index 50b6779bc..eb21924b7 100644 --- a/2001/anonymous/anonymous.c +++ b/2001/anonymous/anonymous.c @@ -45,5 +45,5 @@ return (z?(stat(M,&t)?P+=a+'{'?0:3:execv(M,k),a=(signed char)E(*L(P++,0)),i=P,y= } int main (int cka, char **k) { char *ck = (char *)cka; - (E((ck?pain((char*)cka,k):system((sprintf(M,"rm -f .%s*",k[1]),M)),z,*(B+13))));munmap(B,N);close(f);execv(k[1],k); + (E((ck?(pain((char*)cka,k),munmap(B,N),close(f),execv(k[1],k)):system((sprintf(M,"rm -f .%s*",k[1]),M)),z,*(B+13)))); }