Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jun 2009 15:30:10 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r194297 - in head: crypto/openssh secure/lib/libssh
Message-ID:  <200906161530.n5GFUAhE032270@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Tue Jun 16 15:30:10 2009
New Revision: 194297
URL: http://svn.freebsd.org/changeset/base/194297

Log:
  Use the closefrom(2) system call.
  
  Reviewed by:	des

Modified:
  head/crypto/openssh/config.h
  head/crypto/openssh/ssh_namespace.h
  head/secure/lib/libssh/Makefile

Modified: head/crypto/openssh/config.h
==============================================================================
--- head/crypto/openssh/config.h	Tue Jun 16 15:13:45 2009	(r194296)
+++ head/crypto/openssh/config.h	Tue Jun 16 15:30:10 2009	(r194297)
@@ -211,7 +211,7 @@
 #define HAVE_CLOCK_T 1
 
 /* Define to 1 if you have the `closefrom' function. */
-/* #undef HAVE_CLOSEFROM */
+#define HAVE_CLOSEFROM 1
 
 /* Define if gai_strerror() returns const char * */
 #define HAVE_CONST_GAI_STRERROR_PROTO 1

Modified: head/crypto/openssh/ssh_namespace.h
==============================================================================
--- head/crypto/openssh/ssh_namespace.h	Tue Jun 16 15:13:45 2009	(r194296)
+++ head/crypto/openssh/ssh_namespace.h	Tue Jun 16 15:30:10 2009	(r194297)
@@ -153,7 +153,6 @@
 #define ciphers_valid				ssh_ciphers_valid
 #define cleanhostname				ssh_cleanhostname
 #define cleanup_exit				ssh_cleanup_exit
-#define closefrom				ssh_closefrom
 #define colon					ssh_colon
 #define compat_cipher_proposal			ssh_compat_cipher_proposal
 #define compat_datafellows			ssh_compat_datafellows

Modified: head/secure/lib/libssh/Makefile
==============================================================================
--- head/secure/lib/libssh/Makefile	Tue Jun 16 15:13:45 2009	(r194296)
+++ head/secure/lib/libssh/Makefile	Tue Jun 16 15:30:10 2009	(r194297)
@@ -19,7 +19,7 @@ SRCS=	acss.c authfd.c authfile.c bufaux.
 # compiled directly into sshd instead.
 
 # Portability layer
-SRCS+=	bsd-closefrom.c bsd-misc.c fmt_scaled.c getrrsetbyname.c \
+SRCS+=	bsd-misc.c fmt_scaled.c getrrsetbyname.c \
 	openssl-compat.c port-tun.c strtonum.c vis.c xcrypt.c xmmap.c
 # FreeBSD additions
 SRCS+=	version.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906161530.n5GFUAhE032270>