summaryrefslogtreecommitdiffstats
path: root/roots.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-08 19:08:49 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-10 17:33:29 +0200
commit5112731666070037ac8ed78dfdad57a11bd4cb6d (patch)
treed25fe6ae32a6ab56025a3e73851d10dac953d1f2 /roots.cpp
parentAdd processing of fstab, mounting, and decrypt (diff)
downloadandroid_bootable_recovery-5112731666070037ac8ed78dfdad57a11bd4cb6d.tar
android_bootable_recovery-5112731666070037ac8ed78dfdad57a11bd4cb6d.tar.gz
android_bootable_recovery-5112731666070037ac8ed78dfdad57a11bd4cb6d.tar.bz2
android_bootable_recovery-5112731666070037ac8ed78dfdad57a11bd4cb6d.tar.lz
android_bootable_recovery-5112731666070037ac8ed78dfdad57a11bd4cb6d.tar.xz
android_bootable_recovery-5112731666070037ac8ed78dfdad57a11bd4cb6d.tar.zst
android_bootable_recovery-5112731666070037ac8ed78dfdad57a11bd4cb6d.zip
Diffstat (limited to 'roots.cpp')
-rw-r--r--roots.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/roots.cpp b/roots.cpp
index 3bd680157..e74747378 100644
--- a/roots.cpp
+++ b/roots.cpp
@@ -40,7 +40,8 @@ static int parse_options(char* options, Volume* volume) {
while ((option = strtok(options, ","))) {
options = NULL;
- if (strncmp(option, "length=", 7) == 0) {
+ if (strncmp(option, "flags=", 6) == 0) continue;
+ if (strncmp(option, "length=", 7) == 0) {
volume->length = strtoll(option+7, NULL, 10);
} else {
LOGE("bad option \"%s\"\n", option);