From owner-cvs-all Thu Nov 14 4:42:47 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D72ED37B401; Thu, 14 Nov 2002 04:42:46 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89B8443E3B; Thu, 14 Nov 2002 04:42:46 -0800 (PST) (envelope-from ru@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id gAECeEmV047358; Thu, 14 Nov 2002 04:40:14 -0800 (PST) (envelope-from ru@repoman.freebsd.org) Received: (from ru@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id gAECeE1T047357; Thu, 14 Nov 2002 04:40:14 -0800 (PST) Message-Id: <200211141240.gAECeE1T047357@repoman.freebsd.org> From: Ruslan Ermilov Date: Thu, 14 Nov 2002 04:40:14 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/gen syslog.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 ru 2002/11/14 04:40:14 PST Modified files: lib/libc/gen syslog.c Log: Reset LogTag to NULL in closelog(3). This fixes mysterious crashes caused by dynamic PAM modules that call openlog(3) and closelog(3), e.g. ports/security/pam_pwdfile. What happened here is that the module first registered its "ident" with openlog(3), then PAM library unloaded module with dlclose(3), and the next call to syslog(3) resulted in SIGSEGV. MFC after: 3 days Revision Changes Path 1.28 +1 -0 src/lib/libc/gen/syslog.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message