]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
15 months agolastlog2: begin descriptions of options with a lowercase letter
Benno Schulenberg [Tue, 26 Mar 2024 15:48:22 +0000 (16:48 +0100)] 
lastlog2: begin descriptions of options with a lowercase letter

These descriptions are not full sentences and do not end with a period,
so they should not start with a capital either.

15 months agotextual: fix some typos and inconsistencies in usage and error messages
Benno Schulenberg [Tue, 26 Mar 2024 15:48:21 +0000 (16:48 +0100)] 
textual: fix some typos and inconsistencies in usage and error messages

Reported-by: Petr Pisar <petr.pisar@atlas.cz>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
15 months agodocs: fix GPL name typo
Karel Zak [Wed, 24 Apr 2024 10:05:25 +0000 (12:05 +0200)] 
docs: fix GPL name typo

References: https://github.com/util-linux/util-linux/pull/2988
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit f4cb44bd1140ff3e778491671f4bd17e73cb78ee)

15 months agolsfd: (man) fix license name
Jakub Wilk [Mon, 22 Apr 2024 13:52:04 +0000 (15:52 +0200)] 
lsfd: (man) fix license name

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
(cherry picked from commit d2dc150fe502a5bd8fa6f1a4a7c4c08bacfe4ca8)

15 months agolsns: fix netns use
Karel Zak [Mon, 22 Apr 2024 12:28:52 +0000 (14:28 +0200)] 
lsns: fix netns use

 # ip netns add vpn
 # lsns -T -t net
 Segmentation fault (core dumped)

The function interpolate_missing_namespaces() reads data from /proc.
However, in the case of a persistent namespace, there is no procfs
entry for the namespace. Therefore, this function should ignore it.

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

15 months agolibmount: fix comment typo for mnt_fs_get_comment()
Tianjia Zhang [Mon, 22 Apr 2024 06:01:25 +0000 (14:01 +0800)] 
libmount: fix comment typo for mnt_fs_get_comment()

Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
(cherry picked from commit c630dbc38f7cd1f838e65e2c43d8375bce1ec20f)

15 months agolibmount: Fix access check for utab in context
Karel Zak [Mon, 22 Apr 2024 11:09:04 +0000 (13:09 +0200)] 
libmount: Fix access check for utab in context

The function mnt_has_regular_utab() properly detects that the utab is
not writable, but this is ignored by the high-level context API. As a
result, the library later attempts to update the file and ends up with
a warning in mount(8):

 $ mkdir sys
 $ unshare --map-root-user --mount
 $ mount --rbind /sys sys
 $ umount --lazy sys; echo $?
 umount: /home/user/sys: filesystem was unmounted, but failed to update userspace mount table.
 16

In this case, the utab should be ignored.

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

15 months agomeson: Add build-dmesg option
Jordan Williams [Wed, 17 Apr 2024 16:13:59 +0000 (11:13 -0500)] 
meson: Add build-dmesg option

Require the sys/klog.h header to exist in order to enable the feature.

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
(cherry picked from commit 73f3e2ad6e00c93e9a0c7ed8bdb4eb63ac5ebdad)

15 months agolsblk: simplify SOURCES code
Karel Zak [Mon, 22 Apr 2024 09:51:56 +0000 (11:51 +0200)] 
lsblk: simplify SOURCES code

This complicated implementation originated from an early version of
zero-separated items for libsmartcols. It is no longer necessary.

References: https://github.com/util-linux/util-linux/pull/2983
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit af4c7dac191abadc33aae75916583c890cd2ebc3)

15 months agofindmnt: always zero-terminate SOURCES data
Thomas Weißschuh [Sun, 21 Apr 2024 18:00:31 +0000 (20:00 +0200)] 
findmnt: always zero-terminate SOURCES data

libsmartcols expects it's data fields to be zero terminated.
See the call to strlen() in scols_column_greatest_wrap().
ul_buffer however does not guarantee that termination,
ul_buffer_append_strings() discard the zero-termination.

Always zero-terminate in get_data_col_sources() and drop the now
unnecessary variable "i".

Closes: https://github.com/util-linux/util-linux/issues/2980
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit 6594679e9af805075c282da35b1b2a8d767e403b)

15 months agoagetty: Don't override TERM passed by the user
Daan De Meyer [Fri, 19 Apr 2024 18:07:47 +0000 (20:07 +0200)] 
agetty: Don't override TERM passed by the user

Before 4869b259d68f65ea88df625ce8df9c0177d55a01, any TERM passed
on the agetty command line would be used instead of the default TERM.
After 4869b259d68f65ea88df625ce8df9c0177d55a01, the default TERM is
used unconditionally.

Fix the regression by checking if the user passed a custom TERM.

Fixes: 4869b259d68f65ea88df625ce8df9c0177d55a01
(cherry picked from commit af354e92111769d57e43eb4f1825c0d99c894ddb)

15 months agoMerge branch 'stable/2.40-meson-fix-build-ipcrm-option' of https://github.com/jwillik...
Karel Zak [Mon, 22 Apr 2024 10:06:37 +0000 (12:06 +0200)] 
Merge branch 'stable/2.40-meson-fix-build-ipcrm-option' of https://github.com/jwillikers/util-linux into stable/v2.40

