mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-05-18 22:16:06 +02:00
Fix META_NOALLOC to META_STATIC in 'bad interpreter' metafy
This commit is contained in:
parent
6c50d15562
commit
b68002d927
|
@ -551,7 +551,7 @@ zexecve(char *pth, char **argv, char **newenvp)
|
||||||
break;
|
break;
|
||||||
if (t0 == ct)
|
if (t0 == ct)
|
||||||
zerr("%s: bad interpreter: %s: %e", pth,
|
zerr("%s: bad interpreter: %s: %e", pth,
|
||||||
metafy(execvebuf + 2, -1, META_NOALLOC), eno);
|
metafy(execvebuf + 2, -1, META_STATIC), eno);
|
||||||
else {
|
else {
|
||||||
while (inblank(execvebuf[t0]))
|
while (inblank(execvebuf[t0]))
|
||||||
execvebuf[t0--] = '\0';
|
execvebuf[t0--] = '\0';
|
||||||
|
@ -575,7 +575,7 @@ zexecve(char *pth, char **argv, char **newenvp)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
zerr("%s: bad interpreter: %s: %e", pth,
|
zerr("%s: bad interpreter: %s: %e", pth,
|
||||||
metafy(ptr2, -1, META_NOALLOC), eno);
|
metafy(ptr2, -1, META_STATIC), eno);
|
||||||
} else if (*ptr) {
|
} else if (*ptr) {
|
||||||
*ptr = '\0';
|
*ptr = '\0';
|
||||||
argv[-2] = ptr2;
|
argv[-2] = ptr2;
|
||||||
|
|
Loading…
Reference in New Issue