Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Apr 1998 23:56:19 +0100 (IST)
From:      rotel@indigo.ie
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/6283: linux compat does not follow symlinks "correctly"
Message-ID:  <199804122256.XAA02917@indigo.ie>

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

>Number:         6283
>Category:       bin
>Synopsis:       linux compat does not follow symlinks "correctly"
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 12 16:00:04 PDT 1998
>Last-Modified:
>Originator:     Niall Smart
>Organization:
>Release:        FreeBSD 2.2.6-STABLE i386
>Environment:


>Description:

The linux compatability module does not follow symlinks to directories
as it would follow the directory itself:

[root@ginseng linux]# ls -lad etc
drwxr-xr-x  2 root  wheel  512 Apr 12 23:43 etc
[root@ginseng linux]# ls -lad foo
lrwxrwxrwx  1 root  wheel  4 Apr 12 23:51 foo -> /etc
[root@ginseng linux]# bin/sh -c "echo /etc/*"
/etc/host.conf /etc/ld.so.cache /etc/ld.so.conf /etc/nsswitch.conf
[root@ginseng linux]# bin/sh -c "echo foo/*" 
foo/COPYRIGHT foo/XF86Config foo/XF86Config.bak foo/adduser.conf
foo/adduser.conf.bak foo/aliases foo/aliases.db foo/amd.map
[snip]


>How-To-Repeat:


>Fix:

Patch not included, sorry :)
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



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