* 'stable/2.40-meson-fix-build-ipcrm-option' of https://github.com/jwillikers/util-linux:
  meson: Require the seminfo type for ipcmk, ipcrm, and ipcs
  meson: Add build-ipcmk option
  meson: Add missing check for build-ipcrm option

15 months agotests: (lsns::ioctl_ns) add more debug print
Masatake YAMATO [Tue, 16 Apr 2024 22:49:40 +0000 (07:49 +0900)] 
tests: (lsns::ioctl_ns) add more debug print

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
15 months agotests: (lsns::ioctl_ns) record stdout/stderr for debugging the case
Masatake YAMATO [Tue, 16 Apr 2024 20:57:45 +0000 (05:57 +0900)] 
tests: (lsns::ioctl_ns) record stdout/stderr for debugging the case

When the test case runs successfully, we expect the case test prints
nothing to stderr. If something is printed to stderr, it helps us
debug lsns command and the test case.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
15 months agomeson: Require the seminfo type for ipcmk, ipcrm, and ipcs
Jordan Williams [Wed, 17 Apr 2024 16:56:09 +0000 (11:56 -0500)] 
meson: Require the seminfo type for ipcmk, ipcrm, and ipcs

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
(cherry picked from commit 023950b1b623e6c3598d244a5569eeb0d5141237)

15 months agomeson: Add build-ipcmk option
Jordan Williams [Wed, 17 Apr 2024 16:37:04 +0000 (11:37 -0500)] 
meson: Add build-ipcmk option

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
(cherry picked from commit 0b91fd9f45bbdb0ed792f2535b8b95b965e8a176)

15 months agomeson: Add missing check for build-ipcrm option
Jordan Williams [Wed, 17 Apr 2024 16:11:21 +0000 (11:11 -0500)] 
meson: Add missing check for build-ipcrm option

The build-ipcrm option exists in meson_options.txt but has no effect.
Use the option to gate building the ipcrm executable.

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
(cherry picked from commit 25c9b3b4d849f6211ccb668932f0f8823286cd7d)

15 months agoall_syscalls: use sed to extract defines from headers
Thomas Weißschuh [Tue, 16 Apr 2024 19:56:22 +0000 (21:56 +0200)] 
all_syscalls: use sed to extract defines from headers

Posix-compliant awk does not seem capable of matching lines and
extracting capture groups of them.
Use sed instead.

Reported-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Link: https://lore.kernel.org/util-linux/051624b9256db27a731d62c031cb627d9f5a256e.camel@physik.fu-berlin.de/
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit 7e8bf34a2a54b639d95c51a4a0368b0c9578d612)

15 months agoall_syscalls: don't hardcode AWK invocation
Thomas Weißschuh [Tue, 16 Apr 2024 07:26:22 +0000 (09:26 +0200)] 
all_syscalls: don't hardcode AWK invocation

Use the buildsystem to find a usable awk implementation and use that.

Reported-by: Firas Khalil Khana <firasuke@gmail.com>
Link: https://github.com/util-linux/util-linux/pull/2949
Reported-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
https://lore.kernel.org/util-linux/31ccace2e5912ffc428e065cd66764088c625c4d.camel@physik.fu-berlin.de/
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit 543f991f62659b9a3ff67f9cda3456b2a5bb3f98)

15 months agoall_syscalls: don't warn during cleanup
Thomas Weißschuh [Tue, 16 Apr 2024 07:14:28 +0000 (09:14 +0200)] 
all_syscalls: don't warn during cleanup

On failure the output files may not have been created.

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

15 months agoall_syscalls: fail if any step fails
Thomas Weißschuh [Tue, 16 Apr 2024 07:00:41 +0000 (09:00 +0200)] 
all_syscalls: fail if any step fails

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

15 months agolibsmartcols: reset wrap after calculation
Karel Zak [Tue, 16 Apr 2024 08:49:31 +0000 (10:49 +0200)] 
libsmartcols: reset wrap after calculation

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

15 months agoMerge branch 'lslocks--no-sleep-in-test-case-for-stable' of https://github.com/masata...
Karel Zak [Wed, 17 Apr 2024 07:49:40 +0000 (09:49 +0200)] 
Merge branch 'lslocks--no-sleep-in-test-case-for-stable' of https://github.com/masatake/util-linux into stable/v2.40

* 'lslocks--no-sleep-in-test-case-for-stable' of https://github.com/masatake/util-linux:
  lslocks: remove a unused local variable
  lslocks: don't abort gathering per-process information even if opening a /proc/[0-9]* fails

15 months agolslocks: remove a unused local variable
Masatake YAMATO [Fri, 12 Apr 2024 19:13:03 +0000 (04:13 +0900)] 
lslocks: remove a unused local variable

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

15 months agolslocks: don't abort gathering per-process information even if opening a /proc/[0...
Masatake YAMATO [Fri, 12 Apr 2024 18:59:39 +0000 (03:59 +0900)] 
lslocks: don't abort gathering per-process information even if opening a /proc/[0-9]* fails

If a process ($pid) taking a lock is gone while running lslocks,
gathering per-process information for the process may fail in opening
/proc/$pid. Though lslocks should work with incomplete information,
the original code stopped gathering per-process information for the
other processes.

As a result of the original behavior, tests/ts/lslocks/lslocks really
failed in an environment where multiple test cases ran simultaneously.

Close #2624 again.
See also #2633.

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

15 months agomeson: Remove lingering mq_libs variable
Jordan Williams [Tue, 16 Apr 2024 15:30:42 +0000 (10:30 -0500)] 
meson: Remove lingering mq_libs variable

The cherry-pick of #2879 in PR #2941 to the stable/v2.40 branch didn't
include the removal of mq_libs like it should have.
I must have resolved a conflict incorrectly in the cherry-pick.
This just removes the lingering definitions which are no longer used.
The extra find_library call for rt is a problem.

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
15 months agoMerge branch 'stable/meson-version-script-libblkid' of https://github.com/jwillikers...
Karel Zak [Tue, 16 Apr 2024 09:08:50 +0000 (11:08 +0200)] 
Merge branch 'stable/meson-version-script-libblkid' of https://github.com/jwillikers/util-linux into stable/v2.40

* 'stable/meson-version-script-libblkid' of https://github.com/jwillikers/util-linux:
  meson: Only use the --version-script linker flag where it is supported

15 months agoMerge branch 'stable/optional-libmount' of https://github.com/jwillikers/util-linux...
Karel Zak [Tue, 16 Apr 2024 09:07:35 +0000 (11:07 +0200)] 
Merge branch 'stable/optional-libmount' of https://github.com/jwillikers/util-linux into stable/v2.40

* 'stable/optional-libmount' of https://github.com/jwillikers/util-linux:
  meson: Remove libblkid dependency on libmount
  meson: Only build libmount when required
  meson: Use libblkid as a dependency
  meson: Use libmount as a dependency

15 months agolsns: tolerate lsns_ioctl(fd, NS_GET_{PARENT,USERNS}) failing with ENOSYS
Masatake YAMATO [Sat, 13 Apr 2024 16:40:14 +0000 (01:40 +0900)] 
lsns: tolerate lsns_ioctl(fd, NS_GET_{PARENT,USERNS}) failing with ENOSYS

With the original code, "lsns/filedesc" test case failed on
"build (qemu-user, s390x)" and "build (qemu-user, riscv64)".

On the platforms, lsns_ioctl(fd, NS_GET_{PARENT,USERNS}) failed
with ENOSYS. The error stoped the iteration for gathering
information from /proc/[0-9]+. As a result, lsns printed
nothing. We don't expect this behavior.

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

15 months agolsns: report with warnx if a namespace related ioctl fails with ENOSYS
Masatake YAMATO [Sun, 14 Apr 2024 16:44:38 +0000 (01:44 +0900)] 
lsns: report with warnx if a namespace related ioctl fails with ENOSYS

Qemu userspace emulation reports ENOSYS if it doesn't support a given
ioctl command.

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

15 months agoFix misplaced else in mnt_update_already_done
Gavin Lloyd [Wed, 10 Apr 2024 00:38:02 +0000 (17:38 -0700)] 
Fix misplaced else in mnt_update_already_done

See 477401f0de

(cherry picked from commit 6b316e0c9f1feb61bef3bb14b1356be8fbefcc17)

15 months agoRevert "lib/pager: Apply pager-specific fixes only when needed"
Thomas Weißschuh [Sat, 13 Apr 2024 07:42:39 +0000 (09:42 +0200)] 
Revert "lib/pager: Apply pager-specific fixes only when needed"

Less is not always detectable, as it can be hidden behind symlinks or
wrapper as for example in a default Debian installation.
Also testing for the literal string "less" does not match full path
specifications like "/usr/bin/less".

Instead always apply the fixes.

This reverts commit c10ad975895372122f72c8d9da089b6ea69f778b.
Closes #2951
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit 966cb1382b59a9c1d5735b47aba27050c6d5c7e5)

15 months agomeson: Remove libblkid dependency on libmount
Jordan Williams [Mon, 8 Apr 2024 16:37:01 +0000 (11:37 -0500)] 
meson: Remove libblkid dependency on libmount

I added this incorrect dependency between libblkid and libmount.
The option to build libblkid should be allowed whether or not the
build-libmount feature is allowed.

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
(cherry picked from commit efce415c094e7daf2b0781c70129b4f0f05120d4)

15 months agomeson: Only build libmount when required
Jordan Williams [Fri, 5 Apr 2024 14:49:17 +0000 (07:49 -0700)] 
meson: Only build libmount when required

It is not currently possible to build any part of util-linux without
building libmount when using Meson.
The libuuid library is commonly used on macOS, where it is not possible
to build libmount.
To address this, this PR makes it possible to build without libmount and
 libblkid.

Options have been added to allow toggling whether to build targets that
require libmount.
This makes it possible to fully disable building libmount.

The python object had to be defined outside of the meson.build file in
libmount/python since this may no longer be included.
The python object is used for tests.

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
(cherry picked from commit b6799ccbc08aea69a26cdaa97ab436bfae2ae27f)

15 months agomeson: Use libblkid as a dependency
Jordan Williams [Mon, 15 Apr 2024 13:02:05 +0000 (08:02 -0500)] 
meson: Use libblkid as a dependency

