From owner-cvs-all Mon Apr 12 18:33:33 1999 Delivered-To: cvs-all@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id B470914DA0; Mon, 12 Apr 1999 18:33:26 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id LAA13287; Tue, 13 Apr 1999 11:01:06 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id LAA74152; Tue, 13 Apr 1999 11:01:06 +0930 (CST) Message-ID: <19990413110106.D2142@lemis.com> Date: Tue, 13 Apr 1999 11:01:06 +0930 From: Greg Lehey To: Nik Clayton Cc: Nik Clayton , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/sys stat.2 References: <199904102049.NAA60819@freefall.freebsd.org> <19990411100244.X2142@lemis.com> <19990412193155.A8013@catkin.nothing-going-on.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <19990412193155.A8013@catkin.nothing-going-on.org>; from Nik Clayton on Mon, Apr 12, 1999 at 07:31:55PM +0100 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk 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