Re: getExecutablePath

2021-10-31 Thread Greg Steuck
Stuart Henderson writes: > Are the executables run with their full path for the bootstrap > compilers? If so, could it preferentially use that from argv[0] (like > sshd does when it needs to know its own path for reexec), and fallback > to /usr/local/whatever if there's no / in argv[0]? Ironical

Re: getExecutablePath (Was: adb: any users left?)

2021-10-29 Thread Stuart Henderson
Are the executables run with their full path for the bootstrap compilers? If so, could it preferentially use that from argv[0] (like sshd does when it needs to know its own path for reexec), and fallback to /usr/local/whatever if there's no / in argv[0]? -- Sent from a phone, apologies for po

getExecutablePath (Was: adb: any users left?)

2021-10-28 Thread Greg Steuck
"Theo de Raadt" writes: > Wind R wrote: > >> 1. OpenBSD doesn't have a syscall that returns the current path to the >> executable file of the process, which adb and fastboot both use. > > This system call is impossible. It is not possible to convert an inode > to a path cheaply. A variety of