Whamcloud - gitweb
AOSP: e2fsdroid: use absolute path for product_out
authorJin Qian <jinqian@google.com>
Mon, 19 Dec 2016 19:02:15 +0000 (11:02 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 24 May 2017 02:52:55 +0000 (22:52 -0400)
Android build runs e2fsdroid in a tmp directory. Use absolute path
to access files in product_out.

Change-Id: Ic238d93ff68f03bd82245bda127d269972f5ef63
From AOSP commit: bc02ac42b26836f22579a81edb5711cae837732f

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
contrib/android/e2fsdroid.c

index e3b819f..febeeda 100644 (file)
@@ -76,7 +76,7 @@ int main(int argc, char *argv[])
                        android_configure = 1;
                        break;
                case 'p':
-                       product_out = strdup(optarg);
+                       product_out = absolute_path(optarg);
                        break;
                case 'a':
                        mountpoint = strdup(optarg);