Systemd/src/journal
Zbigniew Jędrzejewski-Szmek 37cbc1d579 When mangling names, optionally emit a warning (#8400)
The warning is not emitted for absolute paths like /dev/sda or /home, which are
converted to .device and .mount unit names without any fuss.

Most of the time it's unlikely that users use invalid unit names on purpose,
so let's warn them. Warnings are silenced when --quiet is used.

$ build/systemctl show -p Id hello@foo-bar/baz
Invalid unit name "hello@foo-bar/baz" was escaped as "hello@foo-bar-baz" (maybe you should use systemd-escape?)
Id=hello@foo-bar-baz.service

$ build/systemd-run --user --slice foo-bar/baz --unit foo-bar/foo true
Invalid unit name "foo-bar/foo" was escaped as "foo-bar-foo" (maybe you should use systemd-escape?)
Invalid unit name "foo-bar/baz" was escaped as "foo-bar-baz" (maybe you should use systemd-escape?)
Running as unit: foo-bar-foo.service

Fixes #8302.
2018-03-21 15:26:47 +01:00
..
audit-type.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
audit-type.h tree-wide: make use of new STRLEN() macro everywhere (#7639) 2017-12-14 19:02:29 +01:00
audit_type-to-name.awk meson: also indent scripts with 8 spaces 2017-04-25 08:49:16 -04:00
cat.c tree-wide: port various places over to use new rearrange_stdio() 2018-03-02 11:42:10 +01:00
catalog.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
catalog.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
compress.c journal: avoid undefined behaviour in float division by 0.0 2017-11-28 21:34:50 +01:00
compress.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
fsprg.c Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
fsprg.h Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
generate-audit_type-list.sh separate flags from shebang 2017-12-25 19:48:49 +01:00
journal-authenticate.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journal-authenticate.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journal-def.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journal-file.c Merge pull request #8508 from poettering/more-cocci 2018-03-21 12:50:49 +01:00
journal-file.h Merge pull request #8313 from alexgartrell/compression-threshold 2018-03-21 12:37:54 +01:00
journal-internal.h sd-journal: properly handle inotify queue overflow 2018-02-12 11:07:55 +01:00
journal-qrcode.c tree-wide: use __fsetlocking() instead of fxyz_unlocked() 2017-12-14 10:42:25 +01:00
journal-qrcode.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journal-send.c journal: cast to (void) where we knowingly ignore syscall returns 2018-01-23 19:07:13 +01:00
journal-vacuum.c coredump,journal: when vacuuming use new unlinkat_deallocate() calls 2018-02-12 11:27:11 +01:00
journal-vacuum.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journal-verify.c journal: don't insist that the journal file header's boot ID matches the last entry 2018-03-20 23:31:11 +01:00
journal-verify.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journalctl.c When mangling names, optionally emit a warning (#8400) 2018-03-21 15:26:47 +01:00
journald-audit.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-audit.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-console.c tree-wide: make use of new STRLEN() macro everywhere (#7639) 2017-12-14 19:02:29 +01:00
journald-console.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-context.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-context.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-gperf.gperf journal: make the compression threshold tunable 2018-03-20 14:54:07 -07:00
journald-kmsg.c journal: avoid code that relies on LOG_KERN == 0 (#8110) 2018-02-08 09:14:32 +01:00
journald-kmsg.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-native.c journald-native: Fix typo in MANDLOCK message 2018-01-22 12:27:09 +01:00
journald-native.h journal: drop left-over header line 2018-02-23 00:13:52 +01:00
journald-rate-limit.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-rate-limit.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-server.c journal: make the compression threshold tunable 2018-03-20 14:54:07 -07:00
journald-server.h journal: make the compression threshold tunable 2018-03-20 14:54:07 -07:00
journald-stream.c Add some handling to remaining unlinkat calls 2018-02-19 15:00:00 +01:00
journald-stream.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-syslog.c tree-wide: make use of new STRLEN() macro everywhere (#7639) 2017-12-14 19:02:29 +01:00
journald-syslog.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-wall.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald-wall.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
journald.c log: remove LOG_TARGET_SAFE pseudo log target 2018-01-24 18:22:56 +01:00
journald.conf journald: make maximum size of stream log lines configurable and bump it to 48K (#6838) 2017-09-22 10:22:24 +02:00
lookup3.c journal/lookup3: silence gcc 7 implicit-fallthrough warning 2017-01-31 14:04:55 -05:00
lookup3.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
meson.build meson: Multi-lines string should use ''' with meson (#8225) 2018-02-20 10:36:41 +09:00
mmap-cache.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
mmap-cache.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
sd-journal.c journal: provide compress_threshold_bytes parameter 2018-03-20 11:48:52 -07:00
test-audit-type.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-catalog.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-compress-benchmark.c log: minimize includes in log.h 2018-01-11 14:44:31 +01:00
test-compress.c test: handle gracefully if decompressor tools are not installed (#7455) 2017-11-24 14:08:51 +01:00
test-journal-config.c journal: make the compression threshold tunable 2018-03-20 14:54:07 -07:00
test-journal-enum.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-journal-flush.c journal: provide compress_threshold_bytes parameter 2018-03-20 11:48:52 -07:00
test-journal-init.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-journal-interleaving.c journal: provide compress_threshold_bytes parameter 2018-03-20 11:48:52 -07:00
test-journal-match.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-journal-send.c tree-wide: make use of new STRLEN() macro everywhere (#7639) 2017-12-14 19:02:29 +01:00
test-journal-stream.c journal: provide compress_threshold_bytes parameter 2018-03-20 11:48:52 -07:00
test-journal-syslog.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
test-journal-verify.c journal: provide compress_threshold_bytes parameter 2018-03-20 11:48:52 -07:00
test-journal.c journal: provide compress_threshold_bytes parameter 2018-03-20 11:48:52 -07:00
test-mmap-cache.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00