Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v252 batch up to 400261fd558c1c8d78926674f33f09438d51b455 #443

Merged
merged 37 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
29c2f8c
test: tell delv to load anchors from /etc/bind.keys explicitly
mrc0mmand Dec 14, 2023
25e8795
test-netlink: Gracefully handle the loopback interface being down
DaanDeMeyer Aug 18, 2024
95dfab9
test: Gracefully handle running within user namespace with single user
DaanDeMeyer Aug 18, 2024
89aaf69
test-dhcp-server: Gracefully handle the network being down
DaanDeMeyer Aug 18, 2024
61ba5b0
src/basic/missing_loop.h: fix missing LOOP_SET_BLOCK_SIZE
rmelotte Jun 14, 2024
b51e5b6
resolved: clear the AD bit for bypass packets
rpigott Aug 26, 2024
977ce14
repart: Keep existing directory timestamps intact when copying
DaanDeMeyer Aug 29, 2024
0f55f29
audit-util: check correct errno
YHNdnzj Aug 31, 2024
6b93deb
nspawn: refuse to bind mount device node from host when --private-use…
yuwata Sep 5, 2024
55f0bb5
repart: initialize seed earlier
yuwata Sep 5, 2024
8fb1879
test: add test case for systemd-repart --seed=random
yuwata Sep 5, 2024
4229df3
hwdb: update to main@{2024-09-10}
bluca Sep 10, 2024
30c6946
portable: ensure PORTABLE_FORCE_ATTACH works even when there is a lef…
bluca Aug 30, 2024
68540dd
seccomp-util: pass negative fds as is to fsync() and friends
yuwata Sep 19, 2024
89445ba
test: add tests for seccomp_suppress_sync()
yuwata Sep 18, 2024
58a90fc
sd-ipv4acd: fix assertion triggered when an ARP received in STARTED s…
yuwata Sep 20, 2024
384c960
core/cgroup: Apply IODevice*= directives in configured order
Werkov Sep 13, 2024
2b565fe
systemctl: fix printing of RootImageOptions
keszybz Sep 27, 2024
b30b889
Update sd_bus_message_append_array.xml
hellow554 Oct 1, 2024
f6b4146
tree-wide: always do dlopen() with RTLD_NOW + RTLD_NODELETE
poettering Oct 1, 2024
4dd7c40
tree-wide: Fix Wformat warnings
DaanDeMeyer Oct 1, 2024
374c4a6
man: using WantedBy=default.target is not a good idea
lnykryn Oct 1, 2024
e73d8f9
man: consolidate list of active unit states into a shared table
bluca Oct 3, 2024
00ab0d5
man: Use proper conjunction and remove superfluous or
behrmann Oct 4, 2024
f33517c
test: Add test for per-device cgroup properties
Werkov Oct 4, 2024
96a77d8
Use case insensitive comparison for the machine's architechture
Oct 6, 2024
3a5f63d
udev-node: skip stack directory creation for diskseq
yuwata Oct 6, 2024
5ef8f8b
test: add test case for issue #34637
yuwata Oct 6, 2024
5670a40
various: correct laccess() error check
YHNdnzj Oct 4, 2024
a47f763
semaphore: speed up build
bluca Feb 28, 2024
076dc98
semaphore: move back to autopkgtest master branch
bluca Mar 9, 2024
502dcbe
semaphore: remove workaround for adduser
bluca Mar 11, 2024
6524176
Semaphore: switch from /tmp to /var/tmp to avoid disk space issues
bluca Oct 7, 2024
99d2949
semaphore: stop building and running extra unit tests
bluca Oct 7, 2024
052e1a0
semaphore: do not build docs
bluca Oct 7, 2024
8b57add
test: drop removed SCSI passthrough feature
mrc0mmand Sep 18, 2024
fcce519
test: mask rc.local generator, broken on Jammy
bluca Oct 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .semaphore/semaphore-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ SALSA_URL="${SALSA_URL:-https://salsa.debian.org/systemd-team/systemd.git}"
BRANCH="${BRANCH:-upstream-ci}"
ARCH="${ARCH:-amd64}"
CONTAINER="${RELEASE}-${ARCH}"
CACHE_DIR="${SEMAPHORE_CACHE_DIR:-/tmp}"
CACHE_DIR=/var/tmp
TMPDIR=/var/tmp
AUTOPKGTEST_DIR="${CACHE_DIR}/autopkgtest"
# semaphore cannot expose these, but useful for interactive/local runs
ARTIFACTS_DIR=/tmp/artifacts
Expand Down Expand Up @@ -64,7 +65,7 @@ for phase in "${PHASES[@]}"; do
sudo apt-get install -y -t "$UBUNTU_RELEASE-backports" lxc
sudo apt-get install -y python3-debian git dpkg-dev fakeroot python3-jinja2

