libnm: fix broken assertion in _permissions_user_allowed()
Fixes: b2b2823c53
('core: avoid getpwuid() unless necessary in permission check')
This commit is contained in:
@@ -362,8 +362,7 @@ _permissions_user_allowed(NMSettingConnection *setting, const char *uname, gulon
|
||||
NMSettingConnectionPrivate *priv;
|
||||
guint i;
|
||||
|
||||
g_return_val_if_fail(NM_IS_SETTING_CONNECTION(setting), FALSE);
|
||||
g_return_val_if_fail(uname != NULL, FALSE);
|
||||
nm_assert(NM_IS_SETTING_CONNECTION(setting));
|
||||
|
||||
priv = NM_SETTING_CONNECTION_GET_PRIVATE(setting);
|
||||
|
||||
|
Reference in New Issue
Block a user