core: fix nm_utils_get_nm_gid()

Fixes: 31dbcb81fe ('core: make nm_utils_get_nm_[ug]id() thread safe')
This commit is contained in:
Beniamino Galvani
2025-07-07 10:00:29 +02:00
parent 16ef33d380
commit b58a37acfe

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