Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Dec 1994 13:27:50 -0800
From:      David Greenman <davidg@Root.COM>
To:        Chuck Bacon <crtb@upcoming.dcrt.nih.gov>
Cc:        freebsd-bugs@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: Why does ls report wrong creation date on symlinks? 
Message-ID:  <199412302127.NAA07659@corbin.Root.COM>
In-Reply-To: Your message of "Fri, 30 Dec 94 16:18:52 EST." <199412302118.QAA02761@upcoming.dcrt.nih.gov> 

next in thread | previous 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
>modification time of its directory.  Thus, if I "touch foo" in some
>directory, a subsequent "ls -l" will report the identical creation
>time for both foo and all the symlinks in the directory.  Therefore,
>"ls -lt" will position all the symlinks at the top.

   As has been said numerous times in the past already, this is not a bug.
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.

-DG



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