[ -d "$AUTOPKGTEST_DIR" ] || git clone --quiet --branch=debian/5.32 --depth=1 https://salsa.debian.org/ci-team/autopkgtest.git "$AUTOPKGTEST_DIR"
[ -d "$AUTOPKGTEST_DIR" ] || git clone --quiet --depth=1 https://salsa.debian.org/ci-team/autopkgtest.git "$AUTOPKGTEST_DIR"

create_container
;;
Expand All @@ -91,7 +92,7 @@ EOF
# disable autopkgtests which are not for upstream
sed -i '/# NOUPSTREAM/ q' debian/tests/control
# enable more unit tests
sed -i '/^CONFFLAGS =/ s/=/= --werror -Dtests=unsafe -Dsplit-usr=true -Dslow-tests=true -Dfuzz-tests=true -Dman=true /' debian/rules
sed -i '/^CONFFLAGS =/ s/=/= --werror -Dsplit-usr=true /' debian/rules
# no orig tarball
echo '1.0' > debian/source/format

Expand All @@ -101,8 +102,11 @@ EOF
# now build the package and run the tests
rm -rf "$ARTIFACTS_DIR"
# autopkgtest exits with 2 for "some tests skipped", accept that
sudo "$AUTOPKGTEST_DIR/runner/autopkgtest" --env DEB_BUILD_OPTIONS=noudeb \
--env TEST_UPSTREAM=1 ../systemd_*.dsc \
sudo TMPDIR=/var/tmp "$AUTOPKGTEST_DIR/runner/autopkgtest" --env DEB_BUILD_OPTIONS="noudeb nostrip nodoc optimize=-lto" \
--env DPKG_DEB_COMPRESSOR_TYPE="none" \
--env DEB_BUILD_PROFILES="noudeb nodoc" \
--env TEST_UPSTREAM=1 \
../systemd_*.dsc \
-o "$ARTIFACTS_DIR" \
-- lxc -s "$CONTAINER" \
|| [ $? -eq 2 ]
Expand Down
7 changes: 7 additions & 0 deletions hwdb.d/60-evdev.hwdb
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,13 @@ evdev:input:b0003v0ED1p7821*
# Dell
#########################################

# Dell AlpsPS/2 ALPS DualPoint TouchPad
evdev:name:AlpsPS/2 ALPS DualPoint TouchPad:dmi:*:svnDellInc.*:pnLatitudeE7440*:
EVDEV_ABS_00=:::28
EVDEV_ABS_01=:::28
EVDEV_ABS_35=:::28
EVDEV_ABS_36=:::28

# Dell Vostro 1510
evdev:name:AlpsPS/2 ALPS GlidePoint*:dmi:bvn*:bvr*:bd*:svnDellInc.:pnVostro1510:*
EVDEV_ABS_00=::14
Expand Down
49 changes: 34 additions & 15 deletions hwdb.d/60-keyboard.hwdb
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,18 @@ evdev:atkbd:dmi:bvn*:bvr*:bd*:svnPackard*Bell*:pn*:*

# Swift SF314-511
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnAcer*:pnSwiftSF314-511:pvr*
KEYBOARD_KEY_8a=f20 # Fn+F12, microphone mute
KEYBOARD_KEY_8a=f20 # Fn+F12, microphone mute

# Predator PHN16-71
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnAcer*:pnPredatorPHN16-71:*
KEYBOARD_KEY_ef=unknown # Keyboard backlight up
KEYBOARD_KEY_f5=prog1 # "predator sense" button
KEYBOARD_KEY_66=micmute # Microphone mute button

# Predator PHN16-72
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnAcer*:pnPredatorPHN16-72:*
KEYBOARD_KEY_66=micmute # Microphone mute button

