Subject: bin/560: ls -i returns incorrect inodes on symlinks and root dirs
To: None <gnats-admin@sun-lamp.cs.berkeley.edu>
From: James [Greywolf] Graham <greywolf@autodesk.com>
List: netbsd-bugs
Date: 11/07/1994 12:20:04
>Number:         560
>Category:       bin
>Synopsis:       ls -i returns incorrect inodes on symlinks and root dirs
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov  7 12:20:03 1994
>Originator:     
>Organization:
	Autodesk, Inc.
>Release:        1.0
>Environment:
System: NetBSD deep_thought 1.0 NetBSD 1.0 (DEEP_THOUGHT) #2: Fri Oct 28 15:37:42 PDT 1994 greywolf@deep_thought:/usr/src/sys/arch/i386/compile/DEEP_THOUGHT i386

>Description:
	ls -i displays the incorrect inode number on symlinks and directories
	which are roots of filesystems.
	The inum displayed by ls -i on a symlink is the same as the file
	to which it points, or the inum of the current directory if the symlink 
	doesn't point to an existing file.

>How-To-Repeat:
	ls -i /		# to see the mount-point dir problem.
	cd /tmp
	ln -s foo bar
	ls -i		# to see the symlink dir problem.
	touch foo
	ls -i		# look again.
>Fix:
	
>Audit-Trail:
>Unformatted: