| Summary: | execvp() disobeys POSIX requirement on preserving $0 to script | ||
|---|---|---|---|
| Product: | glibc | Reporter: | Eric Blake <eblake> |
| Component: | libc | Assignee: | Not yet assigned to anyone <unassigned> |
| Status: | NEW --- | ||
| Severity: | normal | CC: | drepper.fsp, gabravier |
| Priority: | P2 | ||
| Version: | 2.39 | ||
| Target Milestone: | --- | ||
| Host: | Target: | ||
| Build: | Last reconfirmed: | ||
| Project(s) to access: | ssh public key: | ||
|
Description
Eric Blake
2023-03-22 20:35:07 UTC
It turns out the POSIX folks agree that the wording was too strict, and they intend to change things to permit glibc behavior as compliant by default: https://austingroupbugs.net/view.php?id=1645#c6281 We can probably close this as not a bug given that POSIX is fixing theirs; although we may still want a patch that documents that we EXPLICITLY choose to pass something ending in basename "sh" as argv[0] during shell fallback precisely because /bin/sh may be busybox that depends on argv[0]'s contents, while the shell script's $0 is unaffected by what we put there. |