From 80ba22fadc25f3831d7073d5aa9e913257cd1d9d Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Mon, 6 May 2024 15:37:17 -0700 Subject: std::remove to std::filesystem::remove Change-Id: Ie7729554e438f3af9ddb58941297525c50c6b419 Signed-off-by: Ed Tanous --- include/vm_websocket.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') 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(conn, socket, endpointId, path); -- cgit v1.2.3