lkml.org 
[lkml]   [2000]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: permissions not honoured by /bin/pwd aka getcwd
From
Harald Kirsch <kir@iitb.fhg.de> 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."
Andreas.Schwab@suse.de
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 majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.674 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site