From 37aeb8d6786c0f0456bf1f9633199cd79818a920 Mon Sep 17 00:00:00 2001 From: Vojtech Bocek Date: Thu, 29 Aug 2013 22:38:20 +0200 Subject: Really fix TWFunc::tw_chmod() for 3-character mode string Signed-off-by: Vojtech Bocek Change-Id: I8f03d46235e1c71e8ee510309c9418cde802f50b --- twrp-functions.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'twrp-functions.hpp') diff --git a/twrp-functions.hpp b/twrp-functions.hpp index 8531c0939..4040d2ef0 100644 --- a/twrp-functions.hpp +++ b/twrp-functions.hpp @@ -48,7 +48,7 @@ public: static int drop_caches(void); //drop linux cache memory static int Check_su_Perms(void); // check perms and owner of su binary in various locations static bool Fix_su_Perms(void); // sets proper permissions for su binaries and superuser apk - static int tw_chmod(string fn, string mode); // chmod function that converts a 4 char string into st_mode automatically + static int tw_chmod(const string& fn, const string& mode); // chmod function that converts a 3 or 4 char string into st_mode automatically static bool Install_SuperSU(void); // Installs su binary and apk and sets proper permissions static vector split_string(const string &in, char del, bool skip_empty); static int Get_File_Type(string fn); // Determines file type, 0 for unknown, 1 for gzip, 2 for OAES encrypted -- cgit v1.2.3