summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2013-10-25 18:44:20 -0700
committerAnthony G. Basile <blueness@gentoo.org>2014-01-20 12:59:42 -0500
commit2648470e54f614c867ded419f1fe9e3dc6fd3fd1 (patch)
treefbed1f88a8b97baeb495d206f328aa61026b3cc7
parentf2f5958148016b8f92085d2e98fcf94efce508bf (diff)
libudev-util.c: Fix sysconf variable for util_lookup_group
Signed-off-by: Michael Forney <mforney@mforney.org>
-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 6087c8f106..0f20e58586 100644
--- a/src/libudev/libudev-util.c
+++ b/src/libudev/libudev-util.c
@@ -111,7 +111,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"))