diff options
author | Doug Zongker <dougz@google.com> | 2014-07-31 14:59:01 -0700 |
---|---|---|
committer | Doug Zongker <dougz@google.com> | 2014-07-31 15:42:13 -0700 |
commit | eaf33654c1817bd665831a13c5bd0c04daabee02 (patch) | |
tree | 704c52c8d0a1f1ccf3783c495a43a252cdbd468c /uncrypt | |
parent | a91ecc59b2753a3dcc93b2619559a980074e77bd (diff) | |
download | bootable_recovery-eaf33654c1817bd665831a13c5bd0c04daabee02.zip bootable_recovery-eaf33654c1817bd665831a13c5bd0c04daabee02.tar.gz bootable_recovery-eaf33654c1817bd665831a13c5bd0c04daabee02.tar.bz2 |
only do uncryption on packages in /data
If recovery is invoked with a package somewhere other than /data,
leave it alone.
Change-Id: Ief358b53df467ae24a65e30e7a631da59bf13683
Diffstat (limited to 'uncrypt')
-rw-r--r-- | uncrypt/uncrypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uncrypt/uncrypt.c b/uncrypt/uncrypt.c index 24d1ffc..bce53db 100644 --- a/uncrypt/uncrypt.c +++ b/uncrypt/uncrypt.c @@ -159,7 +159,7 @@ char* parse_recovery_command_file() while (fgets(temp, sizeof(temp), f)) { printf("read: %s", temp); - if (strncmp(temp, "--update_package=", strlen("--update_package=")) == 0) { + if (strncmp(temp, "--update_package=/data/", strlen("--update_package=/data/")) == 0) { fn = strdup(temp + strlen("--update_package=")); strcpy(temp, "--update_package=@" CACHE_BLOCK_MAP "\n"); } |