am aae26fc0: keystore: fix bug in clear_uid
* commit 'aae26fc0e58c99ac8e0df69b913523e81fa15d66':
keystore: fix bug in clear_uid
diff --git a/keystore/keystore.cpp b/keystore/keystore.cpp
index 482e21b..84f5794 100644
--- a/keystore/keystore.cpp
+++ b/keystore/keystore.cpp
@@ -2078,7 +2078,7 @@
}
}
- if (unlinkat(dirfd(dir), filename.string(), 0) && errno != ENOENT) {
+ if (unlinkat(dirfd(dir), file->d_name, 0) && errno != ENOENT) {
rc = ::SYSTEM_ERROR;
ALOGW("couldn't unlink %s", filename.string());
}