You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It works if there's an absolute path to the binary on the command line, and it works if there's a relative path and the current directory hasn't changed.
It 100% doesn't work if the program is run from the $PATH, or maybe if it's mangled it's argv[], if that affects the syscall.
We need a mechanism that doesn't rely on the command line for this.
I don't see anything in OpenBSD we can rely on for this. And apparently when asked for this functionality, Theo de Raadt replied "Quite expensive, for such a small need." :/
So I guess the best fix is to search the $PATH if realpath() fails, and return NULL if that doesn't work out, and if something messes with the cwd or the command line, they're just out of luck on this platform.
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: HG 2.0
Reported for operating system, platform: Windows 10, x86
Comments on the original bug report:
On 2020-06-20 23:20:23 +0000, Brad Smith wrote:
On 2020-09-05 02:23:35 +0000, Brad Smith wrote:
On 2020-12-09 15:19:43 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: