diff options
author | Michael Forney <mforney@mforney.org> | 2013-10-26 01:12:51 +0000 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2013-10-25 18:53:47 -0700 |
commit | b49b09e046df217335dca68bc787b6b9d10bce44 (patch) | |
tree | e4e8ae698bacca5660119fa3b0e42744f6ba9a78 /src/libudev/libudev.c | |
parent | 630497dbc07971f6edc5b0cab4651ceef2ec662e (diff) |
libudev-util.c: Handle -1 return from sysconf(_SC_GET{PW,GR}_R_SIZE_MAX)
POSIX says:
Note that sysconf(_SC_GETGR_R_SIZE_MAX) may return -1 if there is no
hard limit on the size of the buffer needed to store all the groups
returned.
The example from POSIX uses a default buffer size of 1024 in that case.
Signed-off-by: Michael Forney <mforney@mforney.org>
Diffstat (limited to 'src/libudev/libudev.c')
0 files changed, 0 insertions, 0 deletions