Several utilities depend on libblkid internally.
Currently, link_with and global include directories are used to
associate targets with libblkid.
This PR uses Meson's dependencies argument for targets to define this
relationship instead.
This carries include directories along with the library to link.

An additional dependency is declared for the static libblkid library.
A couple of executables use this dependency explicitly.

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
(cherry picked from commit a764efb5fb14b9a66bff8807c04ddcebc51939ea)

15 months agomeson: Use libmount as a dependency
Jordan Williams [Fri, 5 Apr 2024 15:33:22 +0000 (08:33 -0700)] 
meson: Use libmount as a dependency

Several utilities depend on libmount internally.
Currently, link_with and global include directories are used to
associate targets with libmount.
This PR uses Meson's dependencies argument for targets to define this
relationship instead.
This carries include directories along with the library to link.

An additional dependency is declared for the static libmount library.
A couple of executables use this dependency explicitly.

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
(cherry picked from commit c43b185a3feb8cd7261c94f42a566486ce2c0438)

15 months agomeson: Only use the --version-script linker flag where it is supported
Jordan Williams [Mon, 8 Apr 2024 17:02:52 +0000 (12:02 -0500)] 
meson: Only use the --version-script linker flag where it is supported

macOS does not support the --version-script linker flag.
Only use it if it is available.

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
(cherry picked from commit 21da737099626a5cf00e1e0719ed2262aae6e2ea)

15 months agoMerge branch 'stable-meson-optional-rt' of https://github.com/jwillikers/util-linux...
Karel Zak [Mon, 15 Apr 2024 07:16:40 +0000 (09:16 +0200)] 
Merge branch 'stable-meson-optional-rt' of https://github.com/jwillikers/util-linux into stable/v2.40

* 'stable-meson-optional-rt' of https://github.com/jwillikers/util-linux:
  meson: Only pick up the rt library once
  meson: Add build-lsfd option and make rt dependency optional

15 months agomeson: Only pick up the rt library once
Jordan Williams [Mon, 1 Apr 2024 17:18:52 +0000 (12:18 -0500)] 
meson: Only pick up the rt library once

Require the rt library for the build-lsfd feature.

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
(cherry picked from commit 243950279f413e3844d13a2d87b3853c1242f437)

15 months agomeson: Add build-lsfd option and make rt dependency optional
Jordan Williams [Tue, 9 Apr 2024 21:58:27 +0000 (16:58 -0500)] 
meson: Add build-lsfd option and make rt dependency optional

A dependency on the rt library is unnecessarily required when checking
for the clock_gettime and timer_create functions.
This causes the build to fail if the rt library is not found.
This should not fail the build as rt is only required for the checks.
Additionally, the lsfd executable and some tests require rt.
There is currently no option to toggle building lsfd.

This PR makes it possible to build without the rt library.
Function checks no longer require rt for the build.
The function checks for the rt library only run when rt is available.
This PR adds an option to allow building without lsfd.
This makes it possible to build without the executable that requires rt.
To not require rt for the test, a additional check has been added.
The effected tests won't be built unless rt has been found.

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
(cherry picked from commit 06b27058a04c1ac9eba44f19e320ecd862f6d75f)

15 months agofindmnt: revise the code for -I and -D option
Masatake YAMATO [Fri, 5 Apr 2024 13:40:36 +0000 (22:40 +0900)] 
findmnt: revise the code for -I and -D option

Fixes #2913.

3dd79293b5b655da9d913dedd8facb08959a7826 added -I option.
However, the code used bit flags (FL_DF and FL_DF_INODES) wrongly;
the code broke the output of -D option.

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

15 months agoMerge branch 'lsfd--verify-proc-syscall' of https://github.com/masatake/util-linux...
Karel Zak [Mon, 8 Apr 2024 07:36:51 +0000 (09:36 +0200)] 
Merge branch 'lsfd--verify-proc-syscall' of https://github.com/masatake/util-linux into stable/v2.40

* 'lsfd--verify-proc-syscall' of https://github.com/masatake/util-linux:
  tests: (lsfd::mkfds-multiplexing) skip if /proc/$pid/syscall is broken

15 months agoMerge branch 'lsfd--debug-endpoint' of https://github.com/masatake/util-linux into...
Karel Zak [Fri, 5 Apr 2024 08:55:21 +0000 (10:55 +0200)] 
Merge branch 'lsfd--debug-endpoint' of https://github.com/masatake/util-linux into stable/v2.40

* 'lsfd--debug-endpoint' of https://github.com/masatake/util-linux:
  tests: (test_mkfds::sockdiag) verify the recieved message to detect whether the socket is usable or not
  lsfd: add LSFD_DEBUG env var for debugging

15 months agolibblkid: topology/ioctl: simplify ioctl handling
Thomas Weißschuh [Thu, 4 Apr 2024 05:24:58 +0000 (07:24 +0200)] 
libblkid: topology/ioctl: simplify ioctl handling

Coverity complains about the data copy within the union.
Instead unroll the loop which is less code and easier to follow.

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

16 months agotests: (lsfd::mkfds-multiplexing) skip if /proc/$pid/syscall is broken
Masatake YAMATO [Thu, 4 Apr 2024 19:00:45 +0000 (04:00 +0900)] 
tests: (lsfd::mkfds-multiplexing) skip if /proc/$pid/syscall is broken

Close #2867
Close #2887

We should skip the test case on the platforms where /proc/$pid/syscall
doesn't report correct system call number. On such platforms,

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
16 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)

16 months agotests: (test_mkfds::sockdiag) verify the recieved message to detect whether the socke...
Masatake YAMATO [Mon, 1 Apr 2024 21:34:40 +0000 (06:34 +0900)] 
tests: (test_mkfds::sockdiag) verify the recieved message to detect whether the socket is usable or not

Close #2822.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
16 months agolsfd: add LSFD_DEBUG env var for debugging
Masatake YAMATO [Sat, 30 Mar 2024 09:47:03 +0000 (18:47 +0900)] 
lsfd: add LSFD_DEBUG env var for debugging

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
16 months agomeson: Only require the crypt library when necessary
Jordan Williams [Fri, 29 Mar 2024 15:31:27 +0000 (10:31 -0500)] 
meson: Only require the crypt library when necessary

The `crypt` library is only necessary for two executables.
These are build-newgrp and build-sulogin.
Don't otherwise require this dependency.

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
(cherry picked from commit d0a07e7fb8109e9fdeb5e2c90c019c0cf5f92009)

16 months agomeson: Fix false positive detection of mempcpy on macOS
Jordan Williams [Fri, 29 Mar 2024 19:00:01 +0000 (14:00 -0500)] 
meson: Fix false positive detection of mempcpy on macOS

The has_function check incorrectly detects mempcpy on macOS.
This function is not available on macOS and should not be detected.
Likely, this has to do with Meson's detection of compiler built-ins.
Using a specific prefix and defining _GNU_SOURCE fixes the detection.

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
(cherry picked from commit 2c5a42b3cbf278461a12872ce7a944ad396d47b5)

16 months agopam_lastlog2: link against liblastlog
Thomas Weißschuh [Mon, 1 Apr 2024 20:53:32 +0000 (22:53 +0200)] 
pam_lastlog2: link against liblastlog

While at it also drop the duplicated include path.

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

16 months agolibblkid: Fix segfault when blkid.conf doesn't exist
Karel Zak [Mon, 1 Apr 2024 10:14:50 +0000 (12:14 +0200)] 
libblkid: Fix segfault when blkid.conf doesn't exist

* Move 'line' and 'uevent' to the beginning of the LIBECONF code.
* Remove unwanted space between function name and arguments.
* Check for 'line' pointer before dereferencing.

References: https://github.com/util-linux/util-linux/pull/2883
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 7e357241b413a01c37b0b4d064bc0a47e3259361)

16 months agomeson: respect c_args/CFLAGS when generating syscalls
Karel Zak [Tue, 2 Apr 2024 06:39:40 +0000 (08:39 +0200)] 
meson: respect c_args/CFLAGS when generating syscalls

References: http://github.com/util-linux/util-linux/commit/8e7f14391bab98b3ce83a2df27ebbf76c1b5a9fc
Signed-off-by: Karel Zak <kzak@redhat.com>
16 months agoautotools: distribute pam_lastlog2/meson.build
Thomas Weißschuh [Sat, 30 Mar 2024 16:46:19 +0000 (17:46 +0100)] 
autotools: distribute pam_lastlog2/meson.build

Otherwise building the dist tarball via meson doesn't work.

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

16 months agomeson: Don't define HAVE_ENVIRON_DECL when environ is unavailable
Jordan Williams [Fri, 29 Mar 2024 21:56:43 +0000 (16:56 -0500)] 
meson: Don't define HAVE_ENVIRON_DECL when environ is unavailable

HAVE_ENVIRON_DECL is being defined to 0 by cfg_data.set10().
The code only checks whether or not is defined.
This leads to it not being declared appropriately.
Use cfg_data.set() instead of cfg_data.set10() to define it when true.

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
(cherry picked from commit 640754e29475a22fb19082dbd5cd587edc05e4b7)

16 months agolibuuid: (man) fix function declarations
CismonX [Thu, 28 Mar 2024 23:26:35 +0000 (07:26 +0800)] 
libuuid: (man) fix function declarations

16 months agodocs: add COPYING.MIT
Karel Zak [Mon, 1 Apr 2024 10:04:47 +0000 (12:04 +0200)] 
docs: add COPYING.MIT

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

16 months agoREADME.licensing/flock: Add MIT license mention
Richard Purdie [Thu, 28 Mar 2024 12:16:57 +0000 (12:16 +0000)] 
README.licensing/flock: Add MIT license mention

Looking at the license text, flock.c is under the MIT license (see
https://spdx.org/licenses/MIT).

Add an SPDX license identifier header and add to the list of licenses the
source so everything is correctly listed/identified.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5b8fab1584017d9d9be008c23b90128bba41a7b5)

16 months agobuild-sys: release++ (v2.40) v2.40
Karel Zak [Wed, 27 Mar 2024 11:46:59 +0000 (12:46 +0100)] 
build-sys: release++ (v2.40)

