]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
6 years agocore: undo the dependency inversion between unit.h and all unit types 9005/head
Felipe Sateler [Tue, 15 May 2018 18:17:34 +0000 (14:17 -0400)] 
core: undo the dependency inversion between unit.h and all unit types

6 years agocore: Break circular dependency between unit.h and cgroup.h
Felipe Sateler [Tue, 15 May 2018 18:12:22 +0000 (14:12 -0400)] 
core: Break circular dependency between unit.h and cgroup.h

6 years agoudev: create /dev/disk/by-label symlink for LUKS2 (#8998)
Milan Broz [Tue, 15 May 2018 14:51:07 +0000 (16:51 +0200)] 
udev: create /dev/disk/by-label symlink for LUKS2 (#8998)

LUKS2 header supports to device label and blkid since 2.32 version
already supports this option.

Persistent udev storage rules should create symlink for this label.

For older devices this value is not set so changed rule should be compatible.

6 years agosysusers: drop an unused variable
Yu Watanabe [Tue, 15 May 2018 11:44:15 +0000 (20:44 +0900)] 
sysusers: drop an unused variable

Follow-up for ec0327d69c260d9a3770e9d722dbdcde996651cc.

6 years agoservice: FileDescriptorStoreMax should also imply NotifyAccess
Alan Jenkins [Mon, 14 May 2018 14:45:09 +0000 (15:45 +0100)] 
service: FileDescriptorStoreMax should also imply NotifyAccess

Commenting out "WatchdogTimeout=3min" in systemd-logind.service causes
NotifyAccess to go from "main" to "none", breaking support for logind
restart.  Let's fix that.

6 years agobash-completion: add missing options and commands of timedatectl
Yu Watanabe [Tue, 15 May 2018 08:31:32 +0000 (17:31 +0900)] 
bash-completion: add missing options and commands of timedatectl

Follow-up for 6129ec852ee470a3682d55f87852ee7ccabb5520.

6 years agoMerge pull request #8947 from yuwata/meson-0.44
Zbigniew Jędrzejewski-Szmek [Tue, 15 May 2018 06:58:33 +0000 (08:58 +0200)] 
Merge pull request #8947 from yuwata/meson-0.44

meson: bump minimum required version to 0.44

6 years agoman: fix reference in StandardOutput=
Lucas Werkmeister [Fri, 11 May 2018 22:00:50 +0000 (00:00 +0200)] 
man: fix reference in StandardOutput=

Since StandardOutput=file:path is more similar to StandardInput= than
StandardInputText=, and only StandardInput= is actually documented above
StandardOutput= whereas StandardInputText= is documented below it, I
assume the intention was to refer to the former.

6 years agoMerge pull request #8986 from yuwata/sd-bus-free-and-strdup
Zbigniew Jędrzejewski-Szmek [Mon, 14 May 2018 06:10:46 +0000 (08:10 +0200)] 
Merge pull request #8986 from yuwata/sd-bus-free-and-strdup

several cleanups

6 years agotest: use _cleanup_hashmap_free_ instread of _cleanup_(hashmap_freep) 8986/head
Yu Watanabe [Mon, 14 May 2018 05:14:17 +0000 (14:14 +0900)] 
test: use _cleanup_hashmap_free_ instread of _cleanup_(hashmap_freep)

6 years agocore: use _cleanup_set_free_ instread of _cleanup_(set_freep)
Yu Watanabe [Mon, 14 May 2018 05:13:57 +0000 (14:13 +0900)] 
core: use _cleanup_set_free_ instread of _cleanup_(set_freep)

6 years agosd-bus: use free_and_strdup()
Yu Watanabe [Mon, 14 May 2018 05:09:03 +0000 (14:09 +0900)] 
sd-bus: use free_and_strdup()

6 years agoMerge pull request #8968 from yuwata/bus-macro-2
Zbigniew Jędrzejewski-Szmek [Sun, 13 May 2018 17:12:27 +0000 (19:12 +0200)] 
Merge pull request #8968 from yuwata/bus-macro-2

bus-util: add several macros for defining functions of getting dbus properties

6 years agoman: drop a trailing space
Yu Watanabe [Sun, 13 May 2018 13:10:48 +0000 (22:10 +0900)] 
man: drop a trailing space

6 years agotest: add tests for unit_name_from_dbus_path()
Yu Watanabe [Sun, 13 May 2018 13:09:18 +0000 (22:09 +0900)] 
test: add tests for unit_name_from_dbus_path()

6 years agoMerge pull request #8962 from floppym/issue8905
Zbigniew Jędrzejewski-Szmek [Sun, 13 May 2018 16:43:11 +0000 (18:43 +0200)] 
Merge pull request #8962 from floppym/issue8905

basic: timezone_is_valid: check for magic bytes "TZif"

6 years agodbus-manager: introduce property_get_{hashmap,set}_size() 8968/head
Yu Watanabe [Fri, 11 May 2018 09:29:39 +0000 (18:29 +0900)] 
dbus-manager: introduce property_get_{hashmap,set}_size()

6 years agodbus-unit: check userdata before obtaining data
Yu Watanabe [Fri, 11 May 2018 09:12:12 +0000 (18:12 +0900)] 
dbus-unit: check userdata before obtaining data

6 years agodbus-unit: use BUS_DEFINE_PROPERTY_GET* macros
Yu Watanabe [Fri, 11 May 2018 09:11:18 +0000 (18:11 +0900)] 
dbus-unit: use BUS_DEFINE_PROPERTY_GET* macros

6 years agodbus-swap: use BUS_DEFINE_PROPERTY_GET* macros
Yu Watanabe [Fri, 11 May 2018 09:10:25 +0000 (18:10 +0900)] 
dbus-swap: use BUS_DEFINE_PROPERTY_GET* macros

6 years agodbus-socket: use BUS_DEFINE_PROPERTY_GET* macros
Yu Watanabe [Fri, 11 May 2018 09:10:03 +0000 (18:10 +0900)] 
dbus-socket: use BUS_DEFINE_PROPERTY_GET* macros

6 years agodbus-mount: use BUS_DEFINE_PROPERTY_GET* macros
Yu Watanabe [Fri, 11 May 2018 09:09:40 +0000 (18:09 +0900)] 
dbus-mount: use BUS_DEFINE_PROPERTY_GET* macros

6 years agodbus-manager: use BUS_DEFINE_PROPERTY_GET* macros
Yu Watanabe [Fri, 11 May 2018 09:09:15 +0000 (18:09 +0900)] 
dbus-manager: use BUS_DEFINE_PROPERTY_GET* macros

6 years agodbus-execute: use BUS_DEFINE_PROPERTY_GET* macros
Yu Watanabe [Fri, 11 May 2018 09:21:04 +0000 (18:21 +0900)] 
dbus-execute: use BUS_DEFINE_PROPERTY_GET* macros

6 years agobus-util: add several macros for defining functions of getting dbus properties
Yu Watanabe [Sun, 13 May 2018 03:20:51 +0000 (12:20 +0900)] 
bus-util: add several macros for defining functions of getting dbus properties

6 years agobasic: add log_level argument to timezone_is_valid 8962/head
Mike Gilbert [Sat, 12 May 2018 19:20:13 +0000 (15:20 -0400)] 
basic: add log_level argument to timezone_is_valid

6 years agoMerge pull request #8959 from yuwata/bash-completion-analyze
Zbigniew Jędrzejewski-Szmek [Sat, 12 May 2018 16:58:05 +0000 (18:58 +0200)] 
Merge pull request #8959 from yuwata/bash-completion-analyze

bash-completion: update completion for systemd-analyze

6 years agoMerge pull request #8966 from yuwata/bus-resolve-fallback-dns
Zbigniew Jędrzejewski-Szmek [Sat, 12 May 2018 16:48:58 +0000 (18:48 +0200)] 
Merge pull request #8966 from yuwata/bus-resolve-fallback-dns

resolve: add bus property for fallback DNS servers

6 years agocore: use automatic cleanup more
David Tardon [Fri, 11 May 2018 16:43:40 +0000 (18:43 +0200)] 
core: use automatic cleanup more

6 years agopo: uk: fixed missed word
Mikhail Kasimov [Sat, 12 May 2018 14:02:44 +0000 (17:02 +0300)] 
po: uk: fixed missed word

updated uk-translation for 'network time synchronization' construction.

6 years agoUpdated uk translation
Danylo Korostil [Fri, 11 May 2018 21:16:26 +0000 (00:16 +0300)] 
Updated uk translation

6 years agobasic: timezone_is_valid: check for magic bytes "TZif"
Mike Gilbert [Thu, 10 May 2018 19:10:48 +0000 (15:10 -0400)] 
basic: timezone_is_valid: check for magic bytes "TZif"

Fixes: https://github.com/systemd/systemd/issues/8905
6 years agosystemd-analyze: make dump work for large # of units
David Tardon [Wed, 9 May 2018 07:35:52 +0000 (09:35 +0200)] 
systemd-analyze: make dump work for large # of units

If there is a large number of units, the size of the generated dump
string can overstep DBus message size limit. So let's pass that string
via a fd.

6 years agoman: Fix a minor typo in systemctl(1)
Philip Withnall [Fri, 11 May 2018 09:58:00 +0000 (10:58 +0100)] 
man: Fix a minor typo in systemctl(1)

Signed-off-by: Philip Withnall <withnall@endlessm.com>
6 years agoMerge pull request #8924 from yuwata/fix-3682
Zbigniew Jędrzejewski-Szmek [Fri, 11 May 2018 09:48:05 +0000 (11:48 +0200)] 
Merge pull request #8924 from yuwata/fix-3682

resolve: allow whitespaces in the digest

6 years agoMerge pull request #8961 from yuwata/fix-8960
Zbigniew Jędrzejewski-Szmek [Fri, 11 May 2018 08:40:18 +0000 (10:40 +0200)] 
Merge pull request #8961 from yuwata/fix-8960

network: make route_update() accept NULL

6 years agoresolvectl: show current DNS server only when it is set 8966/head
Yu Watanabe [Fri, 11 May 2018 07:12:57 +0000 (16:12 +0900)] 
resolvectl: show current DNS server only when it is set

6 years agoresolvectl: show fallback DNS servers by status command
Yu Watanabe [Fri, 11 May 2018 07:12:17 +0000 (16:12 +0900)] 
resolvectl: show fallback DNS servers by status command

6 years agoresolve: introduce FallbackDNS bus property
Yu Watanabe [Fri, 11 May 2018 07:03:17 +0000 (16:03 +0900)] 
resolve: introduce FallbackDNS bus property

This also makes DNS bus property not include the fallback DNS servers.

6 years agonetwork: make route_update() accept NULL 8961/head
Yu Watanabe [Fri, 11 May 2018 06:43:04 +0000 (15:43 +0900)] 
network: make route_update() accept NULL

This also fixes a wrong argument for route_configure().

Fixes #8960.

6 years agonetwork: fix indentation
Yu Watanabe [Fri, 11 May 2018 03:36:15 +0000 (12:36 +0900)] 
network: fix indentation

6 years agotmpfiles: remove newline that shouldn't be there
Lennart Poettering [Thu, 10 May 2018 18:29:11 +0000 (11:29 -0700)] 
tmpfiles: remove newline that shouldn't be there

We should really keep "else" branches together with their "if", hence
drop the double newline here...

6 years agoterminal-util: add a function that shows a pretty separator line
Lennart Poettering [Thu, 10 May 2018 18:28:33 +0000 (11:28 -0700)] 
terminal-util: add a function that shows a pretty separator line

Follow-up for #8824

6 years agotest: do not call alloca() inside the list of arguments 8924/head
Yu Watanabe [Fri, 11 May 2018 06:01:35 +0000 (15:01 +0900)] 
test: do not call alloca() inside the list of arguments

6 years agoMerge pull request #8953 from yuwata/bus-macro
Lennart Poettering [Fri, 11 May 2018 05:51:17 +0000 (22:51 -0700)] 
Merge pull request #8953 from yuwata/bus-macro

core: simplify dbus properties

6 years agotest-execute: remove state directories before running tests
Yu Watanabe [Thu, 10 May 2018 14:17:50 +0000 (23:17 +0900)] 
test-execute: remove state directories before running tests

Fixes #8679.

6 years agounits: set RestrictNamespaces=yes to networkd and resolved
Yu Watanabe [Thu, 10 May 2018 15:17:38 +0000 (00:17 +0900)] 
units: set RestrictNamespaces=yes to networkd and resolved

Closes #8949.

6 years agosd-dhcp: drop deserialize_dhcp_option() as it is equivalent to unhexmem()
Yu Watanabe [Fri, 11 May 2018 05:44:03 +0000 (14:44 +0900)] 
sd-dhcp: drop deserialize_dhcp_option() as it is equivalent to unhexmem()

6 years agoresolve: allow whitespaces in the DS digest or DNSKEY key data
Yu Watanabe [Wed, 9 May 2018 03:50:27 +0000 (12:50 +0900)] 
resolve: allow whitespaces in the DS digest or DNSKEY key data

Fixes #3682.

6 years agohexdecoct: drop an unnecessary check
Yu Watanabe [Fri, 11 May 2018 04:56:28 +0000 (13:56 +0900)] 
hexdecoct: drop an unnecessary check

6 years agobasic: fix comment style
Yu Watanabe [Fri, 11 May 2018 04:55:28 +0000 (13:55 +0900)] 
basic: fix comment style

6 years agohexdecoct: ignore whitespace within the input hexadecimal text of unhexmem()
Yu Watanabe [Fri, 11 May 2018 05:36:22 +0000 (14:36 +0900)] 
hexdecoct: ignore whitespace within the input hexadecimal text of unhexmem()

6 years agotest: add testcase for environment file variables with backslashes
Joost Heitbrink [Thu, 10 May 2018 13:28:10 +0000 (15:28 +0200)] 
test: add testcase for environment file variables with backslashes

systemd silently strips out backslashes in variables from environment
files. Add a testcase that explicitly tests for this behaviour.

6 years agoMerge pull request #8964 from MikhailKasimov/patch-2
Yu Watanabe [Fri, 11 May 2018 03:42:46 +0000 (12:42 +0900)] 
Merge pull request #8964 from MikhailKasimov/patch-2

man: systemd-journal-upload: rsa 2048

6 years agoUpdate systemd-journal-upload.service.xml 8964/head
Mikhail Kasimov [Thu, 10 May 2018 23:43:00 +0000 (02:43 +0300)] 
Update systemd-journal-upload.service.xml

Security note on 2048 bits is added.

6 years agoman: systemd-journal-upload: rsa 2048
Mikhail Kasimov [Thu, 10 May 2018 23:17:27 +0000 (02:17 +0300)] 
man: systemd-journal-upload: rsa 2048

rsa:2048 is currently in use as minimal recommended key length on cert/key generating. Specifying rsa:1024 is not recommended for security reasons.

6 years agobash-completion: analyze: support cat-config verb 8959/head
Yu Watanabe [Thu, 10 May 2018 19:11:56 +0000 (04:11 +0900)] 
bash-completion: analyze: support cat-config verb

Follow-up for 854a42fb2e9db1b9eaa381559d7671f2e9b3a0f1.

6 years agobash-completion: analyze: add --no-pager for some verbs
Yu Watanabe [Thu, 10 May 2018 18:33:55 +0000 (03:33 +0900)] 
bash-completion: analyze: add --no-pager for some verbs

6 years agoMerge pull request #8824 from keszybz/analyze-show-config
Lennart Poettering [Thu, 10 May 2018 18:14:23 +0000 (11:14 -0700)] 
Merge pull request #8824 from keszybz/analyze-show-config

systemd-analyze show-config

6 years agomtd: some basic code cleanups
Lennart Poettering [Tue, 24 Apr 2018 15:50:01 +0000 (17:50 +0200)] 
mtd: some basic code cleanups

While looking at our exit() invocations I noticed that the mtd_probe
stuff uses 'exit(-1)' at various places, which is not really a good
idea, as exit codes of processes on Linux are supposed to be in the
range of 0…255.

This patch cleans that up a bit, and fixes a number of other things:

1. Let's always let main() exit, nothing intermediary. We generally
   don't like code that invokes exit() on its own.

2. Close the file descriptors opened.

3. Some logging for errors is added, mostly on debug level.

Please review this with extra care. As I don't have the right hardware
to test this patch I only did superficial testing.

6 years agoNetworkd tests: add bridge link properties to test
Susant Sahani [Sun, 29 Apr 2018 04:02:22 +0000 (09:32 +0530)] 
Networkd tests: add bridge link properties to test

Test the "[Bridge]" section keys

```
[Bridge]
UnicastFlood=true
HairPin=true
UseBPDU=true
FastLeave=true
AllowPortToBeRoot=true
Cost=555
Priority=23
```

```
test_bridge_init (__main__.BridgeTest) ... ok
test_bridge_port_priority (__main__.BridgeTest) ... ok
test_bridge_port_priority_set_zero (__main__.BridgeTest)
It should be possible to set the bridge port priority to 0 ... ok
test_bridge_port_property (__main__.BridgeTest)
Test the "[Bridge]" section keys ... ok

```

6 years agoman: journal-gatewayd.service: links on {rem,upl}
Mikhail Kasimov [Thu, 10 May 2018 16:58:12 +0000 (19:58 +0300)] 
man: journal-gatewayd.service: links on {rem,upl}

While set of systemd-journal-{gatewayd,remote,upload}.service services presents single subsystem on journald logs network transmission, systemd-journal-gatewayd.service description should also contain links to other parts of this subsystem: systemd-journal-remote.service and systemd-journal-upload.service.

6 years agostring-util: rename strdash_if_empty() to empty_to_dash() 8953/head
Yu Watanabe [Thu, 10 May 2018 16:55:46 +0000 (01:55 +0900)] 
string-util: rename strdash_if_empty() to empty_to_dash()

6 years agopath-util: introduce empty_to_root() and use it many places
Yu Watanabe [Thu, 10 May 2018 16:47:33 +0000 (01:47 +0900)] 
path-util: introduce empty_to_root() and use it many places

6 years agocore: merge duplicated functions
Yu Watanabe [Thu, 10 May 2018 16:41:06 +0000 (01:41 +0900)] 
core: merge duplicated functions

6 years agocore: send NULL instead of empty string
Yu Watanabe [Thu, 10 May 2018 16:22:49 +0000 (01:22 +0900)] 
core: send NULL instead of empty string

6 years agocore: use offsetof() for Syslog{Level,Facility} dbus properties
Yu Watanabe [Thu, 10 May 2018 15:39:52 +0000 (00:39 +0900)] 
core: use offsetof() for Syslog{Level,Facility} dbus properties

6 years agoMerge pull request #8950 from dtardon/cleanup
Zbigniew Jędrzejewski-Szmek [Thu, 10 May 2018 15:23:40 +0000 (17:23 +0200)] 
Merge pull request #8950 from dtardon/cleanup

use automatic cleanup more

6 years agogithub: use multiple issue templates
Zbigniew Jędrzejewski-Szmek [Thu, 10 May 2018 07:01:22 +0000 (09:01 +0200)] 
github: use multiple issue templates

Github now has issue templates in the web interface, and allows
more than one to be specified. Let's split our single template
in two: bug report and RFE.

6 years agoMerge pull request #8943 from keszybz/coverity-fixes
Yu Watanabe [Thu, 10 May 2018 14:22:38 +0000 (23:22 +0900)] 
Merge pull request #8943 from keszybz/coverity-fixes

Coverity fixes

6 years agocore: use bus_property_get_*() functions instead of NULL
Yu Watanabe [Thu, 10 May 2018 14:02:57 +0000 (23:02 +0900)] 
core: use bus_property_get_*() functions instead of NULL

6 years agosd-bus: use automatic cleanup more 8950/head
David Tardon [Thu, 10 May 2018 13:55:56 +0000 (15:55 +0200)] 
sd-bus: use automatic cleanup more

6 years agocore: drop property_get_syscall_errno()
Yu Watanabe [Thu, 10 May 2018 13:36:13 +0000 (22:36 +0900)] 
core: drop property_get_syscall_errno()

6 years agocore: drop property_get_{capability_bounding_set,ambient_capabilities}()
Yu Watanabe [Thu, 10 May 2018 13:31:47 +0000 (22:31 +0900)] 
core: drop property_get_{capability_bounding_set,ambient_capabilities}()

6 years agocore: use BUS_DEFINE_PROPERTY_GET_ENUM() macro
Yu Watanabe [Thu, 10 May 2018 13:26:59 +0000 (22:26 +0900)] 
core: use BUS_DEFINE_PROPERTY_GET_ENUM() macro

6 years agocore: drop 'bus_' prefix from bus_property_get_protect_{home,system}()
Yu Watanabe [Thu, 10 May 2018 13:26:27 +0000 (22:26 +0900)] 
core: drop 'bus_' prefix from bus_property_get_protect_{home,system}()

6 years agocore: simplify property_get_cpu_affinity()
Yu Watanabe [Thu, 10 May 2018 13:25:00 +0000 (22:25 +0900)] 
core: simplify property_get_cpu_affinity()

6 years agobasic: use automatic cleanup more
David Tardon [Thu, 10 May 2018 12:10:53 +0000 (14:10 +0200)] 
basic: use automatic cleanup more

6 years agobasic: use automatic cleanup more
David Tardon [Thu, 10 May 2018 12:08:35 +0000 (14:08 +0200)] 
basic: use automatic cleanup more

6 years agobasic: use automatic cleanup more
David Tardon [Thu, 10 May 2018 12:04:30 +0000 (14:04 +0200)] 
basic: use automatic cleanup more

6 years agojournal: use automatic cleanup more
David Tardon [Thu, 10 May 2018 11:42:36 +0000 (13:42 +0200)] 
journal: use automatic cleanup more

6 years agodoc: mention the required minimum version of meson and python 8947/head
Yu Watanabe [Thu, 10 May 2018 05:54:21 +0000 (14:54 +0900)] 
doc: mention the required minimum version of meson and python

6 years agomeson: use array type option
Yu Watanabe [Wed, 2 May 2018 04:56:28 +0000 (13:56 +0900)] 
meson: use array type option

Array type option is supported since 0.44.0.

6 years agomeson: use warning() method
Yu Watanabe [Thu, 10 May 2018 05:50:52 +0000 (14:50 +0900)] 
meson: use warning() method

This bumps the required minimum version of meson to 0.44, as
`warning()` method is supported since 0.44.

6 years agomeson: use get_supported_arguments()
Yu Watanabe [Thu, 10 May 2018 06:30:42 +0000 (15:30 +0900)] 
meson: use get_supported_arguments()

This bumps the required minimum version of meson to 0.43, as
`get_supported_arguments()` is supported since meson-0.43.

6 years agoman: systemd-networkd-wait-online: systemd.service (#8945)
Mikhail Kasimov [Thu, 10 May 2018 03:47:03 +0000 (06:47 +0300)] 
man: systemd-networkd-wait-online: systemd.service (#8945)

* man: systemd-networkd-wait-online: systemd.service

While service type is mentioned (is a oneshot system service), link on systemd.service is added. 'See Also' section is also updated with link on systemd.service man-page.

6 years agoman: systemd-escape: add missed short keys (#8944)
Mikhail Kasimov [Thu, 10 May 2018 03:15:55 +0000 (06:15 +0300)] 
man: systemd-escape: add missed short keys (#8944)

Added short keys -u and -m for --unescape and --mangle respectively. These short keys are present in systemd-escape --help output and are absent in man systemd-escape page.

6 years agoconf-parser: accept trailing backslash at the end of the file (#8941)
Filipe Brandenburger [Thu, 10 May 2018 01:10:07 +0000 (18:10 -0700)] 
conf-parser: accept trailing backslash at the end of the file (#8941)

This makes it behave the same whether there is a blank line or not at
the end of the file.  This is also consistent with the behavior of the
shell on a shell script that ends on a trailing backslash at the last
line.

Added tests to test_config_parse(), which only pass if the corresponding
change to config_parse() is included.

6 years agoadd journal-upload.conf refentrytitle (#8942)
Mikhail Kasimov [Thu, 10 May 2018 00:18:59 +0000 (03:18 +0300)] 
add journal-upload.conf refentrytitle (#8942)

Add journal-upload.conf refentrytitle to have the same format to systemd-journal-remote.service description, which contains refentrytitle on journal-remote.conf in 'See Also' section.

6 years agocore/mount-setup: remove part of check which is always true 8943/head
Zbigniew Jędrzejewski-Szmek [Thu, 10 May 2018 00:03:23 +0000 (02:03 +0200)] 
core/mount-setup: remove part of check which is always true

k was set to join_controllers at this point and only incremented, so
it cannot be null at this point.

CID #1390949.

6 years agobasic/fs-util: remove logically dead code
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 23:55:05 +0000 (01:55 +0200)] 
basic/fs-util: remove logically dead code

We can jump to chase_one from two places. In the first 'todo' is set to
'buffer', which comes from path_make_absolute_cwd() and is nonnull In the
second 'todo' is set to 'joined' which is checked to be nonull a few lines
above the jump. So let's kill the code that deals with null todo there.

CID #1390941.

6 years agoudevadm: fix null dererefence on allocation error
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 23:49:01 +0000 (01:49 +0200)] 
udevadm: fix null dererefence on allocation error

CID #1390936.

6 years agolocaled: fix memleak in error path
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 23:45:20 +0000 (01:45 +0200)] 
localed: fix memleak in error path

CID #1390929.

6 years agologind: fix borked r check
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 23:34:33 +0000 (01:34 +0200)] 
logind: fix borked r check

CID #1390947, #1390952.

6 years agobasic/format-table: add missing va_end()
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 23:22:29 +0000 (01:22 +0200)] 
basic/format-table: add missing va_end()

CID #1390930, #1390940.

6 years agoIntroduce _cleanup_(strbuf_cleanupp) and use it to fix null deref on error
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 23:16:03 +0000 (01:16 +0200)] 
Introduce _cleanup_(strbuf_cleanupp) and use it to fix null deref on error

catalog_update() would call strbuf_cleanup(NULL) on allocation error.
CID #1390928.

6 years agoshared/sleep-config: fix memleak of strv, add test
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 23:04:53 +0000 (01:04 +0200)] 
shared/sleep-config: fix memleak of strv, add test

CID #1390921, #1390951.

6 years agoMerge pull request #8689 from davide125/static
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 22:39:36 +0000 (00:39 +0200)] 
Merge pull request #8689 from davide125/static

meson: add support for building static libsystemd and libudev

6 years agoMerge pull request #8939 from yuwata/fix-comment
Igor Gnatenko [Wed, 9 May 2018 18:55:26 +0000 (20:55 +0200)] 
Merge pull request #8939 from yuwata/fix-comment

several cleanups

6 years agotimedate: use free_and_strdup() 8939/head
Yu Watanabe [Wed, 9 May 2018 15:59:47 +0000 (00:59 +0900)] 
timedate: use free_and_strdup()