Skip to content

Commit

Permalink
review changes
Browse files Browse the repository at this point in the history
Signed-off-by: tvallin <thibault.vallin@oracle.com>
  • Loading branch information
tvallin committed Feb 13, 2024
1 parent 00c33d1 commit b263cda
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ private static char[] generateMasterPassword() {
} else {
File file = path.toFile();
boolean readable = file.setReadable(true, true);
boolean executable = file.setExecutable(true, true);
if (!readable || !executable) {
LOGGER.log(Level.DEBUG, "Could not set file permission to " + file.toPath());
boolean executable = file.setWritable(true, true);
if ((!readable || !executable) && LOGGER.isLoggable(Level.DEBUG)) {
LOGGER.log(Level.DEBUG, "Could not set file permission to " + path);
}
}
} catch (IOException e) {
Expand Down

0 comments on commit b263cda

Please sign in to comment.