Make shared library non-writeable
This commit is contained in:
parent
3c17081439
commit
c4fb5f9933
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue