Mike Yuan
4ecb673e6f
core: use RET_GATHER more
2024-03-22 01:36:37 +08:00
Mike Yuan
e9fa1bf704
core: use ASSERT_PTR(CAST(u)) everywhere
2024-03-22 01:36:37 +08:00
Yu Watanabe
ec0bc263d7
Merge pull request #31880 from yuwata/network-varlink-trivial-cleanups
...
network: trivial varlink cleanups
2024-03-21 22:00:52 +09:00
dependabot[bot]
11a9c575ed
build(deps): bump pkg/fedora from 2822a03 to 2e32a33
...
Bumps pkg/fedora from `2822a03` to `2e32a33`.
---
updated-dependencies:
- dependency-name: pkg/fedora
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-21 13:48:13 +01:00
dependabot[bot]
55c03cb539
build(deps): bump pkg/debian from 86cd356 to 3b47281
...
Bumps pkg/debian from `86cd356` to `3b47281`.
---
updated-dependencies:
- dependency-name: pkg/debian
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-21 13:47:20 +01:00
Yu Watanabe
1015742878
varlink: use varlink_server_description()
2024-03-21 19:54:25 +09:00
Yu Watanabe
2858d92914
network: set varlink description
2024-03-21 19:52:31 +09:00
Yu Watanabe
7742d03e8d
networkctl: use varlink_flush_close_unrefp()
2024-03-21 19:45:03 +09:00
Mike Yuan
16f5baa247
Merge pull request #31861 from yuwata/journalctl-fix-until
...
journalctl: make --until work again with --after-cursor and --lines
2024-03-21 18:05:36 +08:00
Evgeny Vereshchagin
ae0e1cb989
CI: revert the mmap_rnd_bits kludge
...
This reverts commit 2e0c2fb8fb and commit
b7c7498de8 now that
https://github.com/actions/runner-images/issues/9491 is closed.
2024-03-21 10:22:43 +01:00
Markus Merklinger
c9f1a0536f
Update USB ids of hwdb
2024-03-21 15:29:48 +09:00
Yu Watanabe
839dce5ecb
Merge pull request #31862 from keszybz/add-strdup_to-helper
...
Add strdup_to() helper
2024-03-21 14:47:05 +09:00
Yu Watanabe
e845913fac
Merge pull request #31875 from ml-/docs-fix-socket-section
...
docs: fix keys in wrong section and minor issues in man pages
2024-03-21 12:32:53 +09:00
Matthias Lisin
245bd4af99
man: fix minor issues
2024-03-21 02:49:38 +01:00
Matthias Lisin
8c2440dd42
docs: fix keys in wrong section
2024-03-21 02:32:26 +01:00
Yu Watanabe
bf995423fd
test: add test case for issue #31776
2024-03-21 04:44:39 +09:00
Yu Watanabe and Reid Wahl
cb2be36650
journalctl: make --until work again with --after-cursor and --lines
...
Fixes a regression introduced by 81fb5375b3 .
If one of the cursor option is specified, we first seek to the cursor position.
So, the current position may be out of the time range specified by --until,
and we need to verify the timestamp of the current position.
Fixes #31776 .
Co-authored-by: Reid Wahl <nrwahl@protonmail.com >
2024-03-21 04:43:45 +09:00
Yu Watanabe
8810b782a1
test: fix typo
...
Follow-up for 6644445586 .
2024-03-21 03:58:05 +09:00
Yu Watanabe
2e097e4a91
resolve: fix typo
...
Follow-up for ce5b9d5b3c .
2024-03-21 03:56:36 +09:00
Yu Watanabe
2503c377fa
resolve: fix typo
...
Follow-up for 47690634f1 .
2024-03-21 03:55:37 +09:00
Unique-Usman
c0cd99eee6
Follow up with the PR #31819
2024-03-20 15:48:05 +00:00
Luca Boccassi
c3a55dc469
Merge pull request #31844 from keszybz/missing-extra-checks
...
Add static asserts to verify that our missing_*.h headers defines are actually correct
2024-03-20 15:47:05 +00:00
Yu Watanabe
1c8e8ec0ff
Revert "test: temporarily adjust the default mount rate limit"
...
This reverts commit 3f4b00a34a425566ca8494846b0e74ca8c7693d3.
The issue #30573 seems to be fixed somehow. Let's revert the workaround.
2024-03-20 15:36:05 +01:00
cunshunxia
cc59d1014f
man: fix a few issues in manpage
...
fix : #31482
Signed-off-by: cunshunxia <cunshunxia@tencent.com >
2024-03-20 15:24:11 +01:00
Zbigniew Jędrzejewski-Szmek
3a08372d18
shared/password-quality: inline iterator variable
2024-03-20 15:18:21 +01:00
Zbigniew Jędrzejewski-Szmek
045d94248d
core: use strdup_to()
...
Those are all pretty straightforward.
2024-03-20 15:18:21 +01:00
Zbigniew Jędrzejewski-Szmek
b8486f2592
oomd: use strdup_to() and RET_GATHER()
2024-03-20 15:18:21 +01:00
Zbigniew Jędrzejewski-Szmek
196166dbb1
basic/unit-name: use strdup_to() in slice_build_parent_slice()
...
The handling of the buffer is not obvious, so add a comment.
2024-03-20 15:18:21 +01:00
Zbigniew Jędrzejewski-Szmek
32baca0023
logind: use strdup_to()
2024-03-20 15:18:21 +01:00
Zbigniew Jędrzejewski-Szmek
b41f88a23c
shared/dissect-image: use strdup_to_full() in one more place
2024-03-20 15:18:21 +01:00
Zbigniew Jędrzejewski-Szmek
237bbec117
machinectl: use strdup_to() and move cleanup out of the loop
...
It doesn't matter much, but it seems nicer to call va_end() just
once.
2024-03-20 15:18:21 +01:00
Zbigniew Jędrzejewski-Szmek
4ab305fa3b
basic/time-util: use strdup_to() and reformat a bit
2024-03-20 15:18:21 +01:00
Zbigniew Jędrzejewski-Szmek
8f6ea3e827
sd-journal/catalog: use strdup_to(), rename output param
2024-03-20 15:18:21 +01:00
Zbigniew Jędrzejewski-Szmek
bca4dc29df
sd-device: use strdup_to() and rename output param
...
device_open_from_devnum() returns two things: the devname via
an output param, and the fd via the return value. Rename the param
to signal that it's not the only return channel.
2024-03-20 15:18:21 +01:00
Zbigniew Jędrzejewski-Szmek
bef2c63a40
shared: use strdup_to() in specifier functions
2024-03-20 15:18:21 +01:00
Zbigniew Jędrzejewski-Szmek
6a705f1234
Replace strdup_or_null() by strdup_to()
...
I didn't know that this helper existed… It is very similar to strdup_to_full(),
but all callers can actually be replaced by strdup_to(), which has more fitting
semantics.
2024-03-20 15:18:21 +01:00
Zbigniew Jędrzejewski-Szmek
f174b294f6
basic/string-util: use strdup_to() in string_extract_line()
2024-03-20 15:18:21 +01:00
Zbigniew Jędrzejewski-Szmek
4eb3ec63b0
basic/socket-util: use strdup_to() in sockaddr_pretty()
...
The function was written to support ret==NULL, but the only caller always
passes ret, and sockaddr_pretty() also requires ret to be set, so that
half-implemented code wasn't very useful.
2024-03-20 15:18:21 +01:00
Zbigniew Jędrzejewski-Szmek
f394876140
coredump: use free_and_strdup_warn() more
2024-03-20 15:18:21 +01:00
Zbigniew Jędrzejewski-Szmek
55222b75a6
systemd-analyze: use strdup_to()
2024-03-20 15:18:21 +01:00
Zbigniew Jędrzejewski-Szmek
94b75cdb06
basic/fileio: use strdup_to_full() in read_stripped_line()
...
The return value of read_stripped_line() is changed. Before we'd return the
number of characters read, but that number was not meaningful after we called
strstrip(). So just return 0 if nothing was read (EOF), and 1 if something was
read (not EOF). All the callers were only checking for <0 or ==0.
2024-03-20 15:18:21 +01:00
Zbigniew Jędrzejewski-Szmek
4f77ddca59
various: also use strdup_to() in cases where we don't return immediately
2024-03-20 15:18:21 +01:00
Zbigniew Jędrzejewski-Szmek
418b936d47
various: use strdup_to() after getenv()
2024-03-20 15:18:21 +01:00
Zbigniew Jędrzejewski-Szmek
454318d3e8
various: use strdup_to() in various obvious cases
...
strdup_to() returns 0 on success and here we convert obvious blocks
which either return -ENOMEM or 0.
2024-03-20 15:13:44 +01:00
Zbigniew Jędrzejewski-Szmek
7e850da3d6
test-cgroup-util: reduce scope of iterator variables
2024-03-20 15:13:44 +01:00
Zbigniew Jędrzejewski-Szmek
8922a728f7
basic/cgroup-util: use strdup_to() and strdup_to_full() as appropriate
2024-03-20 15:13:44 +01:00
Zbigniew Jędrzejewski-Szmek
d3a3d2d328
hostnamed: use strdup_to_full()
2024-03-20 15:13:44 +01:00
Zbigniew Jędrzejewski-Szmek
892c5902ae
src/basic: add yet another strdup helper
...
It's a bit ugly to have both strdup_to() and strdup_to_full(). I initially
started with one variant, but then in some functions we want the additional
info, while in many other places, having 1 instead of 0 causes the return
value of whole chains of functions to be changed. It *probably* wouldn't cause
any difference, but there is at least of bunch of tests that would need to be
updated, so in the end it seems to have the two variants.
The output param is first to match free_and_strdup() and other similar
functions.
2024-03-20 15:12:12 +01:00
Luca Boccassi
aa5703f66f
Merge pull request #31827 from rpigott/resolved-faster-dnssec
...
Reduce superfluous dnssec transactions
2024-03-20 13:17:40 +00:00
Frantisek Sumsal
e9f8ad4073
Merge pull request #31867 from jamacku/update-freezer
...
Update development freeze GitHub Action; now milestones are taken into account
2024-03-20 13:37:37 +01:00