Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Dec 1994 12:18:10 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        crtb@upcoming.dcrt.nih.gov, davidg@Root.COM
Cc:        freebsd-bugs@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: Why does ls report wrong creation date on symlinks?
Message-ID:  <199412310118.MAA18236@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help

>>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



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