mirror of
https://github.com/syncthing/syncthing-android.git
synced 2025-01-09 19:53:33 +00:00
Merge pull request #436 from syncthing/chmod-500
Fix 'bad mode' error when chmodding with +x
This commit is contained in:
commit
164733385b
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ public class SyncthingRunnable implements Runnable {
|
||||||
int ret = 1;
|
int ret = 1;
|
||||||
// Make sure Syncthing is executable
|
// Make sure Syncthing is executable
|
||||||
try {
|
try {
|
||||||
ProcessBuilder pb = new ProcessBuilder("chmod", "+x", mSyncthingBinary);
|
ProcessBuilder pb = new ProcessBuilder("chmod", "500", mSyncthingBinary);
|
||||||
Process p = pb.start();
|
Process p = pb.start();
|
||||||
p.waitFor();
|
p.waitFor();
|
||||||
} catch (IOException|InterruptedException e) {
|
} catch (IOException|InterruptedException e) {
|
||||||
|
|
Loading…
Reference in a new issue