diff options
Diffstat (limited to '')
-rw-r--r-- | gui/action.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/gui/action.cpp b/gui/action.cpp index 240db8f24..e08111850 100644 --- a/gui/action.cpp +++ b/gui/action.cpp @@ -209,6 +209,7 @@ GUIAction::GUIAction(xml_node<>* node) ADD_ACTION(wipe); ADD_ACTION(refreshsizes); ADD_ACTION(nandroid); + ADD_ACTION(fixcontexts); ADD_ACTION(fixpermissions); ADD_ACTION(dd); ADD_ACTION(partitionsd); @@ -1219,16 +1220,16 @@ int GUIAction::cancelbackup(std::string arg __unused) { return 0; } -int GUIAction::fixpermissions(std::string arg __unused) +int GUIAction::fixcontexts(std::string arg __unused) { int op_status = 0; - operation_start("Fix Permissions"); - LOGINFO("fix permissions started!\n"); + operation_start("Fix Contexts"); + LOGINFO("fix contexts started!\n"); if (simulate) { simulate_progress_bar(); } else { - op_status = PartitionManager.Fix_Permissions(); + op_status = PartitionManager.Fix_Contexts(); if (op_status != 0) op_status = 1; // failure } @@ -1236,6 +1237,11 @@ int GUIAction::fixpermissions(std::string arg __unused) return 0; } +int GUIAction::fixpermissions(std::string arg) +{ + return fixcontexts(arg); +} + int GUIAction::dd(std::string arg) { operation_start("imaging"); |