From ea0e6d98248a5bc1a85e7707f3d69d0555011068 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 15 Aug 2016 22:25:15 +0200 Subject: fs/FileSystem: RemoveFile() throws exception on error --- src/event/ServerSocket.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/event') diff --git a/src/event/ServerSocket.cxx b/src/event/ServerSocket.cxx index 608ee65e2..3f34a5736 100644 --- a/src/event/ServerSocket.cxx +++ b/src/event/ServerSocket.cxx @@ -426,7 +426,7 @@ ServerSocket::AddPath(AllocatedPath &&path, Error &error) #ifdef HAVE_UN (void)error; - RemoveFile(path); + unlink(path.c_str()); AllocatedSocketAddress address; address.SetLocal(path.c_str()); -- cgit v1.2.3