Skip to content

Commit d9eb323

Browse files
committed
Re-enable special file attributes (PRIVATE_FILE) for temporarily copied dynamic libraries
1 parent 3a48dde commit d9eb323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/engineering/swat/watch/impl/mac/NativeLibrary.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ private static void loadLibrary(String path) {
8585
}
8686
// in most cases the file is inside of a jar
8787
// so we have to copy it out and load that file instead
88-
var localCopy = Files.createTempFile("watch", ".dylib"/* , PRIVATE_FILE*/);
88+
var localCopy = Files.createTempFile("watch", ".dylib", PRIVATE_FILE);
8989
localCopy.toFile().deleteOnExit();
9090
try (var libStream = NativeLibrary.class.getResourceAsStream(path)) {
9191
if (libStream != null) {

0 commit comments

Comments
 (0)