1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-05 23:26:38 +02:00

Fix META_NOALLOC to META_STATIC in 'bad interpreter' metafy

This commit is contained in:
Bart Schaefer 2024-02-24 21:28:35 -08:00
parent 6c50d15562
commit b68002d927

View File

@ -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;