Skip to content
Commit b4165554 authored by Siddhesh Poyarekar's avatar Siddhesh Poyarekar
Browse files

realpath: Bring back GNU extension on ENOENT and EACCES [BZ #28996]



The GNU extension for realpath states that if the path resolution fails
with ENOENT or EACCES and the resolved buffer is non-NULL, it will
contain part of the path that failed resolution.

commit 949ad78a broke this when it
omitted the copy on failure.  Bring it back partially to continue
supporting this GNU extension.

Resolves: BZ #28996

Signed-off-by: default avatarSiddhesh Poyarekar <siddhesh@sourceware.org>
Reviewed-by: default avatarAndreas Schwab <schwab@linux-m68k.org>
parent 7f2ddf74
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment