Mail Archives: djgpp-workers/2002/12/19/12:27:39
Hello.
I've found some bugs in the function __solve_symlinks:
* It doesn't cope with multiple consecutive slashes. I have a patch for this.
* It doesn't cope with relative paths that use '..' to go above the root
directory. E.g.: c:/tmp/part-symlink/rem_sl is an existing symlink pointing to
a:/loc_reg. Change into c:/tmp/part-symlink, then do:
ls -l c:../../tmp/part-symlink/rem_sl
ls -l c:../../../tmp/part-symlink/rem_sl
The first ls command will succeed; the second will fail.
* It doesn't cope with symlinks that point to themselves. For instance:
ln -s a a
Try to stat the file 'a'. It fails with ELOOP, but it should return
information about the file 'a'.
Bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -