From 37049aab365a15fb513c6daa79dba5cd183946d7 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max.kellermann@gmail.com>
Date: Tue, 14 May 2024 19:50:44 +0200
Subject: [PATCH] lib/nfs/Connection: remove EnableCloseOnExec() call

SOCK_CLOEXEC has been added to libnfs version 2, and since we require
at least version 4, we can safely remove this call.
---
 src/lib/nfs/Connection.cxx | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/lib/nfs/Connection.cxx b/src/lib/nfs/Connection.cxx
index fd733387a..c9d7985f7 100644
--- a/src/lib/nfs/Connection.cxx
+++ b/src/lib/nfs/Connection.cxx
@@ -447,7 +447,6 @@ NfsConnection::ScheduleSocket() noexcept
 		if (!_fd.IsDefined())
 			return;
 
-		_fd.EnableCloseOnExec();
 		socket_event.Open(_fd);
 	}