[PATCH 1/2] Properly parse uidgid files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




Full path to key is now tested rather then key name only.

Signed-off-by: Jan Friesse <jfriesse@xxxxxxxxxx>
---
 exec/coroparse.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/exec/coroparse.c b/exec/coroparse.c
index c316e41..490f4bf 100644
--- a/exec/coroparse.c
+++ b/exec/coroparse.c
@@ -966,7 +966,7 @@ static int uidgid_config_parser_cb(const char *path,
 			snprintf(key_name, ICMAP_KEYNAME_MAXLEN, "uidgid.uid.%u",
 					uid);
 			icmap_set_uint8(key_name, 1);
-		} else if (strcmp(key, "uidgid.gid") == 0) {
+		} else if (strcmp(path, "uidgid.gid") == 0) {
 			gid = gid_determine(value);
 			if (gid == -1) {
 				*error_string = error_string_response;
-- 
1.7.1

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Corosync Project]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Free Online Dating]     [Linux Kernel]     [Linux SCSI]     [XFree86]

Add to Google Powered by Linux