On 2021/02/02 21:18, Greg Steuck wrote: > Added a patch from upstream to work around a case of "all-world-is-Linux"ism.
That's not really true; pretty much every OS other than OpenBSD has a way to determine the path that the current executable was started from. There are various different ways of course (there's a little project https://github.com/gpakosz/whereami which copes with the variants used on qnx, sunos, osx, freebsd, netbsd, linux, android and windows). Suggestions of adding this to OpenBSD have been rejected before, I think mostly because it won't track unlink or name changes via rename. For the purposes of every program I've seen that uses this information (including sshd, which uses argv[0] to obtain it by requiring the full path when it's invoked), "path that the process was started under" is exactly what they want and tracking through renames would not give the information they need.