# Nitro AN515-58
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnAcer*:pnNitro*AN*515-58:pvr*
KEYBOARD_KEY_8a=f20 # Microphone mute button
Expand Down Expand Up @@ -259,7 +263,7 @@ evdev:atkbd:dmi:bvn*:bvr*:bd*:svnAlienware*:pnM17xR3:*
# Aquarius Cmp NS483
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnAquarius*:pnCmp*NS483*:*
KEYBOARD_KEY_56=backslash
KEYBOARD_KEY_76=f21 # Touchpad Toggle
KEYBOARD_KEY_76=f21 # Touchpad Toggle

###########################################################
# Asus
Expand Down Expand Up @@ -341,6 +345,9 @@ evdev:atkbd:dmi:bvn*:bvr*:svnNotebook:pnV54x_6x_TU:*
KEYBOARD_KEY_f7=f21 # Touchpad Toggle
KEYBOARD_KEY_f8=f21 # Touchpad Toggle

evdev:atkbd:dmi:bvn*:bvr*:svnNotebook:pnV5xTNC_TND_TNE:*
KEYBOARD_KEY_81=f20 # Fn+4; Mic Mute

###########################################################
# Compal
###########################################################
Expand Down Expand Up @@ -973,7 +980,7 @@ evdev:atkbd:dmi:bvn*:bvr*:bd*:svnJP-IK:pnLEAPW502:pvr*

# LE14U/LE15U
evdev:atkbd:dmi:bvn*:bvr*:bd*:svnKVADRA*:pn*LE1*U*:*
KEYBOARD_KEY_76=f21 # Fn+F1 Toggle touchpad, sends meta+ctrl+toggle
KEYBOARD_KEY_76=f21 # Fn+F1 Toggle touchpad, sends meta+ctrl+toggle

###########################################################
# Lenovo
Expand Down Expand Up @@ -1901,9 +1908,9 @@ evdev:atkbd:dmi:bvn*:bvr*:bd*:svn[sS][aA][mM][sS][uU][nN][gG]*:pn*700T*:*
# Galaxy Book (2021) NP750XDA-KD4SE
evdev:atkbd:dmi:bvn*:bvr*:bd*:svn[sS][aA][mM][sS][uU][nN][gG]*:pn750XDA:pvr*
KEYBOARD_KEY_81=!esc
KEYBOARD_KEY_ce=!prog1 # Fn+F1 launch settings
KEYBOARD_KEY_ae=!volumedown # Fn+F7 volume down
KEYBOARD_KEY_b0=!volumeup # Fn+F8 volume up
KEYBOARD_KEY_ce=!prog1 # Fn+F1 launch settings
KEYBOARD_KEY_ae=!volumedown # Fn+F7 volume down
KEYBOARD_KEY_b0=!volumeup # Fn+F8 volume up


###########################################################
Expand Down Expand Up @@ -2028,13 +2035,13 @@ evdev:name:Toshiba*input*device:dmi:bvn*:bvr*:bd*:svnTOSHIBA*:pnSatellite*P75-A:

# Portege Z830 ACPI quickstart buttons
evdev:name:Quickstart Button 1:dmi:bvn*:bvr*:bd*:svnTOSHIBA*:pnPORTEGEZ830:*
KEYBOARD_KEY_1=prog1 # TOSHIBA eco button
KEYBOARD_KEY_1=prog1 # TOSHIBA eco button

evdev:name:Quickstart Button 2:dmi:bvn*:bvr*:bd*:svnTOSHIBA*:pnPORTEGEZ830:*
KEYBOARD_KEY_1=prog2 # TOSHIBA Presentation button
KEYBOARD_KEY_1=prog2 # TOSHIBA Presentation button

evdev:name:Quickstart Button 3:dmi:bvn*:bvr*:bd*:svnTOSHIBA*:pnPORTEGEZ830:*
KEYBOARD_KEY_1=f21 # Touchpad toggle
KEYBOARD_KEY_1=f21 # Touchpad toggle

###########################################################
# VIA
Expand Down Expand Up @@ -2067,11 +2074,11 @@ evdev:atkbd:dmi:bvn*:bvr*:bd*:svnINET:pnP325J:*
# Home: LeftCtrl + Esc -> LeftMeta (ignore LeftCtrl, map Esc to LeftMeta)
# Back: Backspace -> back (map backspace to back)
evdev:name:FTSC1000:00 2808:509C Keyboard:dmi:*:svnXiaomiInc:pnMipad2:*
KEYBOARD_KEY_700e0=unknown # LeftCtrl -> ignore
KEYBOARD_KEY_700e3=unknown # LeftMeta -> ignore
KEYBOARD_KEY_70016=menu # S -> menu
KEYBOARD_KEY_70029=leftmeta # Esc -> LeftMeta (Windows key / Win8 tablets home)
KEYBOARD_KEY_7002a=back # Backspace -> back
KEYBOARD_KEY_700e0=unknown # LeftCtrl -> ignore
KEYBOARD_KEY_700e3=unknown # LeftMeta -> ignore
KEYBOARD_KEY_70016=menu # S -> menu
KEYBOARD_KEY_70029=leftmeta # Esc -> LeftMeta (Windows key / Win8 tablets home)
KEYBOARD_KEY_7002a=back # Backspace -> back

###########################################################
# Zepto
Expand Down Expand Up @@ -2183,7 +2190,7 @@ evdev:atkbd:dmi:bvn*:bvr*:bd*:svnViewSonic:pnVPAD10:*
evdev:name:AT Translated Set 2 keyboard:dmi:bvn*:bvr*:bd*:svnPositivoBahia-VAIO:pnVJPW1[12]F11X*:pvr*:*
# Vaio FE14 (VJFE41F11X, VJE42F11X, VJFE44F11X, VJFE54F11X)
evdev:name:AT Translated Set 2 keyboard:dmi:bvn*:bvr*:bd*:svnPositivoBahia-VAIO:pnVJFE*:pvr*:*
KEYBOARD_KEY_76=f21 # Fn+F1 toggle touchpad
KEYBOARD_KEY_76=f21 # Fn+F1 toggle touchpad

###########################################################
# Positivo
Expand Down Expand Up @@ -2288,6 +2295,18 @@ evdev:input:b0003v05FEp1010*
#
# Presence of a LED is implicit when the property is absent.

# Apple Wireless keyboards
evdev:input:b0005v05aCp022C*
evdev:input:b0005v05aCp022D*
evdev:input:b0005v05aCp022E*
evdev:input:b0005v05aCp0239*
evdev:input:b0005v05aCp023A*
evdev:input:b0005v05aCp023B*
evdev:input:b0005v05aCp0255*
evdev:input:b0005v05aCp0256*
evdev:input:b0005v05aCp0257*
KEYBOARD_LED_NUMLOCK=0

# Logitech K750
evdev:input:b0003v046Dp4002*
KEYBOARD_LED_NUMLOCK=0
Expand Down
2 changes: 2 additions & 0 deletions hwdb.d/60-sensor.hwdb
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:*pnM80TA:*
sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:*pnT100TA:*
sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:*pnT100TAF:*
sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:*pnT100TAM:*
sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:*pnT100TAS:*
sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:pnT200TA:*
ACCEL_MOUNT_MATRIX=1, 0, 0; 0, -1, 0; 0, 0, 1

Expand All @@ -163,6 +164,7 @@ sensor:modalias:acpi:INVN6500*:dmi:*svn*ASUSTeK*:*pn*TP300LA:*
sensor:modalias:acpi:INVN6500*:dmi:*svn*ASUSTeK*:*pn*TP300LD:*
ACCEL_MOUNT_MATRIX=0, 1, 0; 1, 0, 0; 0, 0, 1

sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:*pn*Q551LB:*
sensor:modalias:acpi:INVN6500*:dmi:*svnASUSTeK*:*pn*Q551LN:*
ACCEL_MOUNT_MATRIX=0, 1, 0; -1, 0, 0; 0, 0, 1

Expand Down
15 changes: 3 additions & 12 deletions man/org.freedesktop.systemd1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2344,18 +2344,9 @@ node /org/freedesktop/systemd1/unit/avahi_2ddaemon_2eservice {
was already active).</para>

