Yu Watanabe
04e075b572
bus-util: make log level lower in request_name_destroy_callback()
...
Fixes #9442 .
2018-06-27 16:56:50 +02:00
Yu Watanabe
a661dc36f6
resolve: reduce number of conversions between ifname and ifindex
...
This also fixes minor memleak introduced in
654457e560c5723b90b419f7651b87040aade07e.
2018-06-26 23:09:36 -07:00
Yu Watanabe
e68131526b
analyze: actually select longest activated-time of services
...
Discovered by LGTM.
2018-06-27 14:54:19 +09:00
Yu Watanabe
944072fedd
journal-gateway: use localStorage["cursor"] only when it has valid value
...
Discovered by LGTM.
2018-06-27 14:50:23 +09:00
Yu Watanabe
c497e449f4
journal-gateway: explicitly declare local variables
...
Suggested by LGTM.
2018-06-27 14:22:28 +09:00
Yu Watanabe
affaed1e55
sd-bus: fix implicit downcast of bitfield reported by LGTM
2018-06-27 13:28:28 +09:00
Yu Watanabe
e0f691e1fd
tree-wide: use localtime_r() instead of localtime()
...
Follow-up for e46acb7950 .
2018-06-26 14:26:39 +09:00
Yu Watanabe
ad16158c10
netdev: do not assign unused values
2018-06-26 14:26:19 +09:00
Yu Watanabe
48847676ca
man: add comments about MTUBytes= and MACAddress= for tuntap devices
...
Closes #9407 .
2018-06-25 18:54:38 +02:00
Yu Watanabe
f02582f69f
meson: check whether gnutls supports TCP fast open
...
Fixes #9403
2018-06-26 00:30:29 +09:00
Yu Watanabe
400d846138
tmpfiles: specify access mode for /run/systemd/netif
...
This partially reverts 2af7677294 .
As the directories are certainly readable and not-writable by
non-privileged users.
2018-06-25 10:32:13 +02:00
Yu Watanabe
fb14aa7ecc
network: fix log message
2018-06-25 10:31:08 +02:00
Yu Watanabe
a9061d97a7
timesync: update log message
...
Fixes #9388 .
2018-06-25 10:27:18 +02:00
Yu Watanabe
75ca1621db
timesync: changes type of drift_freq to int64_t
...
drift_freq is used for storing timex.freq, and is a 64bit integer.
To support x32 ABI, this changes the type of drift_freq to int64_t.
Fixes #9387 .
2018-06-25 10:27:18 +02:00
Yu Watanabe
d5c3091122
install: fix error handling in is_symlink_with_known_name()
2018-06-25 14:07:16 +09:00
Yu Watanabe
99c89da02d
portable: fix error handling
2018-06-25 13:56:27 +09:00
Yu Watanabe
d61b34f1b2
import: drop unnecessary condition
2018-06-25 13:54:44 +09:00
Yu Watanabe
712fdfd609
sd-dhcp: drop unnecessary condition
2018-06-25 13:51:34 +09:00
Yu Watanabe
8838f46f93
machine-pool: drop unnecessary condition
2018-06-25 13:49:56 +09:00
Yu Watanabe
6da95857c1
resolve: drop dead code
2018-06-25 13:46:52 +09:00
Yu Watanabe
fa6a69d783
resolve: drop dead code
2018-06-25 13:42:31 +09:00
Yu Watanabe
33987ba0c2
bootctl: drop dead code
2018-06-25 13:40:36 +09:00
Yu Watanabe
29bfb683a8
journal: drop redundant condition
2018-06-25 13:36:49 +09:00
Yu Watanabe
a5042ec4d7
resolve: fix return value type of dns_answer_has_dname_for_cname()
2018-06-25 13:25:42 +09:00
Yu Watanabe
86b112a315
resolve: dns_scope_network_good() does not returns negative errno
2018-06-25 13:25:34 +09:00
Yu Watanabe
b4dec49f83
core/cgroup: drop unnecessary condition
2018-06-25 13:09:48 +09:00
Yu Watanabe
0ceff9068d
bus-util: fix error handling
2018-06-25 13:08:02 +09:00
Yu Watanabe
f18edd8a0a
tree-wide: add multiple inclusion guard
2018-06-25 13:04:59 +09:00
Yu Watanabe
9a85778412
meson: drop unused option
...
Follow-up for add384dd4d .
2018-06-24 19:06:24 +02:00
Yu Watanabe
6302d1ea07
core: drop unused log message
...
temporary_filesystem_add() does not parse mount options.
2018-06-24 19:06:24 +02:00
Yu Watanabe
2af7677294
tmpfile: do not specify mode and owner to /run/systemd/netif
...
Fixes #9369 .
2018-06-22 12:00:52 +02:00
Yu Watanabe
704ae53659
NEWS: mention 'timedatectl show'
2018-06-21 10:51:35 +09:00
Yu Watanabe
5c46878eda
bash-completion: support 'timedatectl show'
2018-06-21 10:47:51 +09:00
Yu Watanabe
56ddbf1009
meson: make DNS-over-TLS support optional
...
This adds dns-over-tls option to meson. If set to 'false',
systemd-resolved is not linked with libgnutls.
2018-06-20 22:28:01 +02:00
Yu Watanabe
d45e481ed2
test: add test for specifier of configuration directory root
2018-06-21 03:24:09 +09:00
Yu Watanabe
969309c2b4
core: add unit specifier for configuration directory root
...
Follow-up for 14068e17f3 .
2018-06-21 03:20:37 +09:00
Yu Watanabe
d149a404b1
resolve: fix log message
2018-06-20 08:25:10 +02:00
Yu Watanabe
e55fc5b094
resolve: do not log about negative cache for mdns packets
...
Fixes #9335 .
2018-06-20 08:25:10 +02:00
Yu Watanabe
22509a8df0
sd-bus: fix typo in comment
2018-06-19 08:44:55 +02:00
Yu Watanabe
31d99bd172
tree-wide: do not assign values if not used
2018-06-19 08:44:55 +02:00
Yu Watanabe
980982da62
mount: do not output (null) in option
...
Fixes #9327 .
2018-06-19 08:27:47 +02:00
Yu Watanabe
b909a22c73
po: update Japanese translations
2018-06-19 13:27:15 +09:00
Yu Watanabe
9c7f1abbe2
portable: update polkit messages
2018-06-19 13:21:17 +09:00
Yu Watanabe
1e8c7bd55c
namespace: drop protect_{home,system}_or_bool_from_string()
...
The functions protect_{home,system}_from_string() are not used
except for defining protect_{home,system}_or_bool_from_string().
This makes protect_{home,system}_from_string() support boolean
strings, and drops protect_{home,system}_or_bool_from_string().
2018-06-15 11:32:27 +02:00
Yu Watanabe
c779b82a50
man: re-format man page for bootctl
2018-06-15 15:40:12 +09:00
Yu Watanabe
70c8db7555
man: use systemd-boot instead of sd-boot
2018-06-15 14:27:37 +09:00
Yu Watanabe
3177e14c4d
Merge pull request #9303 from poettering/busctl-fixlets
...
tiny busctl fixlets
2018-06-15 12:11:44 +09:00
Yu Watanabe
ead0adb161
timedatectl: add 'show' command to display machine-readable output
...
Closes #9249 .
2018-06-14 10:19:08 +02:00
Yu Watanabe
86aaccb020
timesync: ignore any errors related to timestamp file
2018-06-14 12:04:04 +09:00
Yu Watanabe
c039af2388
sysusers: use fchmod_and_chown()
2018-06-14 12:03:49 +09:00
Yu Watanabe
b8da477eaf
fs-util: introduce fchmod_and_chown()
...
The new function fchmod_and_chown() is almost same as chmod_and_chown()
except it takes file descriptor instead of file path.
2018-06-14 11:47:57 +09:00
Yu Watanabe
24f5a4c7c6
machine: ignore containers which disable private user namespace in MapToMachine{User,Group}
...
Fixes #9286 .
2018-06-13 19:05:32 +02:00
Yu Watanabe
73c718a9e5
NEWS: add more news
2018-06-13 08:27:14 +02:00
Yu Watanabe
87cbe069e6
man: drop unnecessary '=' after nta
2018-06-13 14:34:26 +09:00
Yu Watanabe
92936883d5
resolvectl: fix indentation
2018-06-13 14:30:51 +09:00
Yu Watanabe
ba0c011eee
timesync: add more log messages in manager_network_read_link_servers()
2018-06-13 14:05:26 +09:00
Yu Watanabe
dcb37458cb
timesync: check validity of NTP server name or address
2018-06-13 13:51:17 +09:00
Yu Watanabe
8e7b5bd047
conf-parser: simplify conf_parse_path()
...
Follow-up for 97651797e83d0548aef9f808657d3518d89e5aee.
2018-06-13 13:50:35 +09:00
Yu Watanabe
daab72ea44
resolve: do not complete stream transaction when it is under retrying
2018-06-13 13:43:36 +09:00
Yu Watanabe
3da3cdd592
resolve: drop unused argument of dns_server_packet_lost()
2018-06-13 13:20:23 +09:00
Yu Watanabe
eab39da1fa
resolve: correctly count TCP transaction failures
...
Fixes #9281 .
2018-06-13 13:13:40 +09:00
Yu Watanabe
3c0dcbcf4f
resolve: fix log message
2018-06-13 12:21:54 +09:00
Yu Watanabe
1a363edad1
bash-completion/resolvectl: support privatedns command
2018-06-13 11:16:26 +09:00
Yu Watanabe
ddf1a95301
resolve: reject PrivateDNS=yes
2018-06-13 11:00:52 +09:00
Yu Watanabe
8adbd86586
resolve: make manager_get_private_dns_mode() always return valid setting
2018-06-13 11:00:28 +09:00
Yu Watanabe
b761a10797
resolve: add missing bus property and method
...
Follow-up for #8849 .
2018-06-13 10:50:34 +09:00
Yu Watanabe
b474ff59e6
fuzz: add testcase for issue 8827
2018-06-11 12:39:59 +09:00
Yu Watanabe
1c73b60b4d
util-lib: reject too long path for timedate_is_valid()
...
This should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8827 .
2018-06-11 12:38:34 +09:00
Yu Watanabe
60091993a9
locale: add _unused_ attribute for dummy variable
...
This suppresses the following warning by clang:
```
[588/1179] Compiling C object 'systemd-localed@exe/src_locale_localed.c.o'.
../src/locale/localed.c:271:39: warning: unused variable 'dummy' [-Wunused-variable]
_cleanup_(locale_free) char **dummy = new_locale;
^
```
2018-06-06 12:27:52 +02:00
Yu Watanabe
c0d72c4313
conf-parser: fix memleak ( #9177 )
...
Fixes CID#1391437.
Closes #9180 .
2018-06-04 15:18:28 +03:00
Yu Watanabe
a6dffbb7e7
test: fix function name
2018-06-04 09:33:45 +02:00
Yu Watanabe
d3c8afd092
man: RuntimeDirectory= or friends accept dot contained paths
2018-06-04 01:44:04 +09:00
Yu Watanabe
f106314c89
conf-parser: remove redundant utf8-validity check
2018-06-04 01:38:54 +09:00
Yu Watanabe
97b9c506cf
conf-parse: use free_and_replace()
...
Also removes unnecessary empty lines.
2018-06-04 00:30:42 +09:00
Yu Watanabe
78d17fa099
conf-parser: reject utf8-invalid lines
2018-06-04 00:30:18 +09:00
Yu Watanabe
2b633119a0
test: add test for trailing dot in WorkingDirectory= and RuntimeDirectory=
2018-06-03 23:59:51 +09:00
Yu Watanabe
2f4d31c117
load-fragment: use path_simplify_and_warn() where applicable
2018-06-03 23:59:42 +09:00
Yu Watanabe
cd4f53c5b5
conf-parse: use path_simplify_and_warn() in config_parse_path()
2018-06-03 23:57:30 +09:00
Yu Watanabe
58a53adde5
path-util: introduce path_simplify_and_warn()
2018-06-03 23:54:55 +09:00
Yu Watanabe
4805426279
path-util: make path_make_relative() support path including dots
2018-06-03 23:54:32 +09:00
Yu Watanabe
858d36c1ec
path-util: introduce path_simplify()
...
The function is similar to path_kill_slashes() but also removes
initial './', trailing '/.', and '/./' in the path.
When the second argument of path_simplify() is false, then it
behaves as the same as path_kill_slashes(). Hence, this also
replaces path_kill_slashes() with path_simplify().
2018-06-03 23:39:26 +09:00
Yu Watanabe
40352cf0c1
netdev: fix parser for VRF.Table=
...
This effectively reverts f98dd1e707 (#6704 ).
Fixes #9150 .
2018-06-02 11:15:37 +02:00
Yu Watanabe
4156e767f6
locale: assume locale is for LANG= when variable name is not specified
...
Closes #6070 .
2018-05-31 17:57:41 +09:00
Yu Watanabe
b613b01920
doc: update TODO
2018-05-31 17:39:13 +09:00
Yu Watanabe
33ab22fcb9
man: mention that systemd-sysusers understand the specifier.
2018-05-31 17:37:57 +09:00
Yu Watanabe
b8bed70068
sysusers: support specifier expansion for GECOS and home directory fields
2018-05-31 17:36:22 +09:00
Yu Watanabe
df4fd2c757
locale: re-read configuration files if changed
...
Closes #8491 .
2018-05-31 16:24:45 +09:00
Yu Watanabe
6a837b035f
locale: use _cleanup_free_ and free_and_replace
2018-05-31 16:17:18 +09:00
Yu Watanabe
fe28d88746
locale: check xkb data before requesting authentication
2018-05-31 16:16:25 +09:00
Yu Watanabe
b47ff73b18
locale: return earlier if no operation will be done
2018-05-31 16:15:21 +09:00
Yu Watanabe
17ee3d72da
load-fragment: use free_and_replace()
2018-05-31 13:27:06 +09:00
Yu Watanabe
3c381a671f
load-fragment: add missing oom check
...
Fixes CID#1391379.
2018-05-31 13:26:27 +09:00
Yu Watanabe
66c9dfdddc
portable: fix memleak
...
Fixes CID#1391382.
2018-05-31 13:16:51 +09:00
Yu Watanabe
7be9df7d4a
core/socket: fix coding style
2018-05-31 11:09:41 +09:00
Yu Watanabe
535775805a
load-fragment: move macro-defined config parsers
2018-05-31 11:09:41 +09:00
Yu Watanabe
984faf29da
load-fragment: use DEFINE_CONFIG_PARSE_*() macros
2018-05-31 11:09:41 +09:00
Yu Watanabe
e405b67d23
load-fragment: make IPTOS= accept the empty string
2018-05-31 11:09:41 +09:00
Yu Watanabe
00463fbf0d
load-fragment: make SocketProtocol= accept the empty string
2018-05-31 11:09:41 +09:00
Yu Watanabe
fa65c28176
namespace: rename parse_protect_{home,system}_or_bool() to protect_{home,system}_or_bool_to_string()
...
Hence, we can define config_parse_protect_{home,system}() by using
DEFINE_CONFIG_PARSE_ENUM() macro.
2018-05-31 11:09:41 +09:00
Yu Watanabe
b54e98ef8e
socket-util: rename parse_socket_address_bind_ipv6_only_or_bool() to socket_address_bind_ipv6_only_or_bool_from_string()
...
Hence, we can define config_parse_socket_bind() by using
DEFINE_CONFIG_PARSE_ENUM() macro.
2018-05-31 11:09:41 +09:00