Signed-off-by: Karel Zak <kzak@redhat.com>
16 months agodocs: update v2.40-ReleaseNotes
Karel Zak [Wed, 27 Mar 2024 11:43:32 +0000 (12:43 +0100)] 
docs: update v2.40-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 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>
16 months agodocs: update AUTHORS file
Karel Zak [Wed, 27 Mar 2024 11:16:05 +0000 (12:16 +0100)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
16 months agopo-man: merge changes
Karel Zak [Wed, 27 Mar 2024 11:12:37 +0000 (12:12 +0100)] 
po-man: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 months agopo: merge changes
Karel Zak [Wed, 27 Mar 2024 11:12:31 +0000 (12:12 +0100)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 months agopo-man: update uk.po (from translationproject.org)
Yuri Chornoivan [Wed, 27 Mar 2024 11:10:03 +0000 (12:10 +0100)] 
po-man: update uk.po (from translationproject.org)

16 months agopo-man: update ro.po (from translationproject.org)
Remus-Gabriel Chelu [Wed, 27 Mar 2024 11:10:03 +0000 (12:10 +0100)] 
po-man: update ro.po (from translationproject.org)

16 months agopo-man: update de.po (from translationproject.org)
Mario Blättermann [Wed, 27 Mar 2024 11:10:03 +0000 (12:10 +0100)] 
po-man: update de.po (from translationproject.org)

16 months agopo: update uk.po (from translationproject.org)
Yuri Chornoivan [Wed, 27 Mar 2024 11:08:32 +0000 (12:08 +0100)] 
po: update uk.po (from translationproject.org)

16 months agopo: update ro.po (from translationproject.org)
Remus-Gabriel Chelu [Wed, 27 Mar 2024 11:08:32 +0000 (12:08 +0100)] 
po: update ro.po (from translationproject.org)

16 months agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Wed, 27 Mar 2024 11:08:32 +0000 (12:08 +0100)] 
po: update pl.po (from translationproject.org)

16 months agopo: update ko.po (from translationproject.org)
Seong-ho Cho [Wed, 27 Mar 2024 11:08:32 +0000 (12:08 +0100)] 
po: update ko.po (from translationproject.org)

16 months agopo: update ja.po (from translationproject.org)
Takeshi Hamasaki [Wed, 27 Mar 2024 11:08:32 +0000 (12:08 +0100)] 
po: update ja.po (from translationproject.org)

16 months agopo: update fr.po (from translationproject.org)
Frédéric Marchal [Wed, 27 Mar 2024 11:08:32 +0000 (12:08 +0100)] 
po: update fr.po (from translationproject.org)

16 months agopo: update de.po (from translationproject.org)
Mario Blättermann [Wed, 27 Mar 2024 11:08:32 +0000 (12:08 +0100)] 
po: update de.po (from translationproject.org)

16 months agopo: update cs.po (from translationproject.org)
Petr Písař [Wed, 27 Mar 2024 11:08:32 +0000 (12:08 +0100)] 
po: update cs.po (from translationproject.org)

16 months agolsipc: fix semaphore USED counter
Karel Zak [Tue, 26 Mar 2024 11:45:24 +0000 (12:45 +0100)] 
lsipc: fix semaphore USED counter

The code incorrectly counts only with the first item in the linked
list (due to a typo). It seems rather fragile to use "semds" and
"semdsp" as variable names in the same code ...

 # lsipc -gs

Old:

 KEY ID PERMS OWNER NSEMS RESOURCE DESCRIPTION                                LIMIT USED  USE%
                          SEMMNI   Number of semaphore identifiers            32000    3 0.01%
                          SEMMNS   Total number of semaphores            1024000000  369 0.00%
                          SEMMSL   Max semaphores per semaphore set.          32000    -     -
                          SEMOPM   Max number of operations per semop(2)        500    -     -
                          SEMVMX   Semaphore max value                        32767    -     -

Fixed:

 KEY ID PERMS OWNER NSEMS RESOURCE DESCRIPTION                                LIMIT USED  USE%
                          SEMMNI   Number of semaphore identifiers            32000    3 0.01%
                          SEMMNS   Total number of semaphores            1024000000  156 0.00%
                          SEMMSL   Max semaphores per semaphore set.          32000    -     -
                          SEMOPM   Max number of operations per semop(2)        500    -     -
                          SEMVMX   Semaphore max value                        32767    -     -

Addresses: https://issues.redhat.com/browse/RHEL-30269
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit fa45a6e516065f489b1cfb924ec3fc06960e0839)

16 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)

16 months agotests: update build tests
Karel Zak [Tue, 26 Mar 2024 15:18:25 +0000 (16:18 +0100)] 
tests: update build tests

Signed-off-by: Karel Zak <kzak@redhat.com>
16 months agoautotools: add dependence on libsmartcols for lsclocks
Karel Zak [Tue, 26 Mar 2024 15:17:29 +0000 (16:17 +0100)] 
autotools: add dependence on libsmartcols for lsclocks

