diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-10-03 11:37:44 -0400 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-10-03 11:55:38 -0400 |
commit | 1dfa7e79a60de680086b1d93fcc3629b463f58bd (patch) | |
tree | 288401e1a12f4bf633ae7725e7cb0d09201768e2 /src/journal/test-journal-send.c | |
parent | 08f9588885c5d65694b324846b0ed19211d2c178 (diff) |
journald: only accept fds from certain directories
Diffstat (limited to 'src/journal/test-journal-send.c')
-rw-r--r-- | src/journal/test-journal-send.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/journal/test-journal-send.c b/src/journal/test-journal-send.c index e708fa4406..168c84365b 100644 --- a/src/journal/test-journal-send.c +++ b/src/journal/test-journal-send.c @@ -24,6 +24,8 @@ #include "log.h" int main(int argc, char *argv[]) { + char huge[4096*1024]; + log_set_max_level(LOG_DEBUG); sd_journal_print(LOG_INFO, "piepapo"); @@ -37,5 +39,13 @@ int main(int argc, char *argv[]) { sd_journal_perror(""); + memset(huge, 'x', sizeof(huge)); + memcpy(huge, "HUGE=", 5); + char_array_0(huge); + + sd_journal_send("MESSAGE=Huge field attached", + huge, + NULL); + return 0; } |