From 2a22fa694e901625e3c424c0f820558256507c45 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Thu, 17 Aug 2017 02:19:14 +0800 Subject: [PATCH] Fix removing modules from images --- jni/daemon/bootstages.c | 1 + 1 file changed, 1 insertion(+) diff --git a/jni/daemon/bootstages.c b/jni/daemon/bootstages.c index 0498b4416..219ace349 100644 --- a/jni/daemon/bootstages.c +++ b/jni/daemon/bootstages.c @@ -443,6 +443,7 @@ static int prepare_img() { continue; snprintf(buf, PATH_MAX, "%s/%s/remove", MOUNTPOINT, entry->d_name); if (access(buf, F_OK) == 0) { + snprintf(buf, PATH_MAX, "%s/%s", MOUNTPOINT, entry->d_name); rm_rf(buf); continue; }