]> git.ipfire.org Git - thirdparty/systemd.git/commit
tmpfiles: also add %t/%S/%C/%L specifiers
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 23 Nov 2017 12:56:32 +0000 (13:56 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 6 Dec 2017 09:30:26 +0000 (10:30 +0100)
commit5a8575ef01328a25253822cc2407e6baaf6d9e8a
tree9fd74601c0a74609984818c766c8edad4b4ca032
parentcfdda37c9fe0d28fd29a74b665072b92228d68f2
tmpfiles: also add %t/%S/%C/%L specifiers

sd_path_home() returns ENXIO when a variable (such as $XDG_RUNTIME_DIR) is not
defined. Previously we used ENOKEY for unresolvable specifiers. To avoid having
two codes, or translating ENXIO to ENOKEY, I replaced ENOKEY use with ENXIO.

v2:
- use sd_path_home and change to ENXIO everywhere
man/tmpfiles.d.xml
src/test/test-systemd-tmpfiles.py
src/tmpfiles/tmpfiles.c