From b58a37acfe5c8ea7bb4ee43c03f591bd4d024ca1 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Mon, 7 Jul 2025 10:00:29 +0200 Subject: [PATCH] core: fix nm_utils_get_nm_gid() Fixes: 31dbcb81fe7a ('core: make nm_utils_get_nm_[ug]id() thread safe') --- src/core/nm-core-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/nm-core-utils.c b/src/core/nm-core-utils.c index 895a99177..ebadde3c7 100644 --- a/src/core/nm-core-utils.c +++ b/src/core/nm-core-utils.c @@ -5417,7 +5417,7 @@ again: if ((g = g_atomic_int_get(&g_static)) == -1) { gid_t g2; - g2 = geteuid(); + g2 = getegid(); g = g2; nm_assert(g == g2); nm_assert(g >= 0);