From: Eric C. C. <ec...@cm...> - 2003-11-14 13:56:59
|
On Fri, Nov 14, 2003 at 12:23:17PM +0100, Michal Moskal wrote: > On Fri, Nov 14, 2003 at 02:33:34PM +0900, Nicolas Cannasse wrote: > > Note : this does not actually do any system checking ( the path may not > > exists or contains invalid characters ). Only special paths . .. and / ( and > > windows drive letters ) are recognized as special. > > No characters are special in unix paths beside '/'. Special paths are > only "." and ".." (and maybe "/"). Of course this also depends on > filesystem, but most native FSes allow anything. It's not clear that you can do this independently of the OS interface. For example, to handle a/b/../c correctly, you need to check whether "b" is a symbolic link and interpret it accordingly. -- Eric C. Cooper e c c @ c m u . e d u |