Fix permissions on last_log.gz
Change-Id: I4c56bd01551d3f7301f471e4d342a0620c7b4971
diff --git a/twrp-functions.cpp b/twrp-functions.cpp
index 50511ce..af211f4 100755
--- a/twrp-functions.cpp
+++ b/twrp-functions.cpp
@@ -558,7 +558,7 @@
std::string logCopy = recoveryDir + "log.gz";
std::string lastLogCopy = recoveryDir + "last_log.gz";
- copy_file(logCopy, lastLogCopy, 600);
+ copy_file(logCopy, lastLogCopy, 0600);
Copy_Log(TMP_LOG_FILE, logCopy);
chown(logCopy.c_str(), 1000, 1000);
chmod(logCopy.c_str(), 0600);