|
From: | Paul Eggert |
Subject: | Re: Finding the dump |
Date: | Mon, 28 Jan 2019 11:23:28 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 |
On 1/28/19 11:03 AM, Richard Stallman wrote:
It is ok to use the directory part of argv[0] to find associated files for a non-installed program. I will clarify the text about that.
When doing that, please consider the scenario where argv[0] does not have a directory part (i.e., does not have a '/' in POSIX). In this case in the past it has been reasonably common for argv[0] to not identify the executable that would be found by searching PATH for a file with that name, either because PATH itself has changed since the parent did the search, or because the program is being executed in a chrooted jail, or for some other reason. If this usage need not be supported by GNU programs it would be helpful to have that clearly stated.
[Prev in Thread] | Current Thread | [Next in Thread] |