Skip to content

realpath() usage incompatible with POSIX 2004 (IEEE Std 1003.1-2004) or earlier #3

@pudquick

Description

@pudquick

I like your tool and am working on seeing what it would take to port it to BSD (I primarily use Mac OS X).

I'll include a minor fix in here for that: <unistd.h> needs to be included in helpers.h to get 'off_t' to resolve.

But the current hurdle I'm working on is the difference with Linux vs. BSD implementation of realpath.

BSD implementation doesn't accept NULL for the second argument and this will trigger a Bus Error / Segmentation Fault as a result.

When I come up with a patch fix I'll post it, but thought I'd mention it - should you want to try to make this wonderful tool more portable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions