From akm@janus.theinternet.com.au  Sun May 27 06:29:10 2001
Return-Path: <akm@janus.theinternet.com.au>
Received: from janus.theinternet.com.au (co3040619-a.kelvn1.qld.optushome.com.au [203.164.207.8])
	by hub.freebsd.org (Postfix) with ESMTP id A507737B422
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 27 May 2001 06:28:54 -0700 (PDT)
	(envelope-from akm@janus.theinternet.com.au)
Received: (from akm@localhost)
	by janus.theinternet.com.au (8.11.3/8.11.3) id f4QAArD24586;
	Sat, 26 May 2001 20:10:53 +1000 (EST)
	(envelope-from akm)
Message-Id: <200105261010.f4QAArD24586@janus.theinternet.com.au>
Date: Sat, 26 May 2001 20:10:53 +1000 (EST)
From: akm@sneaker.net.au
Reply-To: akm@sneaker.net.au
To: FreeBSD-gnats-submit@freebsd.org
Cc: akm@sneaker.net.au
Subject: DEVFS has problems with symlinks to directories
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         27686
>Category:       kern
>Synopsis:       Symlinks to directories cause contents of target directory to be treated as a directory
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    phk
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 27 06:30:01 PDT 2001
>Closed-Date:    Sun May 27 23:06:32 PDT 2001
>Last-Modified:  Sun May 27 23:07:22 PDT 2001
>Originator:     Andrew Milton
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD janus.theinternet.com.au 5.0-CURRENT FreeBSD 5.0-CURRENT #9: Sat May 26 21:44:08 EST 2001 root@:/export/src/sys/compile/marty i386
>Description:
Symlinks to directories cause contents of target directory to be treated 
as a directory, this obviously causes freakish problems with legacy apps.

>How-To-Repeat:
boot kernel with DEVFS

mkdir -p /usr/dev/dri
ln -fs /usr/dev/dri/ /dev/dri
cd /usr/dev/dri
mknod c 145 0 root:wheel card0
cd /dev
(if you have command complete on this works a lot easier..)
cd dri/card0/card0/card0/card0/card0/card0/card0...

>Fix:
None Available
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->phk 
Responsible-Changed-By: jesper 
Responsible-Changed-When: Sun May 27 16:28:20 PDT 2001 
Responsible-Changed-Why:  
phk is mister devfs 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27686 
State-Changed-From-To: open->closed 
State-Changed-By: roam 
State-Changed-When: Sun May 27 23:06:32 PDT 2001 
State-Changed-Why:  
Duplicate of kern/27656, which phk already fixed. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27686 
>Unformatted:
