core: fix nm_utils_get_nm_gid()
Fixes: 31dbcb81fe
('core: make nm_utils_get_nm_[ug]id() thread safe')
This commit is contained in:
@@ -5417,7 +5417,7 @@ again:
|
|||||||
if ((g = g_atomic_int_get(&g_static)) == -1) {
|
if ((g = g_atomic_int_get(&g_static)) == -1) {
|
||||||
gid_t g2;
|
gid_t g2;
|
||||||
|
|
||||||
g2 = geteuid();
|
g2 = getegid();
|
||||||
g = g2;
|
g = g2;
|
||||||
nm_assert(g == g2);
|
nm_assert(g == g2);
|
||||||
nm_assert(g >= 0);
|
nm_assert(g >= 0);
|
||||||
|
Reference in New Issue
Block a user