Remove appfuse mount point directory after unmounting.

Bug: 34691785
Test: Check if there are directories under /mnt/appfuse after
      unmounting.

Change-Id: I00a897dd6d60e20b5ccfdfe2faeabb8a4f489197
gugelfrei
Daichi Hirono 8 years ago
parent 88108bd3bc
commit 95b09469a3

@ -756,6 +756,10 @@ static android::status_t runCommandInNamespace(const std::string& command,
PLOG(ERROR) << "Failed to unmount directory.";
_exit(-errno);
}
if (rmdir(path.c_str()) != 0) {
PLOG(ERROR) << "Failed to remove the mount directory.";
_exit(-errno);
}
_exit(android::OK);
} else {
LOG(ERROR) << "Unknown appfuse command " << command;

Loading…
Cancel
Save