summaryrefslogtreecommitdiff
path: root/cmds/installd/utils.cpp
diff options
context:
space:
mode:
author Hanna Nizhnikava <yulecat@google.com> 2022-01-28 18:06:43 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2022-01-28 18:06:43 +0000
commit624d5609e9fb34442a08fedc6d5e89f34a1ae04a (patch)
treef9c4e4f74435e0e48c7fb9df90513bab85a2b39d /cmds/installd/utils.cpp
parenta9ff73831c26cb01e5164f3dd19c4c5b6307f9ae (diff)
parentc349e14dde804608ba1d751174a6b88203edda9c (diff)
Merge "Remove ableist language" am: af72f11bd2 am: 6191fc04a2 am: b14c7d706b am: c349e14dde
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1957031 Change-Id: I2870aa10b70be0a1da4378ba3a4ecae6a04eda32
Diffstat (limited to 'cmds/installd/utils.cpp')
-rw-r--r--cmds/installd/utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/installd/utils.cpp b/cmds/installd/utils.cpp
index c4ecd070c1..0f8a732345 100644
--- a/cmds/installd/utils.cpp
+++ b/cmds/installd/utils.cpp
@@ -829,7 +829,7 @@ void remove_path_xattr(const std::string& path, const char* inode_xattr) {
* to top level directories (i.e. have "..").
*/
static int validate_path(const std::string& dir, const std::string& path, int maxSubdirs) {
- // Argument sanity checking
+ // Argument check
if (dir.find('/') != 0 || dir.rfind('/') != dir.size() - 1
|| dir.find("..") != std::string::npos) {
LOG(ERROR) << "Invalid directory " << dir;