]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
4 weeks agosys-utils: hwclock-rtc: fix pointer usage stable/v2.39
Karthikeyan Krishnasamy [Sat, 23 Mar 2024 08:09:55 +0000 (13:39 +0530)] 
sys-utils: hwclock-rtc: fix pointer usage

passing double pointer doesn't fill param value

Signed-off-by: Karthikeyan Krishnasamy <karthikeyan@linumiz.com>
(cherry picked from commit 1064a53e4ff357dc649a8c4a0a41dfb5a1191bba)

14 months agolibsmartcols: fix column reduction
Karel Zak [Tue, 30 Apr 2024 08:26:09 +0000 (10:26 +0200)] 
libsmartcols: fix column reduction

4013986: libsmartcols:      TAB: [0x5626b97f8e10]: #5 reduce stage (width=38, term=1)
4013986: libsmartcols:      COL: [0x5626b97f9130]:  [01] (null) reduced 2-->18446744073709551615

Fixes: https://github.com/util-linux/util-linux/issues/3003
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 28c7c29b2d57705fdc4ff486b38937c73b2d9b5d)

14 months agolibsmartcols: fix reduction stages use
Karel Zak [Wed, 15 May 2024 13:45:19 +0000 (15:45 +0200)] 
libsmartcols: fix reduction stages use

There is no proper check for the number of reduction stages, so in
some cases, the code can loop indefinitely.

The patch also fixes 'rc' variable shadowing.

Fixes: https://github.com/util-linux/util-linux/issues/3046
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 8a01276a3c5bc09dce342e087019c704d8c56a32)

15 months agolibmount: fix umount --read-only
Karel Zak [Tue, 23 Apr 2024 08:29:37 +0000 (10:29 +0200)] 
libmount: fix umount --read-only

Reported-by: Krzysztof Olędzki <ole@ans.pl>
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit a20e7e23a8565e01b1c84de6924d1fbbdb1cfccc)

15 months agobuild-sys: release++ (v2.39.4) v2.39.4
Karel Zak [Thu, 4 Apr 2024 08:33:20 +0000 (10:33 +0200)] 
build-sys: release++ (v2.39.4)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 months agobuild-sys: fix po-man clean
Karel Zak [Tue, 23 Jan 2024 11:32:03 +0000 (12:32 +0100)] 
build-sys: fix po-man clean

The files created by "make" should be removed by "clean".

Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit b90a0a19670e94bb5eb8f9d1c26b00204da81242)

15 months agodocs: update v2.39.4-ReleaseNotes
Karel Zak [Thu, 4 Apr 2024 08:31:27 +0000 (10:31 +0200)] 
docs: update v2.39.4-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 months agodocs: update AUTHORS file
Karel Zak [Thu, 4 Apr 2024 08:28:59 +0000 (10:28 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
15 months agopo-man: merge changes
Karel Zak [Wed, 3 Apr 2024 19:40:36 +0000 (21:40 +0200)] 
po-man: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 months agopo: merge changes
Karel Zak [Wed, 3 Apr 2024 19:40:30 +0000 (21:40 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 months agolibblkid: topology/ioctl: correctly handle kernel types
Thomas Weißschuh [Tue, 2 Apr 2024 16:55:29 +0000 (18:55 +0200)] 
libblkid: topology/ioctl: correctly handle kernel types

Commit 5d71d711d07a ("libblkid: topolicy/ioctl: use union for multiple data types")
incorrectly assumed that set_ulong and set_int refer to the type
returned by the kernel. Instead the different function pointer names
refer to the types of the function pointers.
However all ioctls, except for the later added BLKGETDISKSEQ, return
32bit integers.
This made libblkid also interpret the upper 32bits too, leading to
garbage values.

Introduce a new member 'kernel_size' to also handle the 64bit
BLKGETDISKSEQ.

Drop data.ul as it is no actually used.

Closes #2904
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit a10081a52c48a5232db30d8e0a7a7570cc8163ae)

15 months agolibmount: make sure "option=" is used as string
Karel Zak [Wed, 20 Mar 2024 15:08:16 +0000 (16:08 +0100)] 
libmount: make sure "option=" is used as string

mount(8) cares about case when option specified as "name=" (it means
without data). See for example 727c689908c5e68c92aa1dd65e0d3bdb6d91c1e5.

We need this also for new mount API and use FSCONFIG_SET_STRING rather
than FSCONFIG_SET_FLAG.

strace -e fsconfig ./mount -o usrjquota= /dev/sdc1 /mnt/test

Old:
fsconfig(3, FSCONFIG_SET_STRING, "source", "/dev/sdc1", 0) = 0
fsconfig(3, FSCONFIG_SET_FLAG, "usrjquota", NULL, 0) = -1 EINVAL (Invalid argument)

Fixed:
fsconfig(3, FSCONFIG_SET_STRING, "source", "/dev/sdc1", 0) = 0
fsconfig(3, FSCONFIG_SET_STRING, "usrjquota", "", 0) = 0

Fixes: https://github.com/util-linux/util-linux/issues/2837
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 0c5485348b155420ecd1bfcdabb1b869ca5ee3c2)
(cherry picked from commit 175af5cb8e0434bbc6660f7ccbea3a188d8f2d72)

15 months agolibmount: don't initialize variable twice (#2714)
Thorsten Kukuk [Tue, 26 Mar 2024 13:00:57 +0000 (14:00 +0100)] 
libmount: don't initialize variable twice (#2714)

Signed-off-by: Thorsten Kukuk <kukuk@suse.com>
(cherry picked from commit 5509e9b18a4b956b910fff772b9f88880ae28ca1)
(cherry picked from commit 2d8ca2cf86309adbeccd07cba36c753e28d12a1b)

15 months agowall: fix calloc cal [-Werror=calloc-transposed-args]
Karel Zak [Wed, 17 Jan 2024 11:37:08 +0000 (12:37 +0100)] 
wall: fix calloc cal [-Werror=calloc-transposed-args]

term-utils/wall.c:143:37: error: xcalloc sizes specified with sizeof in the earlier argument and not in the later argument [-Werror=calloc-transposed-args]
  143 |         buf->groups = xcalloc(sizeof(*buf->groups), buf->ngroups);
      |                                     ^
term-utils/wall.c:143:37: note: earlier argument should specify number of elements, later size of each element

Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 07f0f0f5bd1e5e2268257ae1ff6d76a9b6c6ea8b)

15 months agowall: fix escape sequence Injection [CVE-2024-28085]
Karel Zak [Thu, 21 Mar 2024 10:16:20 +0000 (11:16 +0100)] 
wall: fix escape sequence Injection [CVE-2024-28085]

Let's use for all cases the same output function.

Reported-by: Skyler Ferrante <sjf5462@rit.edu>
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 404b0781f52f7c045ca811b2dceec526408ac253)

16 months agolibblkid: Check offset in LUKS2 header
Milan Broz [Fri, 16 Feb 2024 15:44:12 +0000 (16:44 +0100)] 
libblkid: Check offset in LUKS2 header

LUKS2 binary header contains offset field that describes where
the header should be located.

If this offset is not correct, blkid should tread this header
as invalid.

This patch fixes problem when both swap and LUKS headers are
present (LUKS header was swapped out) and detected LUKS header
is at a wrong offset.
As LUKS has higher priority, it confuses detection.

Signed-off-by: Milan Broz <gmazyland@gmail.com>
(cherry picked from commit e49de00f4a22f91ec5af08d97e30a198cd64e00d)

16 months agoRevert "libblkid: try LUKS2 first when probing"
Fabian Vogt [Wed, 12 Jul 2023 13:48:27 +0000 (15:48 +0200)] 
Revert "libblkid: try LUKS2 first when probing"

mdadm superblocks before 1.1 are placed at the end of the device, which
means that the data contained inside the array starts at offset 0. For
LUKS inside MD, blkid falsely detects this as plain LUKS instead of a
linux_raid_member. This causes e.g. dracut to not assemble the array
during boot and system startup fails.

This reverts commit b8889c0a214aeb3dd47bf1ab280fe5534b64d2aa.

(cherry picked from commit 93ba7961779789217a1f814ce3110ff8c040c8c3)

19 months agoMerge branch 'stable-2.39/libsmartcols' of https://github.com/t-8ch/util-linux into...
Karel Zak [Thu, 14 Dec 2023 08:41:37 +0000 (09:41 +0100)] 
Merge branch 'stable-2.39/libsmartcols' of https://github.com/t-8ch/util-linux into stable/v2.39

* 'stable-2.39/libsmartcols' of https://github.com/t-8ch/util-linux:
  libsmartcols: (tests) add test for continuous json output
  libsmartcols: only recognize closed object as final element
  libsmartcols: flush correct stream
  libsmartcols: drop spourious newline in between streamed JSON objects
  github: add labeler

19 months agolibsmartcols: (tests) add test for continuous json output
Thomas Weißschuh [Tue, 12 Dec 2023 18:40:31 +0000 (19:40 +0100)] 
libsmartcols: (tests) add test for continuous json output

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit be59729281c63eb8f226bdbdc9a356276be5eeae)

19 months agolibsmartcols: only recognize closed object as final element
Thomas Weißschuh [Tue, 12 Dec 2023 17:42:44 +0000 (18:42 +0100)] 
libsmartcols: only recognize closed object as final element

When streaming JSON normal values also have indent == 1.
For those however it is incorrect to close the stream.

Fixes #2644
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit 5130ce8ee5b71c249e0c8bb7a4975dc8a48c64fa)

19 months agolibsmartcols: flush correct stream
Thomas Weißschuh [Tue, 12 Dec 2023 17:42:11 +0000 (18:42 +0100)] 
libsmartcols: flush correct stream

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit 36a853a9a71c46f088ab8f7416d68af112a59ce4)

19 months agolibsmartcols: drop spourious newline in between streamed JSON objects
Thomas Weißschuh [Tue, 12 Dec 2023 17:41:33 +0000 (18:41 +0100)] 
libsmartcols: drop spourious newline in between streamed JSON objects

scols_table_print_range() already appends a newline correctly.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit b2b0bf88d35513a746c144f35826eb47692386dc)

19 months agogithub: add labeler
Karel Zak [Tue, 5 Dec 2023 14:55:31 +0000 (15:55 +0100)] 
github: add labeler

For more details see https://github.com/actions/labeler

Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 6016e40a08fc311ef9be9d1de6fc2bcef166a0ac)

19 months agodmesg: (tests) validate json output
Thomas Weißschuh [Fri, 8 Dec 2023 17:10:53 +0000 (18:10 +0100)] 
dmesg: (tests) validate json output

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit 0448e15f3b927db137de852168144f21851b6931)

19 months agodmesg: only write one message to json
Thomas Weißschuh [Fri, 8 Dec 2023 17:10:50 +0000 (18:10 +0100)] 
dmesg: only write one message to json

Before we would add all of the message buffer.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit 159ea1470d712a92e0e0b02a8d10e072acbfbaf8)

19 months agojsonwrt: add ul_jsonwrt_value_s_sized
Thomas Weißschuh [Fri, 8 Dec 2023 17:10:47 +0000 (18:10 +0100)] 
jsonwrt: add ul_jsonwrt_value_s_sized

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit e60bc3a1a1d0d976a408b9edf21e7d755af88fe6)

19 months agodmesg: open-code LOG_MAKEPRI
Thomas Weißschuh [Fri, 8 Dec 2023 17:10:44 +0000 (18:10 +0100)] 
dmesg: open-code LOG_MAKEPRI

LOG_MAKEPRI between musl and glibc differ in their behavior.

musl performs the '<< 3' as part of the macro while glibc expects the
caller to do so.
Just provide our own implementation to avoid the issue.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit 38a4480bbf807b26bedf39f68c81b20828681b02)

19 months agodmesg: -r LOG_MAKEPRI needs fac << 3
Edward Chron [Fri, 23 Jun 2023 01:31:31 +0000 (18:31 -0700)] 
dmesg: -r LOG_MAKEPRI needs fac << 3

Submission to Project: util-linux
Open Incident: #2325 at github.com/util-linux/util-linux/issues/2325
Component: util-linux/sys-utils
File: dmesg.c
Code level patch applied against: 2.39 - latest code pulled from
           git.github.com:util-linux/util-linux.git

BUG: The facility field passed to macro from /usr/include/sys/syslog.h
     LOG_MAKEPRI(fac, pri) by dmesg -r needs to have fac argument
     shifted 3 bit to the left to return a valid raw valid. The lower
     3 bits for a raw value are used by the loglevel priority (pri)
     field, so the facility bits can only occupy the bits above the
     bits used to hold the pri field value.

The dmesg -r command produces the incorrect output for the raw value
for the or'ed combination of the facility | loglevel priority that gets
produced by the LOG_MAKEPRI macro. That macro is defined as:

    #define LOG_MAKEPRI(fac, pri) ((fac) | (pri))

which is defined in the current glibc code in /usr/include/sys/syslog.h
and is used only in the dmesg -r (raw output option) command to form the
raw value for facility or'ed with loglevel priority and displayed as:

    <#>[#######.######] ...

where the # in <#> contains the output from the LOG_MAKEPRI macro.

The lower 3 bits are reserved for the loglevel priority 0-7
and the bits above that are for the facility value, so the facility
index should be shifted to the left three bits and or'ed with the
loglevel priority.

In the glibc file: /usr/include/sys/syslog.h the macro LOG_MAKEPRI is
defined as:

        #define LOG_MAKEPRI(fac, pri) ((fac) | (pri)

and returns the wrong facility and loglevel priority values, ideally it
should be defined as:

        #define LOG_MAKEPRI(fac, pri) ((fac << 3) | (pri))

to return the correct raw value.

We checked with glibc developement and the LOG_MAKEPRI macro is correct
as is and can't be changed as it used by *BSD as is so the solution for
dmesg -r is to shift the facility index left by 3 bits as input to the
LOG_MAKEPRI macro. That is what glibc development recommended.
(For reference, see glibc bugzilla Bug 30563)

We can front end the LOG_MAKEPRI macro with a macro that shifts the
facility by the needed 3 bits which we've added to dmesg.c:

    #define LOG_RAW_FAC_PRI(fac, pri) LOG_MAKEPRI((fac << 3), (pri))

This has been tested and works correctly to produce the correct raw
mode value for Facility or'ed together with Loglevel priority.

You can verify that this fix works correctly.

We can test by adding several records to /dev/kmsg like this:

    echo "<14> Test Message Facility 8 Loglevel 6" >> /dev/kmsg
    echo "<15> Test Message Facility 8 Loglevel 7" >> /dev/kmsg
    echo "<30> Test Message Facility 24 Loglevel 6" >> /dev/kmsg
    echo "<31> Test Message Facility 24 Loglevel 7" >> /dev/kmsg

these commands add 4 records to the dmesg buffer. Then when we print the
records by cat'ing /dev/kmsg or using the dmesg command several ways:

    -bash-4.2# cat /dev/kmsg | grep "Test Message Facility"
    14,1114,495317239,-; Test Message Facility 8 Loglevel 6
    15,1115,503340779,-; Test Message Facility 8 Loglevel 7
    30,1116,643374764,-; Test Message Facility 24 Loglevel 6
    31,1117,657165117,-; Test Message Facility 24 Loglevel 7

    -bash-4.2# dmesg -x | grep "Test Message Facility"
    user  :info  : [  495.317239]  Test Message Facility 8 Loglevel 6
    user  :debug : [  503.340779]  Test Message Facility 8 Loglevel 7
    daemon:info  : [  643.374764]  Test Message Facility 24 Loglevel 6
    daemon:debug : [  657.165117]  Test Message Facility 24 Loglevel 7

    -bash-4.2# dmesg -S -x | grep "Test Message Facility"
    user  :info  : [  495.317239]  Test Message Facility 8 Loglevel 6
    user  :debug : [  503.340779]  Test Message Facility 8 Loglevel 7
    daemon:info  : [  643.374764]  Test Message Facility 24 Loglevel 6
    daemon:debug : [  657.165117]  Test Message Facility 24 Loglevel 7

   -bash-4.2# dmesg -S -r | grep "Test Message Facility"
   <14>[  495.317239]  Test Message Facility 8 Loglevel 6
   <15>[  503.340779]  Test Message Facility 8 Loglevel 7
   <30>[  643.374764]  Test Message Facility 24 Loglevel 6
   <31>[  657.165117]  Test Message Facility 24 Loglevel 7

All the above methods agree in their output as expected.
However, running dmesg -r does not agree.

dmesg -r erronously produces:
----------------------------

    -bash-4.2# dmesg -r | grep "Test Message Facility"
    <7>[  495.317239]  Test Message Facility 8 Loglevel 6
    <7>[  503.340779]  Test Message Facility 8 Loglevel 7
    <7>[  643.374764]  Test Message Facility 24 Loglevel 6
    <7>[  657.165117]  Test Message Facility 24 Loglevel 7

However, if we run the dmesg -r command using the new front end macro
LOG_RAW_FAC_PRI(fac, pri) we do get the correct output:

Here is the corrected dmesg -r output:
-------------------------------------

    -bash-4.2# dmesg -r | grep "Test Message Facility"
    <14>[  495.317239]  Test Message Facility 8 Loglevel 6
    <15>[  503.340779]  Test Message Facility 8 Loglevel 7
    <30>[  643.374764]  Test Message Facility 24 Loglevel 6
    <31>[  657.165117]  Test Message Facility 24 Loglevel 7

shifting the facility index value by 3 bits in the LOG_RAW_FAC_PRI macro
provides the correct ouput as shown. All the other commands produce the
same output so now they are all in agreement.

Signed-off-by: Ivan Delalande <colona@arista.com>
Signed-off-by: Edward Chron <echron@arista.com>
(cherry picked from commit fa6ac102dc1bca83d75af423a2be3e377d60432e)

19 months agodmesg: correctly print all supported facility names
Thomas Weißschuh [Fri, 8 Dec 2023 17:10:42 +0000 (18:10 +0100)] 
dmesg: correctly print all supported facility names

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit e07c072c15fe11efe8c3d034cd4b362593f0bd20)

19 months agofadvise: (test) test with 64k blocks
Thomas Weißschuh [Sun, 21 May 2023 19:45:10 +0000 (21:45 +0200)] 
fadvise: (test) test with 64k blocks

This will allow the tests to also pass on systems with 64k pagesizes.

Closes #2249
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
19 months agofadvise: (test) don't compare fincore page counts
Thomas Weißschuh [Sun, 21 May 2023 19:44:20 +0000 (21:44 +0200)] 
fadvise: (test) don't compare fincore page counts

These depend on the machines pagesize and are therefore not a good
comparision.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
19 months agofadvise: (tests) factor out calls to "fincore"
Thomas Weißschuh [Sun, 21 May 2023 19:43:38 +0000 (21:43 +0200)] 
fadvise: (tests) factor out calls to "fincore"

This will make it easier to pass argument later.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
19 months agofadvise: (test) dynamically calculate expected test values
Thomas Weißschuh [Sun, 21 May 2023 19:42:14 +0000 (21:42 +0200)] 
fadvise: (test) dynamically calculate expected test values

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
19 months agoMerge branch 'stable-2.39/enosys-fixes' of https://github.com/t-8ch/util-linux into...
Karel Zak [Tue, 5 Dec 2023 10:00:18 +0000 (11:00 +0100)] 
Merge branch 'stable-2.39/enosys-fixes' of https://github.com/t-8ch/util-linux into stable/v2.39

* 'stable-2.39/enosys-fixes' of https://github.com/t-8ch/util-linux:
  build: only build test_enosys if an audit arch exists

19 months agobuild-sys: release++ (v2.39.3) v2.39.3
Karel Zak [Mon, 4 Dec 2023 12:32:56 +0000 (13:32 +0100)] 
build-sys: release++ (v2.39.3)

Signed-off-by: Karel Zak <kzak@redhat.com>
19 months agodocs: update v2.39.3-ReleaseNotes
Karel Zak [Mon, 4 Dec 2023 12:31:54 +0000 (13:31 +0100)] 
docs: update v2.39.3-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
19 months agodocs: update AUTHORS file
Karel Zak [Mon, 4 Dec 2023 12:28:31 +0000 (13:28 +0100)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
19 months agopo-man: merge changes
Karel Zak [Mon, 4 Dec 2023 12:26:16 +0000 (13:26 +0100)] 
po-man: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
19 months agopo: merge changes
Karel Zak [Mon, 4 Dec 2023 12:26:08 +0000 (13:26 +0100)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
19 months agopo: add ro.po (from translationproject.org)
Remus-Gabriel Chelu [Mon, 4 Dec 2023 12:20:13 +0000 (13:20 +0100)] 
po: add ro.po (from translationproject.org)

19 months agopo: update es.po (from translationproject.org)
Antonio Ceballos Roa [Mon, 4 Dec 2023 12:20:13 +0000 (13:20 +0100)] 
po: update es.po (from translationproject.org)

19 months agobuild: only build test_enosys if an audit arch exists
Thomas Weißschuh [Fri, 1 Dec 2023 08:35:02 +0000 (09:35 +0100)] 
build: only build test_enosys if an audit arch exists

Link: https://lore.kernel.org/util-linux/9211accf8670f28778166a1acdc186e8dd28f2e8.camel@physik.fu-berlin.de/
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
20 months agolsfd: fix memory leak in append_filter_expr()
Karel Zak [Thu, 2 Nov 2023 11:42:55 +0000 (12:42 +0100)] 
lsfd: fix memory leak in append_filter_expr()

Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 53bcec4b25a60c125403a80a18ca3aacf1dc8269)

20 months agolsfd: avoid undefined behavior
Thomas Weißschuh [Sun, 19 Nov 2023 16:21:25 +0000 (17:21 +0100)] 
lsfd: avoid undefined behavior

Passing a pointer to a different datatype to tfind() then were inserted
evokes undefines behavior.
This triggers UBSAN as shown below.

Instead pass the proper structs.

```
../misc-utils/lsfd.c:513:27: runtime error: member access within misaligned address 0x7ffe9ee6495c for type 'struct proc', which requires 8 byte alignment
0x7ffe9ee6495c: note: pointer points here
  1a 1a 1a 1a 01 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  d0 49 e6 9e fe 7f 00 00
              ^
    #0 0x56159cfa4a3b in proc_tree_compare ../misc-utils/lsfd.c:513
    #1 0x7f9dd4d2d743 in __tfind (/usr/lib/libc.so.6+0x10f743) (BuildId: 8bfe03f6bf9b6a6e2591babd0bbc266837d8f658)
    #2 0x56159cfa4ac3 in get_proc ../misc-utils/lsfd.c:518
    #3 0x56159cfe217b in anon_pidfd_get_name ../misc-utils/lsfd-unkn.c:203
    #4 0x56159cfe1040 in unkn_fill_column ../misc-utils/lsfd-unkn.c:93
    #5 0x56159cfaaa37 in fill_column ../misc-utils/lsfd.c:1178
    #6 0x56159cfaaac5 in convert_file ../misc-utils/lsfd.c:1193
    #7 0x56159cfaac4f in convert ../misc-utils/lsfd.c:1212
    #8 0x56159cfb2b54 in main ../misc-utils/lsfd.c:2317
    #9 0x7f9dd4c45ccf  (/usr/lib/libc.so.6+0x27ccf) (BuildId: 8bfe03f6bf9b6a6e2591babd0bbc266837d8f658)
    #10 0x7f9dd4c45d89 in __libc_start_main (/usr/lib/libc.so.6+0x27d89) (BuildId: 8bfe03f6bf9b6a6e2591babd0bbc266837d8f658)
    #11 0x56159cfa3c34 in _start (util-linux/build-meson/lsfd+0x41c34) (BuildId: 35fece1a205f96a2dbfe7a0e93b658530de675c4)
```

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit 816109f6ffb99d3a7aee1ff6c3467803dcd7939c)

