commit | c9ff7a341b03b3013eca57c7554417b623ab6bb0 | [log] [tgz] |
---|---|---|
author | Dees_Troy <dees_troy@teamw.in> | Thu Sep 27 10:09:41 2012 -0400 |
committer | Dees_Troy <dees_troy@teamw.in> | Thu Sep 27 10:40:03 2012 -0400 |
tree | e8cca26407ec35a3f31823f3bd77c861c51de347 | |
parent | a58beade0a4f5342f5dcd3b3a597f9183de92260 [diff] [blame] |
Port backup name checking to Partition Manager
diff --git a/openrecoveryscript.cpp b/openrecoveryscript.cpp index bcd4acb..23641f7 100644 --- a/openrecoveryscript.cpp +++ b/openrecoveryscript.cpp
@@ -198,6 +198,10 @@ strncpy(value2, tok, line_len - remove_nl); DataManager_SetStrValue(TW_BACKUP_NAME, value2); ui_print("Backup folder set to '%s'\n", value2); + if (PartitionManager.Check_Backup_Name(true) != 0) { + ret_val = 1; + continue; + } } else { char empt[50]; strcpy(empt, "(Current Date)");