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

From: Alan Curry (
Date: Thu Feb 24 2000 - 11:31:43 EST

Harald Kirsch writes the following:
>The point is that on all other *nixes (as reported in the Tcl-newsgroup)
>the behaviour is different. getcwd does return `permission denied' if
>the x-flag of the current dir or any of its parents is not present.
>But maybe all other systems are not POSIX and Linux is or Linux knows
>better than POSIX?

You might get a better response if you can point to the POSIX requirement
that getcwd() behave specifically as you describe, or that the system is not
allowed to have additional syscalls that provide slightly more information
than is available through opendir/readdir/etc.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

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