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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user