summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--partition.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/partition.cpp b/partition.cpp
index 3fadfb980..6c1c3e50b 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -1733,10 +1733,6 @@ bool TWPartition::Wipe_Data_Without_Wiping_Media() {
}
closedir(d);
- #ifdef HAVE_SELINUX
- perms.fixDataInternalContexts();
- #endif
-
gui_print("Done.\n");
return true;
}
@@ -2076,9 +2072,9 @@ void TWPartition::Recreate_Media_Folder(void) {
PartitionManager.Mount_By_Path(Symlink_Mount_Point, true);
LOGINFO("Recreating /data/media folder.\n");
mkdir("/data/media", S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
- #ifdef HAVE_SELINUX
+#ifdef HAVE_SELINUX
perms.fixDataInternalContexts();
- #endif
+#endif
// Toggle mount to ensure that "internal sdcard" gets mounted
PartitionManager.UnMount_By_Path(Symlink_Mount_Point, true);
PartitionManager.Mount_By_Path(Symlink_Mount_Point, true);