Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 (Tek) 9/28/84 based on 9/17/84; site orca.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!ihnp4!alberta!ubc-vision!uw-beaver!tektronix!orca!andrew
From: andrew@orca.UUCP (Andrew Klossner)
Newsgroups: net.unix-wizards
Subject: Re: inode number -> pathname? (4.2BSD)
Message-ID: <1616@orca.UUCP>
Date: Sat, 13-Jul-85 21:21:49 EDT
Article-I.D.: orca.1616
Posted: Sat Jul 13 21:21:49 1985
Date-Received: Wed, 17-Jul-85 04:23:18 EDT
References: <11465@brl-tgr.ARPA>
Organization: Tektronix, Wilsonville OR
Lines: 15

[]

	"If it were possible to set the current working directory to a
	given inode and device, then pwd would give you the answer.
	All the permission information, and even the bit denoting
	whether or not this inode refers to a directory is stored in
	the inode, and can easily be checked in such a call."

The permission information is distributed throughout the path to the
directory.  If /usr/fred is mode 0700, then the fact that
/usr/fred/sources is 0755 should not be construed as sufficient reason
to allow another user to chdir to /usr/fred/sources.

  -=- Andrew Klossner   (decvax!tektronix!orca!andrew)       [UUCP]
                        (orca!andrew.tektronix@csnet-relay)  [ARPA]