diff options
Diffstat (limited to 'src/libnm-core-aux-intern/nm-auth-subject.c')
| -rw-r--r-- | src/libnm-core-aux-intern/nm-auth-subject.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libnm-core-aux-intern/nm-auth-subject.c b/src/libnm-core-aux-intern/nm-auth-subject.c index db499b88..c381bdba 100644 --- a/src/libnm-core-aux-intern/nm-auth-subject.c +++ b/src/libnm-core-aux-intern/nm-auth-subject.c @@ -351,6 +351,8 @@ constructed(GObject *object) NMAuthSubject *self = NM_AUTH_SUBJECT(object); NMAuthSubjectPrivate *priv = NM_AUTH_SUBJECT_GET_PRIVATE(self); + G_OBJECT_CLASS(nm_auth_subject_parent_class)->constructed(object); + /* validate that the created instance. */ switch (priv->subject_type) { @@ -361,9 +363,9 @@ constructed(GObject *object) case NM_AUTH_SUBJECT_TYPE_UNIX_PROCESS: /* Ensure pid and uid to be representable as int32. * DBUS treats them as uint32, polkit library as int. */ - if (priv->unix_process.pid > MIN(G_MAXINT, G_MAXINT32)) + if (priv->unix_process.pid > NM_MIN(G_MAXINT, G_MAXINT32)) break; - if (priv->unix_process.uid > MIN(G_MAXINT, G_MAXINT32)) { + if (priv->unix_process.uid > NM_MIN(G_MAXINT, G_MAXINT32)) { /* for uid==-1, libpolkit-gobject-1 detects the user based on the process id. * Don't bother and require the user id as parameter. */ break; |