partitionmanager: add /etc to Local_Path
- Prevents errors when using copy_file for
paths starting with /etc
Change-Id: I7d52acdbc8e67a21e3d32f4793257dbdad5d82de
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 596531f..b265469 100755
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -515,7 +515,7 @@
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