Make shared library non-writeable

This commit is contained in:
Will Hedgecock 2022-01-10 10:43:56 -06:00
parent 3c17081439
commit c4fb5f9933
1 changed files with 2 additions and 2 deletions

View File

@ -329,7 +329,7 @@ public final class SerialPort
destinationFileContents.write(transferBuffer, 0, numBytesRead);
destinationFileContents.close();
fileContents.close();
tempNativeLibrary.setReadable(false, false);
tempNativeLibrary.setReadable(true, false);
tempNativeLibrary.setWritable(false, false);
tempNativeLibrary.setExecutable(true, false);
@ -354,7 +354,7 @@ public final class SerialPort
destinationFileContents.write(transferBuffer, 0, numBytesRead);
destinationFileContents.close();
backupFileContents.close();
tempBackupNativeLibrary.setReadable(false, false);
tempBackupNativeLibrary.setReadable(true, false);
tempBackupNativeLibrary.setWritable(false, false);
tempBackupNativeLibrary.setExecutable(true, false);