summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-05-12 06:21:00 -0600
committerJames Moger <james.moger@gitblit.com>2014-05-12 06:21:00 -0600
commitb3dab7e3b53f2520180aa81c07fa9f67f2fa3e32 (patch)
tree6d69c221a7e624d4ff10ccd06b885e657ae87d17 /src/main/java
parentcb5e6c2c5adc63c65a8517e19e16b20d35b671c6 (diff)
parent01ff0fa5f7392cfd73c3b722c99c12fdc3998dbe (diff)
downloadgitblit-b3dab7e3b53f2520180aa81c07fa9f67f2fa3e32.tar.gz
gitblit-b3dab7e3b53f2520180aa81c07fa9f67f2fa3e32.zip
Merged #70 "Ssh server key generation fails on ARM"
Diffstat (limited to 'src/main/java')
-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);