]> source.dussan.org Git - gitblit.git/commitdiff
Catch UnsatisfiedLinkException when setting filemode of generated SSH keys 70/70/1
authorJames Moger <james.moger@gitblit.com>
Mon, 12 May 2014 12:18:53 +0000 (08:18 -0400)
committerJames Moger <james.moger@gitblit.com>
Mon, 12 May 2014 12:18:53 +0000 (08:18 -0400)
src/main/java/com/gitblit/transport/ssh/SshDaemon.java

index a403699b475d44d9f70d72040e95a16b4cd2dbe5..4d64cfb775fdc7ff4f36aa5841606d7bca7346e4 100644 (file)
@@ -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);