summaryrefslogtreecommitdiff
path: root/src/journal/test-journal-syslog.c
Commit message (Collapse)AuthorAgeFilesLines
* test-journal-syslog: Add some valid priority casesJan Janssen2022-03-161-11/+18
|
* test: Use TEST macros in more placesJan Janssen2022-03-161-26/+30
|
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* test-journal-syslog: initialize variableZbigniew Jędrzejewski-Szmek2018-09-251-1/+1
| | | | | | | The *priority argument to syslog_parse_priority() needs to be initialized if the last argument (with_facility) is false. CID #1394690.
* journald: take leading spaces into account in syslog_parse_identifierEvgeny Vereshchagin2018-08-101-0/+2
| | | | | This is a kind of follow-up to e88baee88fad8bc59d3 which should finally fix the issue which that commit was supposed to fix.
* journal: do not remove multiple spaces after identifier in syslog messageYu Watanabe2018-08-101-10/+14
| | | | | | | Single space is used as separator. C.f. discussions in #156. Fixes #9839 introduced by a6aadf4ae0bae185dc4c414d492a4a781c80ffe5.
* syslog: fix segfault in syslog_parse_priority()Yu Watanabe2018-08-081-0/+20
|
* journal: fix syslog_parse_identifier()Yu Watanabe2018-08-081-2/+8
| | | | Fixes #9829.
* tree-wide: remove Lennart's copyright linesLennart Poettering2018-06-141-3/+0
| | | | | | | | | | | These lines are generally out-of-date, incomplete and unnecessary. With SPDX and git repository much more accurate and fine grained information about licensing and authorship is available, hence let's drop the per-file copyright notice. Of course, removing copyright lines of others is problematic, hence this commit only removes my own lines and leaves all others untouched. It might be nicer if sooner or later those could go away too, making git the only and accurate source of authorship information.
* tree-wide: drop 'This file is part of systemd' blurbLennart Poettering2018-06-141-2/+0
| | | | | | | | | | | | | | | | This part of the copyright blurb stems from the GPL use recommendations: https://www.gnu.org/licenses/gpl-howto.en.html The concept appears to originate in times where version control was per file, instead of per tree, and was a way to glue the files together. Ultimately, we nowadays don't live in that world anymore, and this information is entirely useless anyway, as people are very welcome to copy these files into any projects they like, and they shouldn't have to change bits that are part of our copyright header for that. hence, let's just get rid of this old cruft, and shorten our codebase a bit.
* tree-wide: drop license boilerplateZbigniew Jędrzejewski-Szmek2018-04-061-13/+0
| | | | | | | | | | Files which are installed as-is (any .service and other unit files, .conf files, .policy files, etc), are left as is. My assumption is that SPDX identifiers are not yet that well known, so it's better to retain the extended header to avoid any doubt. I also kept any copyright lines. We can probably remove them, but it'd nice to obtain explicit acks from all involved authors before doing that.
* Add SPDX license identifiers to source files under the LGPLZbigniew Jędrzejewski-Szmek2017-11-191-0/+1
| | | | | This follows what the kernel is doing, c.f. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5fd54ace4721fc5ce2bb5aef6318fcf17f421460.
* tree-wide: remove Emacs lines from all filesDaniel Mack2016-02-101-2/+0
| | | | | This should be handled fine now by .dir-locals.el, so need to carry that stuff in every file.
* util-lib: split out allocation calls into alloc-util.[ch]Lennart Poettering2015-10-271-0/+1
|
* util-lib: split our string related calls from util.[ch] into its own file ↵Lennart Poettering2015-10-241-0/+1
| | | | | | | | | | | | | | string-util.[ch] There are more than enough calls doing string manipulations to deserve its own files, hence do something about it. This patch also sorts the #include blocks of all files that needed to be updated, according to the sorting suggestions from CODING_STYLE. Since pretty much every file needs our string manipulation functions this effectively means that most files have sorted #include blocks now. Also touches a few unrelated include files.
* tests: use assert_se instead of assertRonny Chevalier2014-11-301-3/+3
| | | | Otherwise they can be optimized away with -DNDEBUG
* test-journal-syslog: use streq_ptr since we pass in NULLThomas Hindoe Paaboel Andersen2013-12-151-2/+2
|
* move _cleanup_ attribute in front of the typeHarald Hoyer2013-04-181-1/+1
| | | | http://lists.freedesktop.org/archives/systemd-devel/2013-April/010510.html
* journal/tests: free allocated memory in testZbigniew Jędrzejewski-Szmek2013-03-051-1/+1
|
* use streq instead of strcmpThomas Hindoe Paaboel Andersen2013-02-131-2/+2
|
* journald: properly update message size after stripping the identifierZbigniew Jędrzejewski-Szmek2012-10-131-0/+44
Valgrind says: ==29176== Conditional jump or move depends on uninitialised value(s) ==29176== at 0x412A85: cunescape_length_with_prefix (util.c:1565) ==29176== by 0x40B351: dev_kmsg_record (journald-kmsg.c:301) ==29176== by 0x40B653: server_read_dev_kmsg (journald-kmsg.c:347) ==29176== by 0x40B701: server_flush_dev_kmsg (journald-kmsg.c:365) ==29176== by 0x409DE7: main (journald.c:1535)