summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEd Tanous <ed@tanous.net>2024-05-07 01:37:17 +0300
committerEd Tanous <ed@tanous.net>2024-05-09 02:32:22 +0300
commit80ba22fadc25f3831d7073d5aa9e913257cd1d9d (patch)
tree81da741a1bcd10fe05c16aa1bcd55f80360476a6 /include
parent0790081778658c5797dd24fd811ba407d6fadae6 (diff)
downloadbmcweb-80ba22fadc25f3831d7073d5aa9e913257cd1d9d.tar.xz
std::remove to std::filesystem::remove
Change-Id: Ie7729554e438f3af9ddb58941297525c50c6b419 Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'include')
-rw-r--r--include/vm_websocket.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/vm_websocket.hpp b/include/vm_websocket.hpp
index b489a4265f..7e55e4ec8c 100644
--- a/include/vm_websocket.hpp
+++ b/include/vm_websocket.hpp
@@ -449,7 +449,9 @@ inline void
// 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);