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

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