summaryrefslogtreecommitdiffstats
path: root/updater/updater.c
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2013-10-01 17:24:08 +0200
committerGerrit Code Review <gerrit@198.50.184.117>2013-10-01 17:24:08 +0200
commite34c9070a53ed1ab3db63b7be2c0665d597c41cc (patch)
tree018ad9d3d7b0744b962c19ed7d60f553396b090e /updater/updater.c
parentMerge "Remove unneeded images" into twrp2.7 (diff)
parentFix checking for file_contexts in updater (diff)
downloadandroid_bootable_recovery-e34c9070a53ed1ab3db63b7be2c0665d597c41cc.tar
android_bootable_recovery-e34c9070a53ed1ab3db63b7be2c0665d597c41cc.tar.gz
android_bootable_recovery-e34c9070a53ed1ab3db63b7be2c0665d597c41cc.tar.bz2
android_bootable_recovery-e34c9070a53ed1ab3db63b7be2c0665d597c41cc.tar.lz
android_bootable_recovery-e34c9070a53ed1ab3db63b7be2c0665d597c41cc.tar.xz
android_bootable_recovery-e34c9070a53ed1ab3db63b7be2c0665d597c41cc.tar.zst
android_bootable_recovery-e34c9070a53ed1ab3db63b7be2c0665d597c41cc.zip
Diffstat (limited to 'updater/updater.c')
-rw-r--r--updater/updater.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/updater/updater.c b/updater/updater.c
index 15d3d412f..7aa95e761 100644
--- a/updater/updater.c
+++ b/updater/updater.c
@@ -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);