Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent following symbolic links when deleting temporary directories. #1303

Closed
wants to merge 1 commit into from
Closed

Prevent following symbolic links when deleting temporary directories. #1303

wants to merge 1 commit into from

Conversation

varming
Copy link

@varming varming commented May 21, 2016

Following symbolic links when removing files can lead to the removal of files outside the directory structure rooted in the temporary folder, and it can lead to unbounded recursion if a symbolic link points to a directory where the link is directly reachable from.

Preventing following symbolic links is pretty easy with JDK5 and later, but writing a test is ugly because there is no java interface to create symbolic links until NIO2 in JDK7. So I'll hold off with a test unless a reviewer insists.

@kcooney
Copy link
Member

kcooney commented May 29, 2016

LGTM

@junit-team/junit-committers any objections to merging this?

@marcphilipp
Copy link
Member

LGTM, too!

@kcooney kcooney closed this in 9b85ea0 May 29, 2016
@kcooney
Copy link
Member

kcooney commented May 29, 2016

Merged, and added to the release notes. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants