[haiku-development] Re: BSD vs. POSIX realpath()

  • From: "Bruno Albuquerque" <bga@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 15 Jul 2009 12:22:32

On Wed, 15 Jul 2009 11:41:11 +0200 CEST, Axel Dörfler said:

> I recently noticed that our realpath() did not comply to the POSIX
> standard, and fixed that.
> However, the BSD version of realpath() does not fail if only the last
> path component is not accessible. While it's very simple to check if
> the file really exists (just an additional [l]stat()), the other
> check
> (if at least the parent exists) is at least slightly more involved).
>
> The question is, should we follow BSD style, or POSIX here?

As we borrow most of our stuff from BSD anyway, I think BSD style is
more consistent. OTOH, POSIX is definitelly more of a standard so I am
a bit torn.

-Bruno


Other related posts: