1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 19:31:30 +00:00

Fix 'bad mode' error when chmodding with +x

This commit is contained in:
Lode Hoste 2015-07-24 09:22:08 +02:00
parent 93eeb22473
commit 8f6c20b929

View file

@ -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) {