core: fix nm_utils_get_nm_gid()

Fixes: 31dbcb81fe ('core: make nm_utils_get_nm_[ug]id() thread safe')
(cherry picked from commit b58a37acfe)
This commit is contained in:
Beniamino Galvani 2025-07-07 10:00:29 +02:00 committed by Íñigo Huguet
parent 12e033368f
commit e56bc740d0

View file

@ -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);