Blame SOURCES/autofs-5.0.7-fix-incorrect-name-in-test.patch

306fa1
autofs-5.0.7 - fix incorrect var name in test
306fa1
306fa1
From: Ian Kent <raven@themaw.net>
306fa1
306fa1
Fix incorrect variable name used for test of buffer size for getgrgid_r.
306fa1
---
306fa1
 lib/mounts.c |    2 +-
306fa1
 1 file changed, 1 insertion(+), 1 deletion(-)
306fa1
306fa1
diff --git a/lib/mounts.c b/lib/mounts.c
306fa1
index 550445c..0caa0aa 100644
306fa1
--- a/lib/mounts.c
306fa1
+++ b/lib/mounts.c
306fa1
@@ -1222,7 +1222,7 @@ void set_tsd_user_vars(unsigned int logopt, uid_t uid, gid_t gid)
306fa1
 	/* Try to get group info */
306fa1
 
306fa1
 	grplen = sysconf(_SC_GETGR_R_SIZE_MAX);
306fa1
-	if (tmplen < 0) {
306fa1
+	if (grplen < 0) {
306fa1
 		error(logopt, "failed to get buffer size for getgrgid_r");
306fa1
 		goto free_tsv_home;
306fa1
 	}