We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e1a85e commit 4d8cd82Copy full SHA for 4d8cd82
lib/audit_help.c
@@ -96,20 +96,12 @@ audit_logger_with_group(int type, const char *op, const char *name,
96
id_t id, const char *grp_type, const char *grp,
97
shadow_audit_result result)
98
{
99
- int len;
100
- char enc_group[GROUP_NAME_MAX_LENGTH * 2 + 1];
101
- char buf[countof(enc_group) + 100];
+ char buf[GROUP_NAME_MAX_LENGTH + 100];
102
103
if (audit_fd < 0)
104
return;
105
106
- len = strnlen(grp, sizeof(enc_group)/2);
107
- if (audit_value_needs_encoding(grp, len)) {
108
- SNPRINTF(buf, "%s %s=%s", op, grp_type,
109
- audit_encode_value(enc_group, grp, len));
110
- } else {
111
- SNPRINTF(buf, "%s %s=\"%s\"", op, grp_type, grp);
112
- }
+ SNPRINTF(buf, "%s %s=\"%s\"", op, grp_type, grp);
113
114
audit_log_acct_message(audit_fd, type, NULL, buf, name, id,
115
NULL, NULL, NULL, result);
0 commit comments