Skip to content

Commit

Permalink
Merge pull request #1593 from ddpbsd/perm_chg
Browse files Browse the repository at this point in the history
Allow permission changes to make it into the email alert.
  • Loading branch information
atomicturtle authored Dec 11, 2018
2 parents 799b43d + 8312d24 commit 814b47c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/os_maild/os_maild_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,16 @@ MailMsg *OS_RecvMailQ(file_queue *fileq, struct tm *p,
body_size -= log_size;
}
}
if (al_data->perm_chg) {
log_size = strlen(al_data->perm_chg) + 17 + 4;
if (body_size > log_size) {
strncat(logs, "Permission change: ", 20);
strncat(logs, al_data->perm_chg, body_size);
strncat(logs, "\r\n", 4);
body_size -= log_size;
}
}


/* EXTRA DATA */
if (al_data->srcip) {
Expand Down

0 comments on commit 814b47c

Please sign in to comment.