mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-05-20 23:41:27 +02:00
Fix META_NOALLOC to META_STATIC in 'bad interpreter' metafy
This commit is contained in:
parent
6c50d15562
commit
b68002d927
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue