From 8f6c20b92962cc557c779d596f0e6af6629a87a3 Mon Sep 17 00:00:00 2001 From: Lode Hoste Date: Fri, 24 Jul 2015 09:22:08 +0200 Subject: [PATCH] Fix 'bad mode' error when chmodding with +x --- .../nutomic/syncthingandroid/syncthing/SyncthingRunnable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingRunnable.java b/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingRunnable.java index 94182797..fbdad329 100644 --- a/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingRunnable.java +++ b/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingRunnable.java @@ -87,7 +87,7 @@ public class SyncthingRunnable implements Runnable { int ret = 1; // Make sure Syncthing is executable try { - ProcessBuilder pb = new ProcessBuilder("chmod", "+x", mSyncthingBinary); + ProcessBuilder pb = new ProcessBuilder("chmod", "500", mSyncthingBinary); Process p = pb.start(); p.waitFor(); } catch (IOException|InterruptedException e) {