partitionmanager: add /etc to Local_Path

- Prevents errors when using copy_file for
  paths starting with /etc

Change-Id: I7d52acdbc8e67a21e3d32f4793257dbdad5d82de
This commit is contained in:
Captain Throwback
2020-03-04 16:55:48 -05:00
parent 6d5d08a1c0
commit d54e1da83e
+1 -1
View File
@@ -515,7 +515,7 @@ int TWPartitionManager::Mount_By_Path(string Path, bool Display_Error) {
bool found = false;
string Local_Path = TWFunc::Get_Root_Path(Path);
if (Local_Path == "/tmp" || Local_Path == "/")
if (Local_Path == "/tmp" || Local_Path == "/" || Local_Path == "/etc")
return true;
// Iterate through all partitions