Commit fb088de5 authored by Philipp Schafft's avatar Philipp Schafft 🦁
Browse files

Fix: only export name="" on <role> if set

parent 4c429ab0
......@@ -878,6 +878,7 @@ static xmlNodePtr _dump_stats_to_doc (xmlNodePtr root, const char *show_mount, i
snprintf(idbuf, sizeof(idbuf), "%lu", auth->id);
role = xmlNewTextChild(authentication, NULL, XMLSTR("role"), NULL);
xmlSetProp(role, XMLSTR("id"), XMLSTR(idbuf));
if (auth->role)
xmlSetProp(role, XMLSTR("name"), XMLSTR(auth->role));
auth_release(auth);
auth_stack_next(&stack);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment