Procházet zdrojové kódy

Properly parse uidgid files

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

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Fabio M. Di Nitto <fdinitto@redhat.com>
Jan Friesse před 14 roky
rodič
revize
92ead6106f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      exec/coroparse.c

+ 1 - 1
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",
 			snprintf(key_name, ICMAP_KEYNAME_MAXLEN, "uidgid.uid.%u",
 					uid);
 					uid);
 			icmap_set_uint8(key_name, 1);
 			icmap_set_uint8(key_name, 1);
-		} else if (strcmp(key, "uidgid.gid") == 0) {
+		} else if (strcmp(path, "uidgid.gid") == 0) {
 			gid = gid_determine(value);
 			gid = gid_determine(value);
 			if (gid == -1) {
 			if (gid == -1) {
 				*error_string = error_string_response;
 				*error_string = error_string_response;