Re: [GNC-dev] Resolving symlinks in _br_find_exe in binreloc.c

2020-05-21 Thread Mike Alexander
On 21 May 2020, at 14:41, John Ralls wrote: The code that we have is gnomified from the original autopackage.org version. I agree it's pretty awful; the comparison of sizeof(ptr) to SSIZE_MAX particularly so; trying to allocate SSIZE_MAX-1 in the impossible case that sizeof(ptr) > SSIZE_MAX bo

Re: [GNC-dev] Resolving symlinks in _br_find_exe in binreloc.c

2020-05-21 Thread John Ralls
> On May 21, 2020, at 12:55 AM, Mike Alexander wrote: > > I've had some fixes in binreloc.c for some time that I'm trying to clean up > and commit. Part of the problem is that _br_find_exe doesn't work at all for > non-Aqua Mac builds (i.e. using X11). I've fixed this by calling > _NSGetE

[GNC-dev] Resolving symlinks in _br_find_exe in binreloc.c

2020-05-21 Thread Mike Alexander
I've had some fixes in binreloc.c for some time that I'm trying to clean up and commit. Part of the problem is that _br_find_exe doesn't work at all for non-Aqua Mac builds (i.e. using X11). I've fixed this by calling _NSGetExecutablePath if GNC_PLATFORM_OSX is set and MAC_INTEGRATION is not