Merge "Fix checking for file_contexts in updater" into twrp2.7

This commit is contained in:
Dees Troy
2013-10-01 10:24:08 -05:00
committed by Gerrit Code Review
+1 -1
View File
@@ -91,7 +91,7 @@ int main(int argc, char** argv) {
script[script_entry->uncompLen] = '\0';
const ZipEntry* file_contexts_entry = mzFindZipEntry(&za, SELINUX_CONTEXTS_ZIP);
if (script_entry != NULL) {
if (file_contexts_entry != NULL) {
int file_contexts_fd = creat(SELINUX_CONTEXTS_TMP, 0644);
if (file_contexts_fd < 0) {
fprintf(stderr, "Could not extract %s to '%s'\n", SELINUX_CONTEXTS_ZIP, SELINUX_CONTEXTS_TMP);