20 months agolsfd: (man) fix the form for the optional argument of --inet option
Masatake YAMATO [Wed, 12 Jul 2023 15:02:12 +0000 (00:02 +0900)] 
lsfd: (man) fix the form for the optional argument of --inet option

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
(cherry picked from commit d0fe6e42fc18f11367e5ee6275c2619f9f61e892)

20 months agoAdd Phytium FTC310 & FTC664 support
zuoqian [Wed, 29 Nov 2023 02:57:52 +0000 (02:57 +0000)] 
Add Phytium FTC310 & FTC664 support

Signed-off-by: zuoqian <zuoqian2023@gmail.com>
(cherry picked from commit c5d9cc4c787b8e58f918c901ee5a92286bf891e8)

20 months agoAdd Phytium FTC862 cpu model.
unknown [Tue, 12 Sep 2023 08:11:43 +0000 (16:11 +0800)] 
Add Phytium FTC862 cpu model.
fix:#2486

(cherry picked from commit b36a79254087107e2ddd9032a131832508ddb7f8)

20 months agolibmount: accept '\' as escape for options separator
Karel Zak [Tue, 28 Nov 2023 13:40:48 +0000 (14:40 +0100)] 
libmount: accept '\' as escape for options separator

The libmount library can accept any characters as an option value when
the value is quoted (e.g., foo="b,a,r"). However, overlayfs users have
been using '\' as an escape character (e.g., lowerdir=foo\,bar).

Although this escaping mechanism was never officially supported by
libmount/mount, it worked for the old mount(2) API because it kept the
options string unparsed for the mount(2) syscall.

The introduction of the new mount API, which utilizes fsconfig(2) per
option, has brought attention to this issue.

This patch addresses the problem by introducing official support for
'\' as an escape character for options separator.

Suggested-by: Miklos Szeredi <miklos@szeredi.hu>
References: https://lore.kernel.org/all/CAOQ4uxhgUSPkYAV8SJu-SFszkJcVO3-M4DXf46nJUtXODrPk2g@mail.gmail.com/T/#ma8e6cfc1ce7229abc089e03eed99b23b90d701e5
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit f6c29efa929cb8c741591ab38061e7921d53a997)

20 months agotests: add ts_skip_docker
Thomas Weißschuh [Wed, 31 May 2023 15:27:38 +0000 (17:27 +0200)] 
tests: add ts_skip_docker

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit 023e77d26a12aa632266e2a967e944bcbf9c8a12)

20 months agoMerge branch 'stable-2.39/bcachefs-fixes' of https://github.com/t-8ch/util-linux...
Karel Zak [Mon, 27 Nov 2023 10:25:29 +0000 (11:25 +0100)] 
Merge branch 'stable-2.39/bcachefs-fixes' of https://github.com/t-8ch/util-linux into PR/stable-v2.39.3

* 'stable-2.39/bcachefs-fixes' of https://github.com/t-8ch/util-linux:
  tests: skip broken tests on docker
  libblkid: (bcachefs) add support for sub-device labels
  libblkid: (bcachefs) adapt to major.minor version

20 months agotests: skip broken tests on docker
Thomas Weißschuh [Wed, 31 May 2023 15:31:01 +0000 (17:31 +0200)] 
tests: skip broken tests on docker

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit d53284bb1e40f19ac065e52ff9df97d2caf60259)

20 months agolibblkid: (bcachefs) add support for sub-device labels
Thomas Weißschuh [Tue, 26 Sep 2023 07:43:35 +0000 (09:43 +0200)] 
libblkid: (bcachefs) add support for sub-device labels

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit da91337a8109beb461c889ffe32701d3cb95aee2)

20 months agolibblkid: (bcachefs) adapt to major.minor version
Thomas Weißschuh [Sun, 9 Jul 2023 18:03:57 +0000 (20:03 +0200)] 
libblkid: (bcachefs) adapt to major.minor version

The version superblock field has been split into a major and minor
version part in the upstream code.
Adapt libblkid to it.

