src/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 4a978a5cfb04f221421ef367ddfb32966e4d5fc6
Author: David Teigland <teigland(a)redhat.com>
Date: Fri Jun 12 16:29:48 2015 -0500
sanlock: fix previous commit for uid/uname
diff --git a/src/main.c b/src/main.c
index c27e4e7..d8a01ab 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2332,6 +2332,7 @@ static void read_config_file(void)
} else if (!strcmp(str, "uname")) {
memset(str, 0, sizeof(str));
get_val_str(line, str);
+ com.uname = strdup(str);
com.uid = user_to_uid(str);
} else if (!strcmp(str, "gname")) {
@@ -2343,7 +2344,6 @@ static void read_config_file(void)
} 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