shadowlock: disable until proper unit tests are run
This code as-is is not doing anything other then declaring a function.
The solution is to utilize {} to tell the compiler it's an object
instantiation. Given that this code has been a noop up until this point,
it's best to just comment it out until someone can come in enable and
test it properly.
The latest yocto update which brings in a newer compiler is erroring out
on this so we need something quick to be able to make progress there.
openbmc/phosphor-host-ipmid#170 is tracking this issue.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: Idd4acd8e8541195f1b6e73c854866281832f1878
diff --git a/user_channel/passwd_mgr.cpp b/user_channel/passwd_mgr.cpp
index 63a226e..345f3cc 100644
--- a/user_channel/passwd_mgr.cpp
+++ b/user_channel/passwd_mgr.cpp
@@ -227,7 +227,7 @@
void PasswdMgr::initPasswordMap(void)
{
- phosphor::user::shadow::Lock lock();
+ // TODO phosphor-host-ipmid#170 phosphor::user::shadow::Lock lock{};
std::vector<uint8_t> dataBuf;
if (readPasswdFileData(dataBuf) != 0)
@@ -357,7 +357,7 @@
int PasswdMgr::updatePasswdSpecialFile(const std::string& userName,
const std::string& newUserName)
{
- phosphor::user::shadow::Lock lock();
+ // TODO phosphor-host-ipmid#170 phosphor::user::shadow::Lock lock{};
size_t bytesWritten = 0;
size_t inBytesLen = 0;