src/main.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 911a9d9cedd81a92dd23d0acf55ae6c516602485
Author: David Teigland <teigland(a)redhat.com>
Date: Fri Jun 12 15:55:02 2015 -0500
sanlock: fix config file setting of uname/gname
The -U/-G options set both uname/gname and uid/gid.
diff --git a/src/main.c b/src/main.c
index 8a2fc7a..c27e4e7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2337,11 +2337,13 @@ static void read_config_file(void)
} else if (!strcmp(str, "gname")) {
memset(str, 0, sizeof(str));
get_val_str(line, str);
+ com.gname = strdup(str);
com.gid = group_to_gid(str);
} else if (!strcmp(str, "our_host_name")) {
memset(str, 0, sizeof(str));
get_val_str(line, str);
+ com.uname = strdup(str);
strncpy(com.our_host_name, str, NAME_ID_SIZE);
}
}
Show replies by date