<para><varname>ActiveState</varname> contains a state value that reflects whether the unit is currently
active or not. The following states are currently defined: <literal>active</literal>,
<literal>reloading</literal>, <literal>inactive</literal>, <literal>failed</literal>,
<literal>activating</literal>, and <literal>deactivating</literal>. <literal>active</literal> indicates
that unit is active (obviously...). <literal>reloading</literal> indicates that the unit is active and
currently reloading its configuration. <literal>inactive</literal> indicates that it is inactive and
the previous run was successful or no previous run has taken place yet. <literal>failed</literal>
indicates that it is inactive and the previous run was not successful (more information about the
reason for this is available on the unit type specific interfaces, for example for services in the
<varname>Result</varname> property, see below). <literal>activating</literal> indicates that the unit
has previously been inactive but is currently in the process of entering an active state. Conversely
<literal>deactivating</literal> indicates that the unit is currently in the process of
deactivation.</para>
active or not. The following states are currently defined:</para>

<xi:include href="unit-states.xml" xpointer="table"/>

<para><varname>SubState</varname> encodes states of the same state machine that
<varname>ActiveState</varname> covers, but knows more fine-grained states that are
Expand Down
2 changes: 1 addition & 1 deletion man/sd_bus_message_append_array.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<funcdef>int sd_bus_message_append_array</funcdef>
<paramdef>sd_bus_message *<parameter>m</parameter></paramdef>
<paramdef>char <parameter>type</parameter></paramdef>
<paramdef>void *<parameter>ptr</parameter></paramdef>
<paramdef>const void *<parameter>ptr</parameter></paramdef>
<paramdef>size_t <parameter>size</parameter></paramdef>
</funcprototype>

Expand Down
15 changes: 9 additions & 6 deletions man/systemctl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,15 @@ To show all installed unit files use 'systemctl list-unit-files'.</programlistin

<para>The LOAD column shows the load state, one of <constant>loaded</constant>,
<constant>not-found</constant>, <constant>bad-setting</constant>, <constant>error</constant>,
<constant>masked</constant>. The ACTIVE columns shows the general unit state, one of
<constant>active</constant>, <constant>reloading</constant>, <constant>inactive</constant>,
<constant>failed</constant>, <constant>activating</constant>, <constant>deactivating</constant>. The SUB
column shows the unit-type-specific detailed state of the unit, possible values vary by unit type. The list
of possible LOAD, ACTIVE, and SUB states is not constant and new systemd releases may both add and remove
values. <programlisting>systemctl --state=help</programlisting> command maybe be used to display the
<constant>masked</constant>. The ACTIVE columns shows the general unit state, one of the
following:</para>

<xi:include href="unit-states.xml" xpointer="table"/>

<para>The SUB column shows the unit-type-specific detailed state of the unit, possible values
vary by unit type. The list of possible LOAD, ACTIVE, and SUB states is not constant and new
systemd releases may both add and remove values.
<programlisting>systemctl --state=help</programlisting> command may be used to display the
current set of possible values.</para>

<para>This is the default command.</para>
Expand Down
5 changes: 5 additions & 0 deletions man/systemd.special.xml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,11 @@
names like <varname>single</varname>, <varname>rescue</varname>, <varname>1</varname>,
<varname>3</varname>, <varname>5</varname>, …; see
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>.</para>

<para>For typical unit files please set <literal>WantedBy=</literal> to a regular target (like
<filename>multi-user.target</filename> or <filename>graphical.target</filename>),
instead of <filename>default.target</filename>, since such a service will also be run on special
boots like on system update, emergency boot…</para>
</listitem>
</varlistentry>
<varlistentry>
Expand Down
21 changes: 6 additions & 15 deletions man/systemd.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,21 +74,12 @@
configuration files, whose syntax and basic set of options is
described in
<citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
however some are created automatically from other configuration
files, dynamically from system state or programmatically at runtime.
Units may be "active" (meaning started, bound, plugged in, …,
depending on the unit type, see below), or "inactive" (meaning
stopped, unbound, unplugged, …), as well as in the process of
being activated or deactivated, i.e. between the two states (these
states are called "activating", "deactivating"). A special
"failed" state is available as well, which is very similar to
"inactive" and is entered when the service failed in some way
(process returned error code on exit, or crashed, an operation
timed out, or after too many restarts). If this state is entered,
the cause will be logged, for later reference. Note that the
various unit types may have a number of additional substates,
which are mapped to the five generalized unit states described
here.</para>
however some are created automatically from other configuration files, dynamically from system state or
programmatically at runtime. Units may be in a number of states, described in the following table. Note
that the various unit types may have a number of additional substates, which are mapped to the
generalized unit states described here.</para>

