lkml.org 
[lkml]   [1998]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Symlink strangeness

On Mon, 14 Sep 1998, Steven N. Hirsch wrote:

> All,
>
> This is a strange one. With kernel 2.1.122-pre2, I have this situation:
>
> total 669
> drwxr-xr-x 23 hirsch system 36864 Sep 14 18:23 .
> drwxr-xr-x 3 root root 0 Sep 12 17:55 ..
> lrwxrwxrwx 1 hirsch system 13 Sep 12 14:29 linux -> linux-2.1.122
> drwxr-xr-x 15 hirsch system 1024 Sep 13 13:25 linux-2.1.122
>
> Doing this gets me zero hits:
>
> (hirsch@air) ~ : find /usr/src/linux -name "*.h" -print
> (hirsch@air) ~ :

Yep, that's the way find works with symlinks. You'll get the same
behaviour on linux 2.0, sunos, and solaris. 2.1.122 has a fix to the 2.1
symlink behaviour, which previously was wrong (IMNSHO).

Do "find /usr/src/linux/. -name \*.h" instead.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:44    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site