Signed-off-by: Karel Zak <kzak@redhat.com>
16 months agomore: remove second check for EOF (#2714)
Thorsten Kukuk [Tue, 26 Mar 2024 09:50:30 +0000 (10:50 +0100)] 
more: remove second check for EOF (#2714)

The second EOF check (c == EOF) will never be reached.

Signed-off-by: Thorsten Kukuk <kukuk@suse.com>
(cherry picked from commit 81184ad44f536f7f66175ef59fe8472760357fe8)

16 months agouuidgen: use xmalloc instead of malloc (#2714)
Thorsten Kukuk [Tue, 26 Mar 2024 08:49:22 +0000 (09:49 +0100)] 
uuidgen: use xmalloc instead of malloc (#2714)

Use xmalloc to make sure we don't reference a NULL pointer in error
case.

Signed-off-by: Thorsten Kukuk <kukuk@suse.com>
(cherry picked from commit 0b14dcd755565f3e48f4c30011b3dfe783558393)

16 months agolscpu: initialize all variables (#2714)
Thorsten Kukuk [Tue, 26 Mar 2024 08:33:32 +0000 (09:33 +0100)] 
lscpu: initialize all variables (#2714)

cpu->bookid got initialized twice instead of drawerid

Signed-off-by: Thorsten Kukuk <kukuk@suse.com>
(cherry picked from commit 21b9f4a5cdc30e947ff9fb0210dc38ae4b16004c)

16 months agorev: Check for wchar conversion errors
Tim Hallmann [Sun, 24 Mar 2024 19:14:30 +0000 (20:14 +0100)] 
rev: Check for wchar conversion errors

Commit c9cc84621ca98ef85499e83ca56f05f12055f193 introduced a regression
where only the actual EOF is handled, not other error conditions
returning WEOF. This leads to an infinite loop upon encountering
conversion errors. For example (using LC_CTYPE="en_US.UTF-8"):

$ printf '\x80' | rev

Signed-off-by: Tim Hallmann <tim@t8w.de>
(cherry picked from commit a610cf8231a02163a4a2b2faf3047d24798fe180)

16 months agolscpu: restructure op-mode printing
Thomas Weißschuh [Tue, 19 Mar 2024 21:49:31 +0000 (22:49 +0100)] 
lscpu: restructure op-mode printing

The existing logic can confuse ASAN.
Restructure it so it is shorter and easer to understand for humans.

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

16 months agosys-utils: hwclock-rtc: fix pointer usage
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)

16 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)

16 months agomeson: Only build blkzone and blkpr if the required linux header exists
Jordan Williams [Wed, 20 Mar 2024 16:41:49 +0000 (11:41 -0500)] 
meson: Only build blkzone and blkpr if the required linux header exists

Checks for the required headers for blkzone and blkptr are done for
 Autotools.
This logic wasn't carried over to Meson.
This PR just adds the same checks.

Fixes #2850.

Signed-off-by: Jordan Williams <jordan@jwillikers.com>
(cherry picked from commit 1a374511693e4b2e8e53966615ce9112553d3b08)

16 months agochcpu(8): document limitations of -g
Stanislav Brabec [Mon, 18 Mar 2024 17:39:36 +0000 (18:39 +0100)] 
chcpu(8): document limitations of -g

Document that chcpu -g is not supported on IBM z/VM because the detach cpu
would CLEAR the running zVM guest memory.

References:
https://www.ibm.com/docs/en/linux-on-z?topic=mc-changing-state-1
https://www.ibm.com/docs/en/zvm/7.3?topic=commands-detach-cpu

Reported-by: Heikki Ylipiessa <heikki.ylipiessa@suse.com>
Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
(cherry picked from commit 7d16145c4696772bb5438a43a482f68fbf046370)

16 months agolib/sha1: fix for old glibc
Karel Zak [Wed, 20 Mar 2024 14:03:05 +0000 (15:03 +0100)] 
lib/sha1: fix for old glibc

Fixes: https://github.com/util-linux/util-linux/issues/2830
References: http://github.com/util-linux/util-linux/commit/a8902e4cdd6149e5124383b25db8688dcdacd790
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 4ebdd569049ac48a3867a59537cea769fa319e8f)

16 months agolscpu: don't use NULL sharedmap
Karel Zak [Wed, 20 Mar 2024 13:42:28 +0000 (14:42 +0100)] 
lscpu: don't use NULL sharedmap

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

16 months agoMerge branch 'test_mkfds-sockdiag' of https://github.com/masatake/util-linux into...
Karel Zak [Wed, 20 Mar 2024 13:33:35 +0000 (14:33 +0100)] 
Merge branch 'test_mkfds-sockdiag' of https://github.com/masatake/util-linux into stable/v2.40

* 'test_mkfds-sockdiag' of https://github.com/masatake/util-linux:
  tests: (lsfd) skip some cases if NETLINK_SOCK_DIAG for AF_UNIX is not available
  tests: (test_mkfds::sockdiag) new factory
  tests: (lsfd-functions.bash,cosmetic) unify the style to define functions
  tests: (lsfd) fix typoes in an error name

16 months agoci: reduce aslr level to avoid issues with ASAN
Thomas Weißschuh [Tue, 19 Mar 2024 21:21:54 +0000 (22:21 +0100)] 
ci: reduce aslr level to avoid issues with ASAN

As we have multiple different configurations using ASAN just disable it
for all of them.

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

16 months agolast: avoid out of bounds array access
biubiuzy [Fri, 23 Feb 2024 09:44:12 +0000 (17:44 +0800)] 
last: avoid out of bounds array access

(cherry picked from commit 75822efb8e948b538d9e9ccc329a5430fdabb7ea)

16 months agolibmount: Fix export of mnt_context_is_lazy and mnt_context_is_onlyonce
Matt Turner [Tue, 19 Mar 2024 01:29:13 +0000 (21:29 -0400)] 
libmount: Fix export of mnt_context_is_lazy and mnt_context_is_onlyonce

[kzak@redhat.com: - fix also function docs]

Bug: https://bugs.gentoo.org/927258
Closes: https://github.com/util-linux/util-linux/issues/2844
Fixes: 3d1c41c8c ("libmount: add --onlyonce")
Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 6d2917f2eb910fb8bcdc6476be18c34fee152911)

16 months agofindmnt: remove deleted option from manual
Chris Hofstaedtler [Fri, 15 Mar 2024 16:54:17 +0000 (17:54 +0100)] 
findmnt: remove deleted option from manual

Bug-Debian: 1066843
Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
Reported-by: Francesco Potortì <Potorti@isti.cnr.it>
(cherry picked from commit f494d3f8c33ffd5c98716717a7fe974ae0e9d08a)

16 months agolib/pty-session: Don't ignore SIGHUP.
Kuniyuki Iwashima [Mon, 11 Mar 2024 18:12:02 +0000 (18:12 +0000)] 
lib/pty-session: Don't ignore SIGHUP.

The blamed commit converted script to use the generic pty code that
was added by commit 6954895cae34 ("lib/pty-session: add generic PTY
container code").

Commit ec10634e7ec4 says the new pty stuff is based on script.
However, there is difference in signal handling.

Before the commit, only the signals that the script was interested
in were blocked and handled by signalfd.

After the commit, all signals are blocked and only the interested
signals are handled.

This causes regression in the following scenario:

  1. run `script` via /etc/profile.d for ssh session
  2. login to a ssh session using bash
  3. run `sudo -i`
  4. wait until ssh session timeout

After 3., the process tree will be like this.

  $ pstree -p | grep script
  |-sshd(2652)-sshd(637993)---sshd(637996)---bash(637997)---script(638028)---bash(638029)---sudo(638057)---sudo(638059)-+

The notable thing here is that script is in the parent's process
group (637997).

  $ ps -eo pid,pgid,ppid,stat,sig,comm | grep script
  638028  637997  637997 S+   0000000000000000 script

Thus, the parent bash will send SIGHUP to script, when the timeout
occurs at 4.

  $ sudo /usr/share/bcc/tools/killsnoop
  TIME      PID      COMM             SIG  TPID     RESULT
  18:46:57  637997   bash             1    637997   0

  $ ps -eo pid,pgid,ppid,stat,sig,comm | grep script
  638028  637997       1 S    0000000000020001 script

However, this is not handled, so the script is reaped but remains
forever.

  $ pstree -p | grep script
  |-script(638028)---bash(638029)

To avoid such a situation, we need to handle SIGHUP in script.

With this patch, script will receive SIGHUP from the parrent and
kill its child processes.

  $ pstree -p | grep script
  |-sshd(2652)-sshd(638400)---sshd(638404)---bash(638405)---script(638436)---bash(638437)---sudo(638465)---sudo(638467)-+

  $ sudo /usr/share/bcc/tools/killsnoop
  TIME      PID      COMM             SIG  TPID     RESULT
  18:50:11  638405   bash             1    638405   0
  18:50:11  638436   script           15   638437   0
  18:50:11  638436   script           15   638437   0
  18:50:13  638436   script           9    638437   0

Fixes: ec10634e7ec4 ("script: use lib/pty-session")
Reported-by: Ayame Suzuki <ayameszk@amazon.co.jp>
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
(cherry picked from commit e35f22bc05802001a806b82a82be41e345cc1dea)

16 months agotests: (lsfd) skip some cases if NETLINK_SOCK_DIAG for AF_UNIX is not available
Masatake YAMATO [Sat, 16 Mar 2024 13:20:00 +0000 (22:20 +0900)] 
tests: (lsfd) skip some cases if NETLINK_SOCK_DIAG for AF_UNIX is not available

Close #2822.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
16 months agotests: (test_mkfds::sockdiag) new factory
Masatake YAMATO [Sat, 16 Mar 2024 13:07:43 +0000 (22:07 +0900)] 
tests: (test_mkfds::sockdiag) new factory

The factory is for detecting whether a platform provides
NETLINK_SOCK_DIAG sockets for a given family.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
16 months agotests: (lsfd-functions.bash,cosmetic) unify the style to define functions
Masatake YAMATO [Sat, 16 Mar 2024 13:05:48 +0000 (22:05 +0900)] 
tests: (lsfd-functions.bash,cosmetic) unify the style to define functions

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
16 months agotests: (lsfd) fix typoes in an error name
Masatake YAMATO [Sat, 16 Mar 2024 15:38:17 +0000 (00:38 +0900)] 
tests: (lsfd) fix typoes in an error name