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: Svante Signell
Subject: Re: BUG: /proc/self/exe reports relative paths, should always return absolute paths?
Date: Fri, 15 Sep 2017 14:09:05 +0200

On Fri, 2017-09-15 at 13:20 +0200, Samuel Thibault wrote:
> Hello,
> 
> Svante Signell, on ven. 15 sept. 2017 12:35:56 +0200, wrote:
> > > > ++  file_t file = __file_name_lookup (filename, O_EXEC, 0);

> Still, the question becomes: better use file_name instead of
> abs_path, because file_name will usually be shorter, and thus faster
> to lookup than the abs_path.

Patch updated: now submitting only the *.diff file
(changed the order of __file_name_lookup and realpath calls, assuming
that if the file is not executable we save the call to realpath)

Attachment: submitted-exec_filename.diff
Description: Text Data


reply via email to

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