From owner-cvs-all Sun Oct 21 11:23:53 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D82C437B401; Sun, 21 Oct 2001 11:23:50 -0700 (PDT) Received: (from deischen@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9LINo559434; Sun, 21 Oct 2001 11:23:50 -0700 (PDT) (envelope-from deischen) Message-Id: <200110211823.f9LINo559434@freefall.freebsd.org> From: Daniel Eischen Date: Sun, 21 Oct 2001 11:23:50 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc_r/uthread uthread_fd.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG deischen 2001/10/21 11:23:50 PDT Modified files: lib/libc_r/uthread uthread_fd.c Log: In the words of the submitter: In libc_r, if _FDLOCKS_ENABLED is not defined, there is no guarantee in many of the sycall wrappers that _thread_fd_table[fd] is initialized. This causes problems for programs that pass in file descriptors and execve() another program; when the exec'ed program tries to do an fcntl() or other syscall on the passed-in fd, it fails. Add calls to initialize the FD table entry for _thread_fd_lock and _thread_fd_lock_debug. Submitted by: Peter S. Housel Revision Changes Path 1.21 +11 -3 src/lib/libc_r/uthread/uthread_fd.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message