lkml.org 
[lkml]   [1999]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Recursion level of symlinks limitted to five?
From
Date
Just out of curiosity, couldn't the resolving of symlinks all be
done in the userland? Rough outline of the idea is to make all
system calls that takes any pathname parameter to return an
error indicator, visible only to the caller (usually inside of
libc), and if the error indicator says it encountered a symlink,
the caller resolves the symlink(s) before retrying the call. If
the return from these new set of system calls are anything other
than the `I see symlinks; resolve them and come back to me',
that can be returned to the caller of the libc. We can even
phase in these new set of syscall interfaces while retaining the
current interface, until we update libc to be aware of this new
error condition.


-
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:50    [W:0.058 / U:0.704 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site