From d29f4c24a91dae1948bb11b5dfb9e45969378a2b Mon Sep 17 00:00:00 2001 From: Tilman Dilo Date: Sat, 17 Jun 2017 15:13:05 +0200 Subject: [PATCH] clients/android: fix permissions of camput binary While the log message claims that the permissions of the camput binary were set to 0700, they were actually set to 0777. Change-Id: Ic5adbc05af161431823a3fb1685af5fa9a4b6647 --- .../app/src/main/java/org/camlistore/UploadApplication.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/android/app/src/main/java/org/camlistore/UploadApplication.java b/clients/android/app/src/main/java/org/camlistore/UploadApplication.java index 14733ff63..61ff11eea 100644 --- a/clients/android/app/src/main/java/org/camlistore/UploadApplication.java +++ b/clients/android/app/src/main/java/org/camlistore/UploadApplication.java @@ -65,7 +65,7 @@ public class UploadApplication extends Application { String writingFilePath = dstFile + ".writing"; Log.d(TAG, "wrote out " + writingFilePath); - Runtime.getRuntime().exec("chmod 0777 " + writingFilePath); + Runtime.getRuntime().exec("chmod 0700 " + writingFilePath); Log.d(TAG, "did chmod 0700 on " + writingFilePath); Runtime.getRuntime().exec("mv " + writingFilePath + " " + dstFile); f = new File(dstFile);