summaryrefslogtreecommitdiffstats
path: root/src/main/java/com
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-05-12 08:18:53 -0400
committerJames Moger <james.moger@gitblit.com>2014-05-12 08:18:53 -0400
commit01ff0fa5f7392cfd73c3b722c99c12fdc3998dbe (patch)
treef29a8790ed503e4a0fcd2a64f95a6834963b371f /src/main/java/com
parent8db2b5e52d8039513ad320fffcf22639f6c9faa2 (diff)
downloadgitblit-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.java4
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);