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

From: Andreas Schwab (
Date: Thu Feb 24 2000 - 09:28:07 EST

Harald Kirsch <> writes:

|> Why is /bin/pwd (or getcwd) allowed to return an output in the following
|> command sequence?
|> % mkdir -p really/closed; cd really/closed; chmod 000 ..; /bin/pwd
|> /home1_phys/kir/sunHome/tmp/really/closed

Why not? Hint: look for sys_getcwd in the sources

Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg

- 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