std::remove to std::filesystem::remove
Change-Id: Ie7729554e438f3af9ddb58941297525c50c6b419
Signed-off-by: Ed Tanous <ed@tanous.net>
diff --git a/include/vm_websocket.hpp b/include/vm_websocket.hpp
index b489a42..7e55e4e 100644
--- a/include/vm_websocket.hpp
+++ b/include/vm_websocket.hpp
@@ -449,7 +449,9 @@
// If the socket file exists (i.e. after bmcweb crash),
// we cannot reuse it.
- std::remove(socket.c_str());
+ std::error_code ec2;
+ std::filesystem::remove(socket.c_str(), ec2);
+ // Ignore failures. File might not exist.
sessions[&conn] = std::make_shared<NbdProxyServer>(conn, socket, endpointId,
path);