bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BUG: /proc/self/exe reports relative paths, should always return abs


From: Samuel Thibault
Subject: Re: BUG: /proc/self/exe reports relative paths, should always return absolute paths?
Date: Thu, 21 Sep 2017 01:01:33 +0200
User-agent: NeoMutt/20170113 (1.7.2)

Svante Signell, on mer. 20 sept. 2017 08:46:49 +0200, wrote:
> I changed the patch for __execve() to keep file_name if the path is absolute 
> and
> call realpath() for relative paths.

But then if you call a script that looks at $0 from a relative path,
it'll break.

> (I did also a cetcwd() version, but that does not seem to be needed, and using
> realpath() is simpler.)

It's simpler but doesn't work in the case above.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]