Re: permissions not honoured by /bin/pwd aka getcwd

From: Horst von Brand (vonbrand@sleipnir.valparaiso.cl)
Date: Fri Feb 25 2000 - 13:10:51 EST


Peter Chubb <peterc@aurema.com> said:

[...]

> The posix.1 spec for getcwd says this:
>
> (section 5.2.2.4)For each of the following conditions, if the
                                                              ^^^^^^
> condition is detected, the getcwd() function shall return a value
      ^^^^^^^^^^^^^^^^^^^^^
> of NULL and set errno to the corresponding value:
>
> [EACCESS] Read or search permission was denied for a component of
> the pathname.

Sorry for standardese not being native language to me, but this doesn't say
it _must_ be checked, just what has to be done if it is detected AFAIU.

-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile                               +56 32 672616

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:14 EST