You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
631 B
23 lines
631 B
7 years ago
|
autofs-5.0.7 - fix incorrect var name in test
|
||
|
|
||
|
From: Ian Kent <raven@themaw.net>
|
||
|
|
||
|
Fix incorrect variable name used for test of buffer size for getgrgid_r.
|
||
|
---
|
||
|
lib/mounts.c | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/lib/mounts.c b/lib/mounts.c
|
||
|
index 550445c..0caa0aa 100644
|
||
|
--- a/lib/mounts.c
|
||
|
+++ b/lib/mounts.c
|
||
|
@@ -1222,7 +1222,7 @@ void set_tsd_user_vars(unsigned int logopt, uid_t uid, gid_t gid)
|
||
|
/* Try to get group info */
|
||
|
|
||
|
grplen = sysconf(_SC_GETGR_R_SIZE_MAX);
|
||
|
- if (tmplen < 0) {
|
||
|
+ if (grplen < 0) {
|
||
|
error(logopt, "failed to get buffer size for getgrgid_r");
|
||
|
goto free_tsv_home;
|
||
|
}
|