Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Apr 1999 19:31:55 +0100
From:      Nik Clayton <nik@nothing-going-on.demon.co.uk>
To:        Greg Lehey <grog@lemis.com>
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:  <19990412193155.A8013@catkin.nothing-going-on.org>
In-Reply-To: <19990411100244.X2142@lemis.com>; from Greg Lehey on Sun, Apr 11, 1999 at 10:02:44AM %2B0930
References:  <199904102049.NAA60819@freefall.freebsd.org> <19990411100244.X2142@lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990412193155.A8013>