diff options
author | James Moger <james.moger@gitblit.com> | 2014-05-12 08:18:53 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-05-12 08:18:53 -0400 |
commit | 01ff0fa5f7392cfd73c3b722c99c12fdc3998dbe (patch) | |
tree | f29a8790ed503e4a0fcd2a64f95a6834963b371f /src/main/java/com | |
parent | 8db2b5e52d8039513ad320fffcf22639f6c9faa2 (diff) | |
download | gitblit-01ff0fa5f7392cfd73c3b722c99c12fdc3998dbe.tar.gz gitblit-01ff0fa5f7392cfd73c3b722c99c12fdc3998dbe.zip |
Catch UnsatisfiedLinkException when setting filemode of generated SSH keys
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/gitblit/transport/ssh/SshDaemon.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/transport/ssh/SshDaemon.java b/src/main/java/com/gitblit/transport/ssh/SshDaemon.java index a403699b..4d64cfb7 100644 --- a/src/main/java/com/gitblit/transport/ssh/SshDaemon.java +++ b/src/main/java/com/gitblit/transport/ssh/SshDaemon.java @@ -212,8 +212,8 @@ public class SshDaemon { Files.touch(file); try { JnaUtils.setFilemode(file, JnaUtils.S_IRUSR | JnaUtils.S_IWUSR); - } catch (UnsupportedOperationException e) { - // Windows + } catch (UnsatisfiedLinkError | UnsupportedOperationException e) { + // Unexpected/Unsupported OS or Architecture } FileOutputStream os = new FileOutputStream(file); |