Date: Mon, 6 Mar 2023 14:32:33 +0100 (CET) Message-Id: <202303061332.326DWXuF022820@...2054...> From: Gert Doering In-Reply-To: <20230306053346.796992-1-selva.nair@...277...> References: <20230306053346.796992-1-selva.nair@...277...> Subject: [Openvpn-devel] [PATCH applied] Re: Do not save pointer to 'struct passwd' returned by getpwnam etc. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Selva Nair Cc: openvpn-devel@lists.sourceforge.net Acked-by: Gert Doering Well spotted. Whatever we decide to do with 2/2, this is the correct way to deal with getpw*() returns. I have not tested every possible combination of options, but I have stared-at-code (looks good), had the buildbots test it, and ran a "--user nobody" DCO instance on Linux (works). Your patch has been applied to the master and release/2.6 branch. commit 62024046dffd6ff10309b791cd6600fe80bc46e3 (master) commit 85ad9d2520d571dff93d2b15002f151c10000804 (release/2.6) Author: Selva Nair Date: Mon Mar 6 00:33:45 2023 -0500 Do not save pointer to 'struct passwd' returned by getpwnam etc. Signed-off-by: Selva Nair Acked-by: Gert Doering Message-Id: <20230306053346.796992-1-selva.nair@...277...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26332.html Signed-off-by: Gert Doering -- kind regards, Gert Doering