swrap: Remove _close symbol alias as this breaks 'make test' on FreeBSD
authorAndreas Schneider <asn@samba.org>
Thu, 21 Jul 2022 06:59:32 +0000 (08:59 +0200)
committerAndreas Schneider <asn@samba.org>
Thu, 21 Jul 2022 07:00:15 +0000 (09:00 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
src/socket_wrapper.c

index 8141b8b186f0b9282de2c4070805890f969e1bb6..ef87519a19c96e8fa7ba200185637e4ef8dc3f46 100644 (file)
@@ -7851,8 +7851,8 @@ void swrap_destructor(void)
  * related syscalls also with the '_' prefix.
  *
  * This is tested in Samba's 'make test',
- * there we noticed that providing '_read'
- * and '_open' would cause errors, which
+ * there we noticed that providing '_read',
+ * '_open' and '_close' would cause errors, which
  * means we skip '_read', '_write' and
  * all non socket related calls without
  * further analyzing the problem.
@@ -7865,7 +7865,6 @@ SWRAP_SYMBOL_ALIAS(accept4, _accept4);
 #endif
 SWRAP_SYMBOL_ALIAS(accept, _accept);
 SWRAP_SYMBOL_ALIAS(bind, _bind);
-SWRAP_SYMBOL_ALIAS(close, _close);
 SWRAP_SYMBOL_ALIAS(connect, _connect);
 SWRAP_SYMBOL_ALIAS(dup, _dup);
 SWRAP_SYMBOL_ALIAS(dup2, _dup2);