Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Apr 2006 11:02:16 -0700 (PDT)
From:      Luke Dean <LukeD@pobox.com>
To:        RW <list-freebsd-2004@morbius.sent.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: find not finding file.
Message-ID:  <20060427105839.P81068@border.crystalsphere.multiverse>
In-Reply-To: <200604271843.02533.list-freebsd-2004@morbius.sent.com>
References:  <200604271843.02533.list-freebsd-2004@morbius.sent.com>

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


On Thu, 27 Apr 2006, RW wrote:

> Can anyone explain this:
>
>   # find /etc/ -name 'named.conf'
>   # ls -l /etc/namedb/named.conf
>   -rw-r--r--  1 root  wheel  3715 Nov 13 17:35 /etc/namedb/named.conf
>
> named.conf is not found, but as a sanity check a similar search for ppp.conf
> succeeds
>
>   # find /etc/ -name 'ppp.conf'
>   /etc/ppp/ppp.conf
>
> there is nothing odd about the directories:
>
>   # ls -dl  /etc/namedb/  /etc/ppp/
>   drwxr-xr-x  5 root  wheel  512 Nov 13 17:35 /etc/namedb/
>   drwxr-xr-x  2 root  wheel  512 Feb  8 17:36 /etc/ppp/


Try this:
$ ls -l /etc |grep namedb
lrwxr-xr-x  1 root  wheel   21 Dec 31 18:56 namedb -> /var/named/etc/namedb

namedb is actually a link, and find isn't following it.



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