Fix wrong symlink terminology
symlink(2) creates a symbolic link 'linkpath' containing a
string 'target'.
linkpath was misnamed as target in MountUserFuse. This cl
s/target/linkpath/ in Utils#MountUserFuse.
Test: m
Change-Id: I274823da16b87ffc124e2e8c4563b1d16546a6e7
diff --git a/Utils.cpp b/Utils.cpp
index 48e5ce0..af93824 100644
--- a/Utils.cpp
+++ b/Utils.cpp
@@ -1029,15 +1029,15 @@
}
if (relative_upper_path == "emulated") {
- std::string target(StringPrintf("/mnt/user/%d/self", user_id));
- result = PrepareDir(target, 0755, AID_ROOT, AID_ROOT);
+ std::string linkpath(StringPrintf("/mnt/user/%d/self", user_id));
+ result = PrepareDir(linkpath, 0755, AID_ROOT, AID_ROOT);
if (result != android::OK) {
- PLOG(ERROR) << "Failed to prepare directory " << target;
+ PLOG(ERROR) << "Failed to prepare directory " << linkpath;
return -1;
}
- target += "/primary";
+ linkpath += "/primary";
- Symlink(fuse_path + "/" + std::to_string(user_id), target);
+ Symlink(fuse_path + "/" + std::to_string(user_id), linkpath);
}
// Open fuse fd.