From owner-freebsd-questions Fri Dec 30 17:20:33 1994 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id RAA05903 for questions-outgoing; Fri, 30 Dec 1994 17:20:33 -0800 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id RAA05897; Fri, 30 Dec 1994 17:20:23 -0800 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id MAA18236; Sat, 31 Dec 1994 12:18:10 +1100 Date: Sat, 31 Dec 1994 12:18:10 +1100 From: Bruce Evans Message-Id: <199412310118.MAA18236@godzilla.zeta.org.au> To: crtb@upcoming.dcrt.nih.gov, davidg@Root.COM Subject: Re: Why does ls report wrong creation date on symlinks? Cc: freebsd-bugs@freebsd.org, freebsd-questions@freebsd.org Sender: questions-owner@freebsd.org Precedence: bulk >>I just discovered that "ls -l" reports the creation date incorrectly >>on symlinks. It reports as the creation date of each symlink, the >It's the intended behavior. The idea is that symlinks aren't necessarily files >and therefore should not have their own file permissions/dates/etc...but >instead should take on those attributes from the file that the symlink points >to if it exists. m Actually they only take attributes from the file pointed to in contexts where they are pointers. In other contexts (e.g., for lstat() and ls), the attributes have to be taken from somewhere else. In BSD-4.4, there are no longer any relevant attributes in the inode of the symlink and the attributes of the parent directory are used instead. See `man 7 symlink'. Bruce