[lkml]   [1999]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Recursion level of symlinks limitted to five?

On 10-Mar-99 Junio Hamano wrote:
> When that happens, there is no reason for the kernel to even
> support 5 levels of indirection. The kernel could even return
> ELOOP when it sees just one symbolic link and let the C library
> resolve the symlink. Of course, on the other hand, we may want
> to have the kernel resolve some levels of indirection itself
> for, say, performance reasons.

Also because you can't do a proper job from user-mode. The only tool available
is readlink, but readlink and followlink are different operations in the VFS
interface. In other words, its possible for a filesystem to put one thing in a
symlink as far as readlink goes, and do another when you try to follow it.
/proc has many examples of this, and it is not unique.

You may be able to do it if you add an appropriate syscall.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:50    [W:0.054 / U:2.340 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site