realpath: if we can't get the full path, return the known portion
commit9e122a6603af15472d2acdcf8563fcd0fc96bb0c
authorH. Peter Anvin <hpa@linux.intel.com>
Thu, 18 Feb 2016 09:53:47 +0000 (18 01:53 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 18 Feb 2016 09:53:47 +0000 (18 01:53 -0800)
tree137d3a4206c7fbba902b9358ac9aa7082091a157
parent11b8817e8a481f7f89160c4ac88bf380a8770fcf
realpath: if we can't get the full path, return the known portion

Right now, we don't check the return value from nasm_realpath();
furthermore doing so and failing is probably not the ideal behavior.

If we can't get the full canonical path, then punt and just return
nasm_strdup() of the known path name; better than nothing.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
realpath.c