From owner-cvs-all Mon Apr 12 14:47:14 1999 Delivered-To: cvs-all@freebsd.org Received: from nothing-going-on.demon.co.uk (nothing-going-on.demon.co.uk [193.237.89.66]) by hub.freebsd.org (Postfix) with ESMTP id 4907215542; Mon, 12 Apr 1999 14:46:59 -0700 (PDT) (envelope-from nik@nothing-going-on.demon.co.uk) Received: (from nik@localhost) by nothing-going-on.demon.co.uk (8.9.2/8.9.2) id TAA08481; Mon, 12 Apr 1999 19:31:55 +0100 (BST) (envelope-from nik) Date: Mon, 12 Apr 1999 19:31:55 +0100 From: Nik Clayton To: Greg Lehey Cc: Nik Clayton , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/sys stat.2 Message-ID: <19990412193155.A8013@catkin.nothing-going-on.org> References: <199904102049.NAA60819@freefall.freebsd.org> <19990411100244.X2142@lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <19990411100244.X2142@lemis.com>; from Greg Lehey on Sun, Apr 11, 1999 at 10:02:44AM +0930 Organization: Nik at home, where there's nothing going on Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk 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? N -- Bagel: The carbohydrate with the hole To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message