Link: https://lore.kernel.org/linux-bcachefs/20230709171551.2349961-11-kent.overstreet@linux.dev/
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit 8beea162ce1c2f5a7565044b68434efbb96f0697)

20 months agolibuuid: avoid truncate clocks.txt to improve performance
Goldwyn Rodrigues [Tue, 10 Oct 2023 23:08:59 +0000 (18:08 -0500)] 
libuuid: avoid truncate clocks.txt to improve performance

Instead of explicitly truncating clocks.txt file, pad with
whitespaces in the end of file.
This is done to improve performance of libuuid on xfs
filesystems. Instead of truncating the file, pad it with whitespaces.
This is anyways used as a failsafe method in case truncate fails.

The reason why this regression was introduced was because of:
869ae85dae64 ("xfs: flush new eof page on truncate to avoid post-eof corruption")

An attempt to move the clocks.txt to /run (tmpfs) has been attempted before
[1] and with commit ab2e7dd17 ("libuuid: move clock state file from
/var/lib to /var/run"). The latter was reverted.

[1] https://www.spinics.net/lists/util-linux-ng/msg17331.html

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
20 months agolibuuid/src/gen_uuid.c: fix cs_min declaration
Fabrice Fontaine [Tue, 7 Nov 2023 17:43:57 +0000 (18:43 +0100)] 
libuuid/src/gen_uuid.c: fix cs_min declaration

Define cs_min through a define and not a const int to avoid the
following build failure with -O0 raised since version 2.39 and
https://github.com/util-linux/util-linux/commit/2fa4168c8bc9d5438bc1dfadda293c7c21b6fa59:

libuuid/src/gen_uuid.c: In function 'uuid_generate_time_generic':
libuuid/src/gen_uuid.c:536:33: error: initializer element is not constant
  THREAD_LOCAL int  cache_size = cs_min;
                                 ^~~~~~

For consistency, also use define for cs_max and cs_factor

Fixes:
 - http://autobuild.buildroot.org/results/2f80a5cdb523cc3c8c0f3693607a1be036b2ae98

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
20 months agolibmount: fix possible NULL dereference [coverity scan]
Karel Zak [Mon, 6 Nov 2023 10:40:27 +0000 (11:40 +0100)] 
libmount: fix possible NULL dereference [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
20 months agomeson: install wall executable with group 'tty'
Christian Hesse [Thu, 2 Nov 2023 10:37:33 +0000 (11:37 +0100)] 
meson: install wall executable with group 'tty'

... for proper permissions.

20 months agomeson: install write executable with group 'tty'
Christian Hesse [Tue, 31 Oct 2023 07:38:15 +0000 (08:38 +0100)] 
meson: install write executable with group 'tty'

... to fix:

write: effective gid does not match group of /dev/pts/3

20 months agolibmount: improve mnt_table_next_child_fs()
Karel Zak [Thu, 2 Nov 2023 09:41:03 +0000 (10:41 +0100)] 
libmount: improve mnt_table_next_child_fs()

The function utilizes the struct libmnt_itr to iterate through the mountinfo file
but neglects the direction specified by the iterator. This a bug. The application
must manage the direction, as, for instance, umount(8) requires the children of
the mountpoint in reverse order.

Fixes: https://github.com/util-linux/util-linux/issues/2552
Signed-off-by: Karel Zak <kzak@redhat.com>
20 months agodocs: add SPDX to boilerplate.c
Karel Zak [Wed, 1 Nov 2023 13:58:57 +0000 (14:58 +0100)] 
docs: add SPDX to boilerplate.c

Signed-off-by: Karel Zak <kzak@redhat.com>
20 months agodisk-utils: add SPDX and Copyright notices
Karel Zak [Wed, 1 Nov 2023 13:47:41 +0000 (14:47 +0100)] 
disk-utils: add SPDX and Copyright notices

Explicitly state the license (usually GPL-2.0-or-later; our default)
and include copyright statements in all files to prevent false positive
reports from license analysis tools. Add also add SPDX-License-Identifier
tag to all files.

Signed-off-by: Karel Zak <kzak@redhat.com>
20 months agoinclude/audit-arch: add missing SPDX
Karel Zak [Wed, 1 Nov 2023 12:56:01 +0000 (13:56 +0100)] 
include/audit-arch: add missing SPDX

Signed-off-by: Karel Zak <kzak@redhat.com>
20 months agosetterm: avoid restoring flags from uninitialized memory
Chris Hofstaedtler [Tue, 31 Oct 2023 13:52:26 +0000 (14:52 +0100)] 
setterm: avoid restoring flags from uninitialized memory

Depending on the used compiler and flags, previously either F_SETFL was called
with 0 or with a random value. Never with the intended previous flags.

[kzak@redhat.com: - tiny coding style change]

Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
Tested-by: Emanuele Rocca <ema@debian.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
20 months agoFix man page for col to correct documentation error
Connor-GH [Sat, 21 Oct 2023 22:58:36 +0000 (17:58 -0500)] 
Fix man page for col to correct documentation error

20 months agoUpdate col.c to fix option mistake
Connor-GH [Sat, 21 Oct 2023 22:55:49 +0000 (17:55 -0500)] 
Update col.c to fix option mistake

20 months agoumount: handle bindmounts during --recursive
Thomas Weißschuh [Tue, 17 Oct 2023 16:06:15 +0000 (18:06 +0200)] 
umount: handle bindmounts during --recursive

Fixes #2551

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
20 months agolscpu: fix caches separator for --parse=<list>
Karel Zak [Thu, 12 Oct 2023 22:03:15 +0000 (00:03 +0200)] 
lscpu: fix caches separator for --parse=<list>

Fixes: https://github.com/util-linux/util-linux/issues/2544
Signed-off-by: Karel Zak <kzak@redhat.com>
20 months agoUse empty libuser config file.
Anatoly Pugachev [Thu, 12 Oct 2023 11:13:02 +0000 (14:13 +0300)] 
Use empty libuser config file.

In case of an absence /etc/libuser.conf, use empty file by pointing
LIBUSER_CONF to /dev/null. This allows chfn/gecos to pass without error.

PS: The "libuser" library is no longer maintained, and it was recommended
by the original author to not use it anymore.

20 months agolibblkid: exfat: fix fail to find volume label
Yuezhang Mo [Wed, 11 Oct 2023 10:42:11 +0000 (18:42 +0800)] 
libblkid: exfat: fix fail to find volume label

Commit f98b56326 set the maximum number of iterations to 10000.
If the volume label is after the 10000th entry, the volume label
will not be found. So this commit sets the maximum number of
iterations to correct value 256×1024×1024/32.

Fixes: f98b56326 ("libblkid: [exfat] Limit maximum number of iterations in find_label")
Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Andy Wu <Andy.Wu@sony.com>
Reviewed-by: Aoyama Wataru <wataru.aoyama@sony.com>
20 months agoblkpr: store return value of getopt_long in int
Thomas Weißschuh [Wed, 11 Oct 2023 05:20:43 +0000 (07:20 +0200)] 
blkpr: store return value of getopt_long in int

getopt_long returns an int. Don't try to store it in a char.

See #2538.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
20 months agolib/path: Set errno in case of fgets failure
Tobias Stoeckmann [Tue, 10 Oct 2023 19:00:48 +0000 (21:00 +0200)] 
lib/path: Set errno in case of fgets failure

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
20 months agoautotools: fix AC_DEFINE_UNQUOTED() use
Karel Zak [Mon, 9 Oct 2023 10:18:31 +0000 (12:18 +0200)] 
autotools: fix AC_DEFINE_UNQUOTED() use

Let's use AC_DEFINE_UNQUOTED() for string-like content, otherwise use
a simple AC_DEFINE().

Signed-off-by: Karel Zak <kzak@redhat.com>
20 months agoautotools: fix librtas check
Karel Zak [Mon, 9 Oct 2023 10:15:20 +0000 (12:15 +0200)] 
autotools: fix librtas check

Fixes: https://github.com/util-linux/util-linux/discussions/2527
Signed-off-by: Karel Zak <kzak@redhat.com>
20 months agolib/path: fix typos
Tobias Stoeckmann [Sun, 8 Oct 2023 18:51:07 +0000 (20:51 +0200)] 
lib/path: fix typos

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
20 months agolib/path: set errno in case of error
Tobias Stoeckmann [Sun, 8 Oct 2023 18:47:53 +0000 (20:47 +0200)] 
lib/path: set errno in case of error

Some programs like lscpu expect errno to be set if ul_path_cpuparse
fails.

[kzak@redhat.com: - backport to stable/v2.39]

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
20 months agolib/path: fix possible out of boundary access
Tobias Stoeckmann [Sun, 8 Oct 2023 18:41:29 +0000 (20:41 +0200)] 
lib/path: fix possible out of boundary access

If fgets reads from a file starting with a NUL byte in ul_path_cpuparse,
then the check for newline leads to an out of boundary access.

Proof of Concept (compile with --enable-asan):

1. Prepare /tmp/poc with required files
```
$ install -d /tmp/poc/sys/devices/system/cpu
$ dd if=/dev/zero of=/tmp/poc/sys/devices/system/cpu/possible bs=1 count=1
$ install -D /dev/null /tmp/poc/proc/cpuinfo
```

2. Run lscpu with sysroot option
```
$ lscpu --sysroot /tmp/poc
=================================================================
==78238==ERROR: AddressSanitizer: heap-buffer-overflow
```

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
20 months agolibblkid: reset errno before calling probefuncs
Thomas Weißschuh [Mon, 2 Oct 2023 20:24:21 +0000 (22:24 +0200)] 
libblkid: reset errno before calling probefuncs

The probers optionally use errno to communicate error details.
When a leftover errno is set from libblkid internally this can confuse
the probers.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
20 months agosetpriv: fix group argument completion
Thomas Weißschuh [Mon, 2 Oct 2023 13:52:33 +0000 (15:52 +0200)] 
setpriv: fix group argument completion

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
20 months agolibfdisk: reset errno before calling read()
Thomas Weißschuh [Mon, 2 Oct 2023 11:01:47 +0000 (13:01 +0200)] 
libfdisk: reset errno before calling read()

The else branch will be executed on short reads.
For those errno is not reset so a random left-over errno value may be
checked.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
20 months agoblkid: fix call to err_exclusive_options
Thomas Weißschuh [Mon, 2 Oct 2023 09:39:53 +0000 (11:39 +0200)] 
blkid: fix call to err_exclusive_options

err_exclusive_options needs to be passed the long options array,
otherwise it will crash.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
20 months agodocs: use HTTPS for GitHub clone URLs
Jakub Wilk [Mon, 2 Oct 2023 05:22:54 +0000 (07:22 +0200)] 
docs: use HTTPS for GitHub clone URLs

GitHub has dropped support for the git:// protocol:
https://github.blog/changelog/2022-03-15-removed-unencrypted-git-protocol-and-certain-ssh-keys/

20 months agolibblkid: (probe) handle probe without chain gracefully
Thomas Weißschuh [Wed, 27 Sep 2023 22:51:42 +0000 (00:51 +0200)] 
libblkid: (probe) handle probe without chain gracefully

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
20 months agolib/idcache: always gracefully handle null cache
Thomas Weißschuh [Wed, 27 Sep 2023 22:40:28 +0000 (00:40 +0200)] 
lib/idcache: always gracefully handle null cache

The "get" functions already do this and some callers rely on it also for
"add" ones.

For completeness also handle it in free_idcache().

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
20 months agoscript-playutils: close filestream in case ignore_line() fails
Thomas Weißschuh [Wed, 27 Sep 2023 21:30:27 +0000 (23:30 +0200)] 
script-playutils: close filestream in case ignore_line() fails

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
20 months agolibblkid: (vxfs) report endianness
Thomas Weißschuh [Tue, 26 Sep 2023 22:49:04 +0000 (00:49 +0200)] 
libblkid: (vxfs) report endianness

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
20 months agolibblkid: (ntfs) validate that sector_size is a power of two
Thomas Weißschuh [Mon, 25 Sep 2023 22:27:22 +0000 (00:27 +0200)] 
libblkid: (ntfs) validate that sector_size is a power of two

The NTFS prober reads data based off an offset of the sector size.
If the sector size is unaligned and the read data is cached then other
probers can read unaligned values.

Sector sizes for NTFS actually only make sense as power-of-two so
validate that and as a sideeffect avoid the unaligned reads.

Also add the reproducer from OSS-Fuzz that found this issue.

Fixes #2509

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
20 months agolibsmartcols: handle nameless tables in export format
Thomas Weißschuh [Fri, 22 Sep 2023 09:20:36 +0000 (11:20 +0200)] 
libsmartcols: handle nameless tables in export format

fputs(NULL) is not allowed.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
20 months agoldattach: don't call exit() from signal handler
Thomas Weißschuh [Fri, 22 Sep 2023 18:21:38 +0000 (20:21 +0200)] 
ldattach: don't call exit() from signal handler

Instead use _exit().

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
20 months agolslogins: fix realloc() loop allocation size
Thomas Weißschuh [Fri, 22 Sep 2023 18:08:22 +0000 (20:08 +0200)] 
lslogins: fix realloc() loop allocation size

If stat() fails the realloc loop would always try to allocate zero
bytes.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
20 months agolib/env: avoid underflow of read_all_alloc() return value
Thomas Weißschuh [Fri, 22 Sep 2023 09:19:37 +0000 (11:19 +0200)] 
lib/env: avoid underflow of read_all_alloc() return value

read_all_alloc() returns a negative error on failure.
When casting this to an unsigned type the failure check "< 1"
will not work.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
20 months agolibblkid: avoid memory leak of cachefile path
Thomas Weißschuh [Fri, 22 Sep 2023 09:20:04 +0000 (11:20 +0200)] 
libblkid: avoid memory leak of cachefile path

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
20 months agolibmount: gracefully handle NULL path in mnt_resolve_target()
Thomas Weißschuh [Fri, 22 Sep 2023 09:30:57 +0000 (11:30 +0200)] 
libmount: gracefully handle NULL path in mnt_resolve_target()

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
20 months agomore: avoid out-of-bound access
Thomas Weißschuh [Fri, 22 Sep 2023 17:53:24 +0000 (19:53 +0200)] 
more: avoid out-of-bound access

The realloc() needs to happen before that memory is used.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
20 months agolibfdisk: handle allocation failure in fdisk_new_partition
Thomas Weißschuh [Fri, 22 Sep 2023 17:35:01 +0000 (19:35 +0200)] 
libfdisk: handle allocation failure in fdisk_new_partition

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
20 months agologin: Use pid_t for child_pid
Tobias Stoeckmann [Tue, 19 Sep 2023 18:45:40 +0000 (20:45 +0200)] 
login: Use pid_t for child_pid

Since child_pid keeps track of a PID, it should be of type pid_t
and not of type int.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
20 months agologin: move comment
Tobias Stoeckmann [Tue, 19 Sep 2023 18:42:03 +0000 (20:42 +0200)] 
login: move comment

In 0b4d75fae55b4a5ff8f65df8551c56cf1eeb9b08 the variable "timeout" has
been moved from global to local scope, but its comment was not.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
20 months agobuild-sys: fix libmount/src/hooks.c use
Karel Zak [Mon, 18 Sep 2023 11:08:57 +0000 (13:08 +0200)] 
build-sys: fix libmount/src/hooks.c use

Reported-by: Samuel Thibault <samuel.thibault@aquilenet.fr>
Signed-off-by: Karel Zak <kzak@redhat.com>
20 months agolscpu: Use 4K buffer size instead of BUFSIZ
Khem Raj [Fri, 15 Sep 2023 07:18:18 +0000 (00:18 -0700)] 
lscpu: Use 4K buffer size instead of BUFSIZ

Some lines in /proc/cpuinfo can be large e.g. flags and can then
truncate them in displaying them

BUFSIZ can vary quite a bit  e.g. glibc/linux systems its 8192
but on musl/linux and OSX its 1024, on mingW it is 256, some tests e.g.
x86_64-64cpu-linux6.2.tar.gz has added really long line for cpu flags
line which is greater than 1024 characters and hence this test fails
on musl because lscpu -s reports truncated string

Fixes x86_64-64cpu-linux6.2 tests

Signed-off-by: Khem Raj <raj.khem@gmail.com>
s

20 months agoautotools: fix typos
Karel Zak [Mon, 11 Sep 2023 18:27:37 +0000 (20:27 +0200)] 
autotools: fix typos

Signed-off-by: Karel Zak <kzak@redhat.com>
20 months agolibmount: make.stx_mnt_id use more robust
Karel Zak [Thu, 31 Aug 2023 08:30:55 +0000 (10:30 +0200)] 
libmount: make.stx_mnt_id use more robust

Signed-off-by: Karel Zak <kzak@redhat.com>