URL:
<http://savannah.gnu.org/bugs/?35919>
Summary: realpath(3) behaves differently on *BSD and Linux
Project: make
Submitted by: None
Submitted on: Tue 20 Mar 2012 08:22:14 PM UTC
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Component Version: 3.82
Operating System: None
Fixed Release: None
Triage Status: None
_______________________________________________________
Details:
realpath(3) on *BSD does not return NULL nor it sets errno to ENOENT if the
passed file does not exist, so the following simple Makefile behaves
differently:
all:
@echo $(realpath nonexistent)
The attached patch makes sure to call stat() after realpath(3) too.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35919>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-make