<xi:include href="unit-states.xml" xpointer="table"/>

<para>The following unit types are available:</para>

Expand Down
56 changes: 56 additions & 0 deletions man/unit-states.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?xml version="1.0"?>
<!DOCTYPE refsect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">

<!--
SPDX-License-Identifier: LGPL-2.1-or-later
-->

<refsect1>
<title/>

<table id="table">
<title>Unit ACTIVE states</title>
<tgroup cols='2'>
<colspec colname='state'/>
<colspec colname='description'/>
<thead>
<row>
<entry>State</entry>
<entry>Description</entry>
</row>
</thead>
<tbody>
<row>
<entry><varname>active</varname></entry>
<entry>Started, bound, plugged in, …, depending on the unit type.</entry>
</row>
<row>
<entry><varname>inactive</varname></entry>
<entry>Stopped, unbound, unplugged, …, depending on the unit type.</entry>
</row>
<row>
<entry><varname>failed</varname></entry>
<entry>Similar to <constant>inactive</constant>, but the unit failed in some way (process returned error code on exit, crashed, an operation timed out, or after too many restarts).
</entry>
</row>
<row>
<entry><varname>activating</varname></entry>
<entry>Changing from <constant>inactive</constant> to <constant>active</constant>.</entry>
</row>
<row>
<entry><varname>deactivating</varname></entry>
<entry>Changing from <constant>active</constant> to <constant>inactive</constant>.</entry>
</row>
<row>
<entry><varname>maintenance</varname></entry>
<entry>Unit is <constant>inactive</constant> and a maintenance operation is in progress.</entry>
</row>
<row>
<entry><varname>reloading</varname></entry>
<entry>Unit is <constant>active</constant> and it is reloading its configuration.</entry>
</row>
</tbody>
</tgroup>
</table>

</refsect1>
2 changes: 1 addition & 1 deletion src/basic/audit-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static int try_audit_request(int fd) {

n = recvmsg_safe(fd, &mh, 0);
if (n < 0)
return -errno;
return n;
if (n != NLMSG_LENGTH(sizeof(struct nlmsgerr)))
return -EIO;

Expand Down
4 changes: 4 additions & 0 deletions src/basic/missing_loop.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ struct loop_config {
#ifndef LOOP_SET_STATUS_SETTABLE_FLAGS
#define LOOP_SET_STATUS_SETTABLE_FLAGS (LO_FLAGS_AUTOCLEAR | LO_FLAGS_PARTSCAN)
#endif

#ifndef LOOP_SET_BLOCK_SIZE
# define LOOP_SET_BLOCK_SIZE 0x4C09
#endif
5 changes: 3 additions & 2 deletions src/basic/os-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ int path_is_extension_tree(const char *path, const char *extension, bool relax_e
/* Does the path exist at all? If not, generate an error immediately. This is useful so that a missing root dir
* always results in -ENOENT, and we can properly distinguish the case where the whole root doesn't exist from
* the case where just the os-release file is missing. */
if (laccess(path, F_OK) < 0)
return -errno;
r = laccess(path, F_OK);
if (r < 0)
return r;

/* We use /usr/lib/extension-release.d/extension-release[.NAME] as flag for something being a system extension,
* and {/etc|/usr/lib}/os-release as a flag for something being an OS (when not an extension). */
Expand Down
9 changes: 5 additions & 4 deletions src/basic/path-lookup.c
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,7 @@ char **env_generator_binary_paths(bool is_system) {

int find_portable_profile(const char *name, const char *unit, char **ret_path) {
const char *p, *dot;
int r;

assert(name);
assert(ret_path);
Expand All @@ -894,13 +895,13 @@ int find_portable_profile(const char *name, const char *unit, char **ret_path) {
if (!joined)
return -ENOMEM;

if (laccess(joined, F_OK) >= 0) {
r = laccess(joined, F_OK);
if (r >= 0) {
*ret_path = TAKE_PTR(joined);
return 0;
}

if (errno != ENOENT)
return -errno;
if (r != -ENOENT)
return r;
}

return -ENOENT;
Expand Down
Loading
Loading