Yu Watanabe
483abcc65b
man: fix prototpe of sd_bus_message_peek_type()
...
Fixes #17609 .
2020-11-15 05:15:46 +09:00
Yu Watanabe
e55c073161
man: add missing <para> tag, and drop redundant ">"
...
Fixes #17609 .
2020-11-15 05:15:16 +09:00
Yu Watanabe
5ba97fc0a9
systemctl: fix minor coding style issue
2020-11-14 09:06:35 +09:00
Yu Watanabe
ca7b9e1e0a
systemctl: use unsigned for job_count
...
As, the number of units `c` is unsigned.
2020-11-14 09:05:32 +09:00
Yu Watanabe
810394481b
systemctl: always show underline even if unit has no job ID
2020-11-14 09:19:01 +09:00
Yu Watanabe
c4cce95731
io-util: do not call log_oom() in library functions
2020-11-13 19:35:01 +09:00
Yu Watanabe
ca39a3cef9
bpf: do not call log_oom() in library function
2020-11-13 19:30:57 +09:00
Yu Watanabe
85a03fda7d
ci: also set -Dfuzz-tests=true if -Dslow-tests=true
2020-11-13 18:15:41 +09:00
Yu Watanabe
1763ef1d49
meson: do not build fuzzers when fuzz-tests=false
...
Closes #17578 .
2020-11-13 18:15:37 +09:00
Yu Watanabe
d3f044ddf4
test: fix typo
2020-11-13 16:29:00 +09:00
Yu Watanabe
5c09eac7d2
man: fix typo
2020-11-13 16:29:00 +09:00
Yu Watanabe
d51c4fca29
tree-wide: fix "a the" or "the a"
2020-11-13 16:28:47 +09:00
Etienne Doms
e2357b1c8a
ratelimit: fix integer overflow
...
If StartLimitIntervalSec is huge, or more specifically, set to "infinity", we need to take care about overflows.
2020-11-12 14:35:06 +01:00
Yu Watanabe
7a5b649fc0
Merge pull request #17583 from systemd/oomd-and-user-slices
...
Make oomd easier to enable and user slices to NEWS
2020-11-12 22:12:31 +09:00
Zbigniew Jędrzejewski-Szmek
9101cd1a23
NEWS: describe the new user slices
2020-11-12 13:32:39 +01:00
Zbigniew Jędrzejewski-Szmek
08c1864f0d
meson: allow oomd to be enabled even in release mode
...
A distro (Fedora in particular) may want to enable oomd in a unstable
branch for testing, even though the package as a whole is compiled in release
mode. Let's emit a warning but otherwise allow this.
2020-11-12 13:25:40 +01:00
perry_yuan
617acbdaa4
hwdb: 60-keyboard:: add Dell Privacy Micmute Hotkey
...
Dell new Privacy feature provide new hardware level privacy
protect for users,it needs to map the scan code to F20 micmute
Signed-off-by: Perry Yuan <perry_yuan@dell.com>
2020-11-12 12:01:46 +01:00
Zbigniew Jędrzejewski-Szmek
141fdc8ada
Merge pull request #17561 from yuwata/man
2020-11-12 11:29:03 +01:00
Jörg Thalheim
d7aa78c32f
meson: add option to skip installing to $sysconfdir
...
This is useful for development where overwriting files out side
the configured prefix will affect the host as well as stateless
systems such as NixOS that don't let packages install to /etc but handle
configuration on their own.
Alternative to https://github.com/systemd/systemd/pull/17501
tested with:
$ mkdir inst build && cd build
$ meson \
-Dcreate-log-dirs=false \
-Dsysvrcnd-path=$(realpath ../inst)/etc/rc.d \
-Dsysvinit-path=$(realpath ../inst)/etc/init.d \
-Drootprefix=$(realpath ../inst) \
-Dinstall-sysconfdir=false \
--prefix=$(realpath ../inst) ..
$ ninja install
2020-11-12 11:21:46 +01:00
Yu Watanabe
faa73d4e0c
license: LGPL-2.1+ -> LGPL-2.1-or-later
...
Follow-up for db9ecf0501
.
2020-11-12 10:50:23 +01:00
Yu Watanabe
6b44ad0bf8
man: set constant tag to NUL or NULL
2020-11-12 17:10:36 +09:00
Yu Watanabe
725d9713a9
man: append parentheses for function name
2020-11-12 17:10:32 +09:00
Yu Watanabe
af7ce3faf8
man: fix tag
2020-11-12 17:07:13 +09:00
Yu Watanabe
c660668ed9
man: mention that sd_bus_call() may return a negative errno mapped from D-Bus error reply
...
Closes #17556 .
2020-11-12 17:06:33 +09:00
Yu Watanabe
23243adf69
man: add missing period
2020-11-12 16:33:14 +09:00
Yu Watanabe
9429ee6a89
Merge pull request #17567 from keszybz/various-small-cleanups
...
Various small cleanups
2020-11-12 16:30:06 +09:00
Zbigniew Jędrzejewski-Szmek
ca121e20c4
meson: use "_" as separator in test names
...
":" is prettier, but meson 0.56+ doesn't like it:
src/systemd/meson.build:73: DEPRECATION: ":" is not allowed in test name "cc-sd-bus.h:c", it has been replaced with "_"
src/systemd/meson.build:73: DEPRECATION: ":" is not allowed in test name "cc-sd-bus.h:c-ansi", it has been replaced with "_"
...
Fixes #17568 .
2020-11-11 16:58:05 +01:00
Lennart Poettering
23dce98e89
Merge pull request #16603 from benzea/benzea/special-app-slice
...
Use app.slice by default in user manager (and define special user slices)
2020-11-11 14:11:02 +01:00
Zbigniew Jędrzejewski-Szmek
b5e798de20
NEWS,man: tweak the description of FixedRandomDelay=
...
Explain why this is useful, but don't describe the implementation exactly,
since we're likely to want to change details in the future.
2020-11-11 19:10:34 +09:00
Zbigniew Jędrzejewski-Szmek
5ee24fa0a0
user: move "extrinsic" units to their root slice
...
With the grandparent change to move most units to app.slice,
those units would be ordered After=app.slice which doesn't make any sense.
Actually they appear earlier, before the manager is even started, and
conceputally it doesn't seem useful to put them under any slice.
2020-11-10 17:33:32 +01:00
Zbigniew Jędrzejewski-Szmek
a54bcb9016
Merge pull request #17566 from poettering/v247-rc2-prep
...
V247 rc2 prep
2020-11-10 16:59:30 +01:00
Zbigniew Jędrzejewski-Szmek
4d5f52e77e
basic/fileio: constify struct timespec arguments
2020-11-10 15:52:32 +01:00
Zbigniew Jędrzejewski-Szmek
b5c474f69b
libsystemd-network: add comment explaining unusual memory access
...
Inspired by coverity CID#1435984. I'm confused by the union definion every time I look at it...
Let's at least add a comment to help future readers.
2020-11-10 15:52:32 +01:00
Zbigniew Jędrzejewski-Szmek
44ee03d111
tree-wide: unsetenv cannot fail
...
... when called with a valid environment variable name. This means that
any time we call it with a fixed string, it is guaranteed to return 0.
(Also when the variable is not present in the environment block.)
2020-11-10 15:52:32 +01:00
Zbigniew Jędrzejewski-Szmek
063f9f0da9
basic/env-util: add little helper to call setenv or unsetenv
2020-11-10 15:48:14 +01:00
Zbigniew Jędrzejewski-Szmek
39c79477ac
pid1: expose "extrinsic" status of swaps and mounts
...
The only visible change from this is that we show Extrinsic: yes/no
in dumps for swap units (this was already done for mount units).
2020-11-10 14:42:42 +01:00
Lennart Poettering
af8e571450
man: properly list relative time event source API in man page
...
The content was already there, but it wasn't listed in the header
metadata. Fix that.
2020-11-10 14:20:06 +01:00
Zbigniew Jędrzejewski-Szmek
55c540d39f
sd-event: minor modernization
...
With this change the pattern used for epoll_ctl() is the same in all calls in
this file. Consistency FTW!
2020-11-10 14:19:20 +01:00
Zbigniew Jędrzejewski-Szmek
ac9f2640cb
sd-event: increase n_enabled_child_sources just once
...
Neither source_child_pidfd_register() nor event_make_signal_data() look at
n_enabled_child_sources.
2020-11-10 14:19:20 +01:00
Zbigniew Jędrzejewski-Szmek
d2eafe61ca
sd-event: update state at the end in event_source_enable
...
Coverity in CID#1435966 was complaining that s->enabled is not "restored" in
all cases. But the code was actually correct, since it should only be
"restored" in the error paths. But let's still make this prettier by not setting
the state before all operations that may fail are done.
We need to set .enabled for the prioq reshuffling operations, so move those down.
No functional change intended.
2020-11-10 14:18:47 +01:00
Lennart Poettering
e1909b2207
hwdb: update
2020-11-10 14:16:17 +01:00
Lennart Poettering
53eedd5011
git-contrib: exclude -rc tags
2020-11-10 14:12:27 +01:00
Lennart Poettering
6fc5b95124
update NEWS
2020-11-10 14:12:14 +01:00
Lennart Poettering
394131d5be
Merge pull request #17497 from anitazha/randomizeonce
...
timer: add new feature FixedRandomDelay=
2020-11-10 13:29:04 +01:00
onlybugreports
c9b3e1d380
Add Logitech G403 Prodigy Gaming Mouse to hwdb. ( #17537 )
...
This PR adds logitech G403 to the hwdb.
Settings were obtained with 'sudo mouse-dpi-tool /dev/input/event3' and 'ratbagctl hollering-marmot info'.
2020-11-10 13:16:13 +01:00
Lennart Poettering
4165a0590d
Merge pull request #17555 from yuwata/ethtool-get-driver
...
ethtool: make ethtool_get_driver() return -ENODATA if driver is an empty string.
2020-11-10 13:15:10 +01:00
Yu Watanabe
41d544a1c1
journal: refuse skip parameter for sd_journal_next_skip() larger than INT_MAX
...
Fixes #17502 .
2020-11-10 13:14:42 +01:00
Zbigniew Jędrzejewski-Szmek
b8aac5014c
Merge pull request #17431 from msekletar/udev-link-update-race
...
udev: make algorithm that selects highest priority devlink less susceptible to race conditions
2020-11-10 09:41:57 +01:00
Yu Watanabe
6272aef5ff
sd-bus: drop redundant abs()
...
strerror_safe() internally applies abs().
2020-11-10 09:24:34 +01:00
Yu Watanabe
72585a584d
core: add missing oom check
...
Fixes #17552 .
2020-11-10 09:22:43 +01:00