From owner-p4-projects@FreeBSD.ORG Sun Jul 22 10:18:25 2012 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 6E87C1065694; Sun, 22 Jul 2012 10:18:24 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0BF8F10656DA for ; Sun, 22 Jul 2012 10:18:24 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from skunkworks.freebsd.org (skunkworks.freebsd.org [IPv6:2001:4f8:fff6::2d]) by mx1.freebsd.org (Postfix) with ESMTP id E0C098FC0A for ; Sun, 22 Jul 2012 10:18:23 +0000 (UTC) Received: from skunkworks.freebsd.org (localhost [127.0.0.1]) by skunkworks.freebsd.org (8.14.4/8.14.4) with ESMTP id q6MAINbs054908 for ; Sun, 22 Jul 2012 10:18:23 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by skunkworks.freebsd.org (8.14.4/8.14.4/Submit) id q6MAINlg054905 for perforce@freebsd.org; Sun, 22 Jul 2012 10:18:23 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Sun, 22 Jul 2012 10:18:23 GMT Message-Id: <201207221018.q6MAINlg054905@skunkworks.freebsd.org> X-Authentication-Warning: skunkworks.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 214734 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Jul 2012 10:18:25 -0000 http://p4web.freebsd.org/@@214734?ac=10 Change 214734 by rwatson@rwatson_cinnamon on 2012/07/22 10:17:39 Avoid a directory descriptor leak in libauditd when iterating over possible audit trail directories when the first one fills. Submitted by: guido Affected files ... .. //depot/projects/trustedbsd/openbsm/libauditd/auditd_lib.c#17 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/libauditd/auditd_lib.c#17 (text+ko) ==== @@ -26,7 +26,7 @@ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/trustedbsd/openbsm/libauditd/auditd_lib.c#16 $ + * $P4: //depot/projects/trustedbsd/openbsm/libauditd/auditd_lib.c#17 $ */ #include @@ -520,6 +520,7 @@ } } + closedir(dirp); } oldest_time = current_time - expire_age;