Blame singularity-Fix-variable-reference.patch

57c479
From 3e693d7319f8eb83886223db4804b38bac66d1f2 Mon Sep 17 00:00:00 2001
57c479
From: Dave Love <dave.love@manchester.ac.uk>
57c479
Date: Sun, 14 May 2017 17:30:31 +0100
57c479
Subject: [PATCH 05/30] Fix variable reference
57c479
57c479
---
57c479
 src/lib/file/group/group.c | 2 +-
57c479
 1 file changed, 1 insertion(+), 1 deletion(-)
57c479
57c479
diff --git a/src/lib/file/group/group.c b/src/lib/file/group/group.c
57c479
index ffee669a..8aebcfd0 100644
57c479
--- a/src/lib/file/group/group.c
57c479
+++ b/src/lib/file/group/group.c
57c479
@@ -137,7 +137,7 @@ int singularity_file_group(void) {
57c479
             struct group *gr = getgrgid(gids[i]);
57c479
             if ( gr ) {
57c479
                 singularity_message(VERBOSE3, "Found supplementary group membership in: %d\n", gids[i]);
57c479
-                singularity_message(VERBOSE2, "Adding user's supplementary group ('%s') info to template group file\n", grent->gr_name);
57c479
+                singularity_message(VERBOSE2, "Adding user's supplementary group ('%s') info to template group file\n", gr->gr_name);
57c479
                 fprintf(file_fp, "%s:x:%u:%s\n", gr->gr_name, gr->gr_gid, pwent->pw_name);
57c479
             } else if ( (errno == 0) || (errno == ESRCH) || (errno == EBADF) || (errno == EPERM) || (errno == ENOENT)) {
57c479
                 singularity_message(VERBOSE3, "Skipping GID %d as group entry does not exist.\n", gids[i]);
57c479
-- 
57c479
2.11.0
57c479