summaryrefslogtreecommitdiff
path: root/src/libudev/libudev-util.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2013-10-25 18:44:20 -0700
committerMichael Forney <mforney@mforney.org>2013-10-25 18:53:36 -0700
commit630497dbc07971f6edc5b0cab4651ceef2ec662e (patch)
tree84c1a581d5ebe2ffb3d11214d4ef3c93f82edcce /src/libudev/libudev-util.c
parent69d8113995f6ec222798bc3164d2f1987cf4f5e6 (diff)
libudev-util.c: Fix sysconf variable for util_lookup_group
Signed-off-by: Michael Forney <mforney@mforney.org>
Diffstat (limited to 'src/libudev/libudev-util.c')
-rw-r--r--src/libudev/libudev-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libudev/libudev-util.c b/src/libudev/libudev-util.c
index 522a984c3b..337514a13d 100644
--- a/src/libudev/libudev-util.c
+++ b/src/libudev/libudev-util.c
@@ -108,7 +108,7 @@ gid_t util_lookup_group(struct udev *udev, const char *group)
struct group grbuf;
struct group *gr;
gid_t gid = 0;
- size_t buflen = sysconf(_SC_GETPW_R_SIZE_MAX);
+ size_t buflen = sysconf(_SC_GETGR_R_SIZE_MAX);
char *buf = NULL;
if (streq(group, "root"))