bugmake - Bugs: bug #35919, realpath(3) behaves differently on...

 
 

bug #35919: realpath(3) behaves differently on *BSD and Linux

Submitter:  None
Submitted:  Tue 20 Mar 2012 08:22:14 PM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  3.82 Operating System:  POSIX-Based
Fixed Release:  4.0 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 09 Sep 2012 11:15:23 PM UTC, comment #1: 

Thanks for the heads-up.

Paul D. Smith <psmith>
Group administrator
Tue 20 Mar 2012 08:22:14 PM UTC, original submission:  

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.


Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #25420:  patch-function_c added by None (760B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-09-09 psmith StatusNone Fixed
        Assigned toNone psmith
        Open/ClosedOpen Closed
        Operating SystemNone POSIX-Based
        Fixed ReleaseNone 4.0
    2012-03-20 None Attached File- Added patch-function_c, #25420

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code