Date: Tue, 13 Apr 1999 11:01:06 +0930 From: Greg Lehey <grog@lemis.com> To: Nik Clayton <nik@nothing-going-on.demon.co.uk> Cc: Nik Clayton <nik@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/sys stat.2 Message-ID: <19990413110106.D2142@lemis.com> In-Reply-To: <19990412193155.A8013@catkin.nothing-going-on.org>; from Nik Clayton on Mon, Apr 12, 1999 at 07:31:55PM %2B0100 References: <199904102049.NAA60819@freefall.freebsd.org> <19990411100244.X2142@lemis.com> <19990412193155.A8013@catkin.nothing-going-on.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, 12 April 1999 at 19:31:55 +0100, Nik Clayton wrote: > On Sun, Apr 11, 1999 at 10:02:44AM +0930, Greg Lehey wrote: >> On Saturday, 10 April 1999 at 13:49:29 -0700, Nik Clayton wrote: >>> Unlike other filesystem objects, symbolic links do not have an owner, >>> group, access mode, times, etc. Instead, these attributes are taken from >>> the directory that contains the link. The only attributes returned from >>> an lstat() that refer to the symbolic link itself are the file type >>> (S_IFLNK), size, blocks, and link count (always 1). >>> >>> This is bogus, and disagrees with the implementation and symlink(7). >>> >>> Removed it. >> >> Wouldn't it have been easier to tell it the way it is? > > symlink(7) tells it the way it is; > > The owner and group of an existing symbolic link can be changed by means > of the lchown(2) system call. The other file attributes, such as the > modification time and access permissions, are not used by the system and > cannot be changed. > > I can easily duplicate that in stat(2) instead? Well, since there's a reference to symlink(7), I suppose that's enough. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990413110106.D2142>