Merge "Fix quoting of paths in auth code." am: b371af9e0f am: f898aade18

Original change: https://android-review.googlesource.com/c/platform/system/core/+/1363936

Change-Id: I28cf44911b232af339eb6f685fe5f8a3e7ef0641
This commit is contained in:
Treehugger Robot 2020-07-16 17:14:57 +00:00 committed by Automerger Merge Worker
commit 3cffdba0fe

View file

@ -400,12 +400,12 @@ static void adb_auth_inotify_init(const std::set<std::string>& paths) {
for (const std::string& path : paths) {
int wd = inotify_add_watch(infd, path.c_str(), IN_CREATE | IN_MOVED_TO);
if (wd < 0) {
PLOG(ERROR) << "failed to inotify_add_watch on path '" << path;
PLOG(ERROR) << "failed to inotify_add_watch on path '" << path << "'";
continue;
}
g_monitored_paths[wd] = path;
LOG(INFO) << "watch descriptor " << wd << " registered for " << path;
LOG(INFO) << "watch descriptor " << wd << " registered for '" << path << "'";
}
fdevent* event = fdevent_create(infd, adb_auth_inotify_update, nullptr);