Skip to content

Commit

Permalink
Delete tmp check file right away
Browse files Browse the repository at this point in the history
  • Loading branch information
melissalinkert committed Jul 15, 2024
1 parent 57f8bbe commit 9dca8a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1185,11 +1185,11 @@ public Integer call() throws Exception {
// expect 'success' to be true in the noexec case, even though
// the file will not actually be executable
boolean success = tmpdirCheck.setExecutable(true);
tmpdirCheck.deleteOnExit();
if (!success || !tmpdirCheck.canExecute()) {
throw new RuntimeException(System.getProperty("java.io.tmpdir") +
" is noexec; fix it or specify a different java.io.tmpdir");
}
tmpdirCheck.delete();

OpenCVTools.loadOpenCV();

Expand Down

0 comments on commit 9dca8a9

Please sign in to comment.