summaryrefslogtreecommitdiffstats
path: root/partitionmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'partitionmanager.cpp')
-rw-r--r--partitionmanager.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 69812c86e..5c325773a 100644
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -128,14 +128,14 @@ int TWPartitionManager::Write_Fstab(void) {
if ((*iter)->Can_Be_Mounted) {
Line = (*iter)->Actual_Block_Device + " " + (*iter)->Mount_Point + " " + (*iter)->Current_File_System + " rw\n";
fputs(Line.c_str(), fp);
- // Handle subpartition tracking
- if ((*iter)->Is_SubPartition) {
- TWPartition* ParentPartition = Find_Partition_By_Path((*iter)->SubPartition_Of);
- if (ParentPartition)
- ParentPartition->Has_SubPartition = true;
- else
- LOGERR("Unable to locate parent partition '%s' of '%s'\n", (*iter)->SubPartition_Of.c_str(), (*iter)->Mount_Point.c_str());
- }
+ }
+ // Handle subpartition tracking
+ if ((*iter)->Is_SubPartition) {
+ TWPartition* ParentPartition = Find_Partition_By_Path((*iter)->SubPartition_Of);
+ if (ParentPartition)
+ ParentPartition->Has_SubPartition = true;
+ else
+ LOGERR("Unable to locate parent partition '%s' of '%s'\n", (*iter)->SubPartition_Of.c_str(), (*iter)->Mount_Point.c_str());
}
}
fclose(fp);