This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Second ping: rewrite File.toCanonicalPath()
Bryce McKinlay wrote:
> Gary Benson wrote:
> > A couple of months ago I posted a patch that rewrote
> > File.toCanonicalPath() on GNU/Posix systems in order for
> > FilePermission checks to work properly, so much of the
> > security framework relies on it. I rewrote it a couple
> > of times at various people's requests, but this (final?)
> > version met with no response whatsoever.
>
> I forgot to ask - do you have a test case that could be added
> to mauve? It looks like there is very basic getCanonicalPath
> testing already, but no testing for proper behavior with symlinks,
> etc.
There's no specific testcase for it, but the traversal tests for
FilePermission cover pretty much every edge case I could think of.
Cheers,
Gary