about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@zsh.org>2024-02-24 21:28:35 -0800
committerBart Schaefer <schaefer@zsh.org>2024-02-24 21:28:35 -0800
commitb68002d927b1577bbed453d7bbbe39b55acf7bd0 (patch)
tree09275feda1e8b27c62eda8b9f79088ecfb188374 /Src
parent6c50d155625d83bde35dc78bc6920c9795462d58 (diff)
downloadzsh-b68002d927b1577bbed453d7bbbe39b55acf7bd0.tar.gz
zsh-b68002d927b1577bbed453d7bbbe39b55acf7bd0.tar.xz
zsh-b68002d927b1577bbed453d7bbbe39b55acf7bd0.zip
Fix META_NOALLOC to META_STATIC in 'bad interpreter' metafy
Diffstat (limited to 'Src')
-rw-r--r--Src/exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/exec.c b/Src/exec.c
index c75aa78d6..0750738ce 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -551,7 +551,7 @@ zexecve(char *pth, char **argv, char **newenvp)
 			    break;
 		    if (t0 == ct)
 			zerr("%s: bad interpreter: %s: %e", pth,
-			     metafy(execvebuf + 2, -1, META_NOALLOC), eno);
+			     metafy(execvebuf + 2, -1, META_STATIC), eno);
 		    else {
 			while (inblank(execvebuf[t0]))
 			    execvebuf[t0--] = '\0';
@@ -575,7 +575,7 @@ zexecve(char *pth, char **argv, char **newenvp)
 				}
 			    }
 			    zerr("%s: bad interpreter: %s: %e", pth,
-				 metafy(ptr2, -1, META_NOALLOC), eno);
+				 metafy(ptr2, -1, META_STATIC), eno);
 			} else if (*ptr) {
 			    *ptr = '\0';
 			    argv[-2] = ptr2;