chiark / gitweb /
sd-bus: fix typo
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Jan 2015 01:59:30 +0000 (02:59 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Jan 2015 02:00:15 +0000 (03:00 +0100)
src/libsystemd/sd-bus/bus-creds.c

index 54e76ab..ea8a619 100644 (file)
@@ -220,7 +220,7 @@ _public_ int sd_bus_creds_get_gid(sd_bus_creds *c, gid_t *gid) {
         assert_return(c, -EINVAL);
         assert_return(gid, -EINVAL);
 
-        if (!(c->mask & SD_BUS_CREDS_UID))
+        if (!(c->mask & SD_BUS_CREDS_GID))
                 return -ENODATA;
 
         *gid = c->gid;