From nobody Fri Mar 01 13:57:30 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TmV5l0hMWz5CRS9; Fri, 1 Mar 2024 13:57:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TmV5k6JL0z43LK; Fri, 1 Mar 2024 13:57:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709301450; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DvMC8JMAW8ar3IVG2PE6XiUWrr6LgchXw0MPfkPtQDk=; b=Wr67YijwI/wrxgIm//cuutFYHcc5kD2FrTrSVIGrQ57MJimZLVOe690QBA12Y4nTgTWpxc 1015mtTDgqvDNAh32L0P2EnemWiH90TQxhK9NhylXngVxES0JKeZ5TpJdlRNvrakfUlXst 20tWXZIh+uwVh8hH5iksMrUaCel7VOfpQS9eDXZipyP10lLu0SUAGNdBPXz0KUCA8AykyL w5schmIy4vQirPa/JXTpwQfIS+XMsLaDhN1301QAQJVd0n/BBvL7GPd2UbxVgAqje4IyIE 6pNX/5mD017VNRzlp5HnMO0ahhFWwd36MdJtZ5dZycwTpq/nVuAExRZSVF9loQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709301450; a=rsa-sha256; cv=none; b=NTEhnBCAv+JsKdAgSx9y3//u+kEkIFbic0dS2cev8Onpd3coH+wnQtQuNS4Dv3hrUZxcxL 9xSJstc9TKTplxyTlpwgo59MHflFHg8MUbbQ+/HJhobGyTvWg3u5EDU9x8uFHMP8rmwVAB e/MmG/kL24vovFBN1AQ8vOVDXWktb26QT8IZ9VYEAQ1Pxfl5DHXilv6hymCmFobGwXNSB4 JiyUvox+nBxqOshY+WDRlLCOK5GFwLtoLwdDopx6l+scIP0ptw5gA1dANFl54Yq7Dcte8k 3OwNLuXcwk7Av0qIqXiqEMWE08TljcjTNskxtGU/ly+laS4tsOVyyPTdBpGxOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709301450; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DvMC8JMAW8ar3IVG2PE6XiUWrr6LgchXw0MPfkPtQDk=; b=RcEiWxA0ljdiixjWcLL6lHKD4+3qPBuPspPuONh1pFsbjVeuWnoCSruykZ7StrrxxK4KUB P8x0LUNdazh1YjtzUPXIhMkP78e6HXQJWDSIeVTZDvhQ0C/ph64ixFNIGzEuXNSTrmcXY+ 1anZlIdP4wPoERio/fqzgHqU4GUE+wb0+sZY0i9yzdu6stebj2FWV/nvwXquDtf8aBjXnB atH7SdvJjNMbznqHyr50/+cNV2KRx4QR1gKJvNdY2jKH6uooX4s4EPsVwBgpJyfiGWO7X3 30VwGpNyUiyg2aS3U64F0Lnk9fTQ6yAZ5xyurxsF0OO1Yrez5Zia+6/8p4J3pw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TmV5k5vygzT4l; Fri, 1 Mar 2024 13:57:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 421DvUBm005859; Fri, 1 Mar 2024 13:57:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 421DvUiD005856; Fri, 1 Mar 2024 13:57:30 GMT (envelope-from git) Date: Fri, 1 Mar 2024 13:57:30 GMT Message-Id: <202403011357.421DvUiD005856@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: 56ec98a04d19 - main - pam_xdg: Close the dir after removal List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 56ec98a04d19fec3750e47d12eb581c139c8b405 Auto-Submitted: auto-generated The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=56ec98a04d19fec3750e47d12eb581c139c8b405 commit 56ec98a04d19fec3750e47d12eb581c139c8b405 Author: Emmanuel Vadot AuthorDate: 2024-03-01 13:49:16 +0000 Commit: Emmanuel Vadot CommitDate: 2024-03-01 13:56:12 +0000 pam_xdg: Close the dir after removal CID: 1534878 Sponsored by: Beckhoff Automation GmbH & Co. KG --- lib/libpam/modules/pam_xdg/pam_xdg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libpam/modules/pam_xdg/pam_xdg.c b/lib/libpam/modules/pam_xdg/pam_xdg.c index f1a9b13d581c..4d586a21566a 100644 --- a/lib/libpam/modules/pam_xdg/pam_xdg.c +++ b/lib/libpam/modules/pam_xdg/pam_xdg.c @@ -199,6 +199,7 @@ remove_dir(int fd) } unlinkat(fd, dp->d_name, 0); } + closedir(dirp); return (0); }