NetBSD Problem Report #920
From gnats Wed Mar 29 01:23:18 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.10/8.6.10) with ESMTP id BAA16553 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Wed, 29 Mar 1995 01:23:17 -0800
Message-Id: <199503290923.KAA09185@blagdon.ncl.ac.uk>
Date: Wed, 29 Mar 1995 10:23:06 +0100
From: Jim Wight <J.K.Wight@newcastle.ac.uk>
Reply-To: J.K.Wight@newcastle.ac.uk
To: gnats-bugs@NetBSD.ORG
Subject: ls -l displays incorrect mtime for symbolic links
>Number: 920
>Category: bin
>Synopsis: ls -l displays incorrect mtime for symbolic links
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 29 01:35:02 +0000 1995
>Closed-Date: Thu Feb 08 09:23:05 +0000 1996
>Last-Modified: Thu Feb 08 09:25:06 +0000 1996
>Originator: Jim Wight
>Release: 1.0
>Organization:
>Environment:
System: NetBSD treherne 1.0 NetBSD 1.0 (GENERICAHA) #3: Sun Oct 23 20:58:04 PDT 1994 cgd@sun-lamp.cs.berkeley.edu:/usr/src/sys/arch/i386/compile/GENERICAHA i386
>Description:
In long format ls displays the modification time of the most recently
modified file for all symbolic links rather than each's individual
modification time.
>How-To-Repeat:
$ ln -s /bin/sh sh1
$ ls -l
total 0
lrwxrwxrwt 1 root wheel 7 Mar 27 22:28 sh1 -> /bin/sh
$ ln -s /bin/sh sh2
$ ls -l
total 0
lrwxrwxrwt 1 root wheel 7 Mar 27 22:29 sh1 -> /bin/sh
lrwxrwxrwt 1 root wheel 7 Mar 27 22:29 sh2 -> /bin/sh
$ >junk
$ ls -l
total 0
-rw-r--r-- 1 njkw wheel 0 Mar 27 22:30 junk
lrwxrwxrwt 1 root wheel 7 Mar 27 22:30 sh1 -> /bin/sh
lrwxrwxrwt 1 root wheel 7 Mar 27 22:30 sh2 -> /bin/sh
$ ln -s /bin/sh sh3
$ ls -l
total 0
-rw-r--r-- 1 njkw wheel 0 Mar 27 22:30 junk
lrwxrwxrwt 1 root wheel 7 Mar 27 22:31 sh1 -> /bin/sh
lrwxrwxrwt 1 root wheel 7 Mar 27 22:31 sh2 -> /bin/sh
lrwxrwxrwt 1 root wheel 7 Mar 27 22:31 sh3 -> /bin/sh
$
Note how the times associated with the symbolic links keep shifting as
new files are created.
>Fix:
None.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mycroft
State-Changed-When: Thu Feb 8 04:23:05 EST 1996
State-Changed-Why:
Actually, it displayed the modification time of the directory containing
the symlink. This was due to strange symlink semantics introduced in
4.4BSD, which have been removed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.