<div dir="ltr">Is /usr/bin a softlink to /pfs/@@-1:00003/bin or is it a null mount ?<br><br>-Matt<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 15, 2014 at 7:22 AM, Michael Neumann <span dir="ltr"><<a href="mailto:mneumann@ntecs.de" target="_blank">mneumann@ntecs.de</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am using sysctl(3) to retrieve the process's executable name via<br>
CTL_KERN -> KERN_PROC -> KERN_PROC_PATHNAME.<br>
<br>
The path I am getting for /usr/bin/t for example is<br>
/pfs/@@-1:00003/bin/t. Now the problem is that this path is used top<br>
determine the system root ("/usr") and is further used to build up<br>
several paths joined by ":". But it already contains a colon!!!<br>
<br>
Any idea on how to get the current process's executable name without<br>
resolving mount points? Ok, I found out about "readlink<br>
/proc/curproc/file". Is this the recommended way? Isn't it dangerous in<br>
general to have ":" in the PFS part of the path as it is used in sh to<br>
separate paths?<br>
<br>
Regards,<br>
<br>
  Michael<br>
</blockquote></div></div>