]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
2 years agobuild-sys: release++ (v2.38.1) stable/v2.38 v2.38.1
Karel Zak [Thu, 4 Aug 2022 09:06:21 +0000 (11:06 +0200)] 
build-sys: release++ (v2.38.1)

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agodocs: update v2.38.1-ReleaseNotes
Karel Zak [Thu, 4 Aug 2022 09:04:46 +0000 (11:04 +0200)] 
docs: update v2.38.1-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agodocs: update AUTHORS file
Karel Zak [Thu, 4 Aug 2022 09:01:38 +0000 (11:01 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agopo-man: merge changes
Karel Zak [Thu, 4 Aug 2022 08:48:55 +0000 (10:48 +0200)] 
po-man: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agopo: merge changes
Karel Zak [Thu, 4 Aug 2022 08:47:47 +0000 (10:47 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agopo-man: update uk.po (from translationproject.org)
Yuri Chornoivan [Thu, 4 Aug 2022 08:44:57 +0000 (10:44 +0200)] 
po-man: update uk.po (from translationproject.org)

2 years agopo-man: update fr.po (from translationproject.org)
Frédéric Marchal [Thu, 4 Aug 2022 08:44:57 +0000 (10:44 +0200)] 
po-man: update fr.po (from translationproject.org)

2 years agopo: update uk.po (from translationproject.org)
Yuri Chornoivan [Thu, 4 Aug 2022 08:43:31 +0000 (10:43 +0200)] 
po: update uk.po (from translationproject.org)

2 years agopo: update ja.po (from translationproject.org)
Takeshi Hamasaki [Thu, 4 Aug 2022 08:43:31 +0000 (10:43 +0200)] 
po: update ja.po (from translationproject.org)

2 years agopo: update hr.po (from translationproject.org)
Božidar Putanec [Thu, 4 Aug 2022 08:43:30 +0000 (10:43 +0200)] 
po: update hr.po (from translationproject.org)

2 years agopo: update de.po (from translationproject.org)
Mario Blättermann [Thu, 4 Aug 2022 08:43:30 +0000 (10:43 +0200)] 
po: update de.po (from translationproject.org)

2 years agocolumn: fix greedy mode on -l
Karel Zak [Thu, 4 Aug 2022 08:13:49 +0000 (10:13 +0200)] 
column: fix greedy mode on -l

In the 'greedy' mode strtok() skips leading white chars, but code for
-l (merge remaining data to the last column) do not count the skipped
chars.

Old version:

$ printf '  a b c\n1 2 3\n' | column -t -o '-' -l2
a-a
1-2 3

Fixed version:

$ printf '  a b c\n1 2 3\n' | column -t -o '-' -l2
a-b c
1-2 3

Note, see leading white chars '  a b c'.

Fexes: https://github.com/util-linux/util-linux/issues/1763
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agocolumn: fix buffer overflow when -l specified
Karel Zak [Thu, 4 Aug 2022 08:10:19 +0000 (10:10 +0200)] 
column: fix buffer overflow when -l specified

$ printf 'a b c\n1 2 3\n' | column -s : -t -o '-' -l2
a b c-ġ
1 2 3-

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agolsfd: fix crash triggered by an empty filter expression
Masatake YAMATO [Thu, 28 Jul 2022 03:56:52 +0000 (12:56 +0900)] 
lsfd: fix crash triggered by an empty filter expression

  $ lsfd -Q ''

or

  $ lsfd --filter ''

made lsfd process crash.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2 years agoswitch_root: (man) fix return code description
Karel Zak [Tue, 2 Aug 2022 08:55:16 +0000 (10:55 +0200)] 
switch_root: (man) fix return code description

Fixes: https://github.com/util-linux/util-linux/issues/1761
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agoirqtop: remove unused variable
Karel Zak [Wed, 20 Jul 2022 16:07:08 +0000 (18:07 +0200)] 
irqtop: remove unused variable

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolib/logindefs: fix compiler warning [-Werror=format-truncation=]
Karel Zak [Mon, 6 Jun 2022 14:14:14 +0000 (16:14 +0200)] 
lib/logindefs: fix compiler warning [-Werror=format-truncation=]

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agoirqtop: fix compiler warning [-Werror=format-truncation=]
Karel Zak [Mon, 6 Jun 2022 14:14:30 +0000 (16:14 +0200)] 
irqtop: fix compiler warning [-Werror=format-truncation=]

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agosulogin: fix includes
Karel Zak [Wed, 20 Jul 2022 14:55:02 +0000 (16:55 +0200)] 
sulogin: fix includes

* support --enable-sulogin-emergency-mount on Linux only

* don't include unnecessary linux/magic.h

* don't include linux/fs.h, sys/mount.h should be enough, otherwise
  define a fallback for MS_RELATIME

Reported-by: Andreas Schwab <schwab@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolib/fileutils: fix compiler warning
Karel Zak [Wed, 20 Jul 2022 13:23:01 +0000 (15:23 +0200)] 
lib/fileutils: fix compiler warning

lib/fileutils.c: In function ‘dup_fd_cloexec’:
lib/fileutils.c:75:35: warning: unused parameter ‘lowfd’ [-Wunused-parameter]
int dup_fd_cloexec(int oldfd, int lowfd)
                                  ^
Addresses: https://github.com/util-linux/util-linux/issues/1755
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolibuuid: (man) uuid_copy() -- add missing parenthesis
Andrew Price [Fri, 15 Jul 2022 14:55:13 +0000 (15:55 +0100)] 
libuuid: (man) uuid_copy() -- add missing parenthesis

Signed-off-by: Andrew Price <anprice@redhat.com>
3 years agounshare: Fix "you (user xxxx) don't exist" error when uid differs from primary gid
Sol Boucher [Fri, 8 Jul 2022 16:09:13 +0000 (12:09 -0400)] 
unshare: Fix "you (user xxxx) don't exist" error when uid differs from primary gid

This problem affected the --map-auto and --map-groups=auto command-line switches.
The root cause is that /etc/subgid is indexed by user or uid, not by group or gid;
therefore, we should be using the effective uid to find entries in this file, just
as we do for /etc/subuid.

Signed-off-by: Sol Boucher <sboucher@cmu.edu>
3 years agolscpu: keep bogomips locale output locale sensitive
Karel Zak [Thu, 7 Jul 2022 11:41:37 +0000 (13:41 +0200)] 
lscpu: keep bogomips locale output locale sensitive

Fixes: https://github.com/util-linux/util-linux/issues/1743
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolibblkid: simplify 'leaf' detection
Karel Zak [Mon, 27 Jun 2022 11:00:55 +0000 (13:00 +0200)] 
libblkid: simplify 'leaf' detection

References: https://github.com/util-linux/util-linux/pull/1729
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolsns: (man) add ip-netns to "SEE ALSO" section
Masatake YAMATO [Sun, 26 Jun 2022 06:04:36 +0000 (15:04 +0900)] 
lsns: (man) add ip-netns to "SEE ALSO" section

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
3 years agoadd padding to dates in issue file
bobbyboy5069 [Fri, 24 Jun 2022 20:02:15 +0000 (23:02 +0300)] 
add padding to dates in issue file

Pad the day of the month so the length of the date string doesn't change.

3 years agoImprove is_dm_leaf performance
Will Jordan [Wed, 22 Jun 2022 22:13:11 +0000 (15:13 -0700)] 
Improve is_dm_leaf performance
Read from `/holders` instead of `/slaves` to determine
whether the device is a leaf node, eliminating a scan
across all block devices in the system.

3 years agohardlink: use info rather than warning message
Karel Zak [Mon, 20 Jun 2022 12:00:38 +0000 (14:00 +0200)] 
hardlink: use info rather than warning message

Fixes: https://github.com/util-linux/util-linux/issues/1710
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agosfdiks: (man) fix example
Karel Zak [Mon, 20 Jun 2022 11:42:35 +0000 (13:42 +0200)] 
sfdiks: (man) fix example

Fixes: https://github.com/util-linux/util-linux/discussions/1719
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolibblkid: (swap) fix magic string memcmp [fuzzing]
Karel Zak [Mon, 13 Jun 2022 08:34:52 +0000 (10:34 +0200)] 
libblkid: (swap) fix magic string memcmp [fuzzing]

Reported-by: Thibault Guittet <tguittet@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agochange the default comparison method on Mac OS to suppress a warning that's going...
David Cantrell [Thu, 9 Jun 2022 18:13:01 +0000 (19:13 +0100)] 
change the default comparison method on Mac OS to suppress a warning that's going to fall back to memcmp

3 years agolslogins: fix free(): invalid pointer
Karel Zak [Tue, 7 Jun 2022 07:46:54 +0000 (09:46 +0200)] 
lslogins: fix free(): invalid pointer

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolslogins: improve prefixes interpretation
Karel Zak [Tue, 7 Jun 2022 07:11:56 +0000 (09:11 +0200)] 
lslogins: improve prefixes interpretation

It seems that for example 'passwd --lock' uses two exclamation marks
in password  field. It seems better to assume arbitrary number of '!'
and '*' prefixes.

The patch also makes description of the PWD-EMPTY output field more
explicit.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=2093166
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agozramctl: fix compiler warning [-Werror=maybe-uninitialized]
Karel Zak [Mon, 6 Jun 2022 14:19:16 +0000 (16:19 +0200)] 
zramctl: fix compiler warning [-Werror=maybe-uninitialized]

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolsfd: fix compiler warning [-Werror=maybe-uninitialized]
Karel Zak [Mon, 6 Jun 2022 14:15:43 +0000 (16:15 +0200)] 
lsfd: fix compiler warning [-Werror=maybe-uninitialized]

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agouuidd: remove also PrivateNetwork=yes from systemd service
Karel Zak [Fri, 3 Jun 2022 07:07:09 +0000 (09:07 +0200)] 
uuidd: remove also PrivateNetwork=yes from systemd service

Fixes: https://github.com/util-linux/util-linux/issues/1704
References: 304b4dc4936b115ca33af5325c3b04d0997c1353
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agouuidd: allow AF_INET in systemd service
Karel Zak [Thu, 2 Jun 2022 14:55:49 +0000 (16:55 +0200)] 
uuidd: allow AF_INET in systemd service

libuuid uses

socket(AF_INET, SOCK_DGRAM, IPPROTO_IP)

to get MAC address for time based UUIDs, but there is

RestrictAddressFamilies=AF_UNIX

in uuidd service file ...

Fixes: https://github.com/util-linux/util-linux/issues/1704
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolibblkid: (hfs) fix make sure buffer is large enough
Karel Zak [Thu, 2 Jun 2022 14:02:54 +0000 (16:02 +0200)] 
libblkid: (hfs) fix make sure buffer is large enough

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolibblkid: (hfs) fix label use [fuzzing]
Karel Zak [Thu, 2 Jun 2022 14:02:54 +0000 (16:02 +0200)] 
libblkid: (hfs) fix label use [fuzzing]

Reported-by: Thibault Guittet <tguittet@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolibblkid: (bsd) fix buffer pointer use [fuzzing]
Karel Zak [Thu, 2 Jun 2022 14:02:54 +0000 (16:02 +0200)] 
libblkid: (bsd) fix buffer pointer use [fuzzing]

Reported-by: Thibault Guittet <tguittet@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolibblkid: (mac) make sure block size is large enough [fuzzing]
Karel Zak [Thu, 2 Jun 2022 14:02:54 +0000 (16:02 +0200)] 
libblkid: (mac) make sure block size is large enough [fuzzing]

Reported-by: Thibault Guittet <tguittet@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolibblkid: (probe) fix size and offset overflows [fuzzing]
Karel Zak [Thu, 2 Jun 2022 14:02:54 +0000 (16:02 +0200)] 
libblkid: (probe) fix size and offset overflows [fuzzing]

Reported-by: Thibault Guittet <tguittet@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolibblkid: update documentation of BLOCK_SIZE tag
Andrey Albershteyn [Fri, 27 May 2022 10:56:27 +0000 (12:56 +0200)] 
libblkid: update documentation of BLOCK_SIZE tag

The name BLOCK_SIZE is unfortunate. This tag doesn't represent
commonly used file system block size but minimal block size
accessible by file system (sector size).

Signed-off-by: Andrey Albershteyn <aalbersh@redhat.com>
3 years agoloopdev: set block_size when using LOOP_CONFIGURE
Hideki EIRAKU [Wed, 25 May 2022 03:23:16 +0000 (12:23 +0900)] 
loopdev: set block_size when using LOOP_CONFIGURE

LOOP_CONFIGURE ioctl was introduced by commit
d5fd456c88aba4fcf77d35fe38024a8d5c814686. Since the previous
implementation set partscan flag but did not set block_size with the
LOOP_CONFIGURE ioctl, an issue fixed by commit
422f0e9f206a145c59a71333dad20d38cbbfc0c4 was reappeared. Setting
block_size in the LOOP_CONFIGURE ioctl parameter fixes the issue.

Signed-off-by: Hideki EIRAKU <hdk@igel.co.jp>
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agotaskset: fix use of err_affinity()
csbo98 [Sun, 22 May 2022 06:47:13 +0000 (14:47 +0800)] 
taskset: fix use of  err_affinity()

Maybe there is a little mistake in do_taskset() function in taskset.c.
In the first call of sched_getaffinity(), if the call is failed we should
use err_affinity(ts->pid, 0) other than err_affinity(ts->pid, 1).

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agofstrim: Remove all skipped entries before de-duplication
Scott Shambarger [Thu, 12 May 2022 23:27:26 +0000 (16:27 -0700)] 
fstrim: Remove all skipped entries before de-duplication

When processing fstab entries, de-duplication is performed based on the
source before all tests on the target have been checked, resulting in
some entries being skipped when a removed duplicate with a different
target would not have been.

The fix is to move all the target checks before the source
de-duplication.

Addresses: #1686
Signed-off-by: Scott Shambarger <devel@shambarger.net>
3 years agolosetup: Fix typo for the --sector-size docs
Alberto Ruiz [Thu, 12 May 2022 21:35:21 +0000 (23:35 +0200)] 
losetup: Fix typo for the --sector-size docs

3 years agofix time_t format
Rosen Penev [Tue, 3 May 2022 00:53:07 +0000 (17:53 -0700)] 
fix time_t format

Use musl's define to test for 64-bit time_t.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
3 years agofix various formats
Rosen Penev [Tue, 3 May 2022 00:43:32 +0000 (17:43 -0700)] 
fix various formats

Found with -Wformat.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
3 years agohardlink: Fix man page docs for '-v/--verbose'
FeRD (Frank Dana) [Mon, 9 May 2022 21:17:57 +0000 (17:17 -0400)] 
hardlink: Fix man page docs for '-v/--verbose'

Signed-off-by: FeRD (Frank Dana) <ferdnyc@gmail.com>
3 years agohardlink: Move -c option in --help
FeRD (Frank Dana) [Mon, 9 May 2022 11:31:13 +0000 (07:31 -0400)] 
hardlink: Move -c option in --help

The new placement mirrors its position in the manpage, and
keeps it grouped with the individual flags for which it
acts as a shorthand.

Signed-off-by: FeRD (Frank Dana) <ferdnyc@gmail.com>
3 years agohardlink: Document '-c' option in manpage
FeRD (Frank Dana) [Mon, 9 May 2022 11:20:26 +0000 (07:20 -0400)] 
hardlink: Document '-c' option in manpage

Signed-off-by: FeRD (Frank Dana) <ferdnyc@gmail.com>
3 years agofstrim: check for ENOSYS when using --quiet-unsupported
Narthorn [Sat, 7 May 2022 05:43:02 +0000 (07:43 +0200)] 
fstrim: check for ENOSYS when using --quiet-unsupported

Some filesystems like bindfs report ENOSYS (Function not implemented)
for the trim ioctl, which should be caught by --quiet-unsupported.

3 years agolibmount: fix and improve utab update on MS_MOVE
Karel Zak [Wed, 4 May 2022 10:13:08 +0000 (12:13 +0200)] 
libmount: fix and improve utab update on MS_MOVE

* avoid double '//'

* don't update /fooxxx when /foo update requested (make sure that
  startswith() returns path terminated by '/')

* canonicalize only once the new path -- all in utab/mtab is already
  canonicalized, so after MS_MOVE we need to care about the new path
  only

* use asprintf() rather than strcpy() and strcat(), don't compose a
  new path from prefix and subdir when replace entire path

Addresses: https://github.com/util-linux/util-linux/pull/1660
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agologger: make sure structured data are escaped
Karel Zak [Mon, 2 May 2022 13:30:26 +0000 (15:30 +0200)] 
logger: make sure structured data are escaped

For the option --sd-param all formatting chars (" \ and ]) has to be
escaped by \. This patch also allow escape [ to make it more user
friendly.

For example

$ logger --rfc5424 --sd-id zoo@123 --sd-param 'foo="b\"A\"r"' --no-act --stderr "this is message"
<13>1 2022-05-02T15:35:00.342141+02:00 ws.net.home kzak - - [timeQuality tzKnown="1" isSynced="1" syncAccuracy="45291"][zoo@123 foo="b\"A\"r"] this is message

Reported-by: Ulrich Windl <Ulrich.Windl@rz.uni-regensburg.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolib/strutils: add ul_strchr_escaped()
Karel Zak [Mon, 2 May 2022 13:07:42 +0000 (15:07 +0200)] 
lib/strutils: add ul_strchr_escaped()

Like strchr(), but ignores escaped chars.

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agomore: avoid infinite loop on --squeeze
Karel Zak [Mon, 2 May 2022 10:57:13 +0000 (12:57 +0200)] 
more: avoid infinite loop on --squeeze

The command 'echo | more -s' ends in infinite loop if exit-on-EOF is
disabled (default now). We need to call more_key_command() to ask for
user's reaction.

Fixes: https://github.com/util-linux/util-linux/issues/1669
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolibfdisk: (gpt) Add UUID for Marvell Armada 3700 Boot partition
Pali Rohár [Sat, 30 Apr 2022 10:50:46 +0000 (12:50 +0200)] 
libfdisk: (gpt) Add UUID for Marvell Armada 3700 Boot partition

This GPT UUID is used by BootROM on Marvell Armada 3700 SoC. BootROM
searches for GPT partition with this UUID on attached SATA disk and loads
bootloader from it.

Marvell Armada 3700 SoC is used e.g. on popular EspressoBIN SBC board which
has relatively solid Linux support.

Information about SATA booting and this GPT partition is currently
documented only in development version of ARM Trusted-Firmware-A
documentation:

https://trustedfirmware-a.readthedocs.io/en/latest/plat/marvell/armada/build.html

It is missing in official documentation for Armada 3720 BootROM and
therefore hard to find it.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
3 years agomeson: fix compilation without systemd
Rosen Penev [Fri, 29 Apr 2022 23:53:43 +0000 (16:53 -0700)] 
meson: fix compilation without systemd

systemdsystemunitdir is used elsewhere.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
3 years agoBSD: Use byteswap.h and endian.h defined macos when present
Warner Losh [Fri, 29 Apr 2022 21:29:44 +0000 (15:29 -0600)] 
BSD: Use byteswap.h and endian.h defined macos when present

Newer versions of FreeBSD will have a glibc compatible
byteswap.h. Currently, this file assumes that FreeBSD requires
bswap{16,32,64} to always be defined. This isn't the case when we're
using the byteswap.h file (which is enabled by HAVE_BYTESWAP_H
define). Assume that if byteswap.h and endian.h are present, then the
proper macros are defined.  Otherwise, assume that sys/endian.h is
present and paper over the small differences between the BSDs for this
file.

Signed-off-by: Warner Losh <imp@bsdimp.com>
3 years agomeson: fix when HAVE_CLOCK_GETTIME is set
Nicolas Caramelli [Fri, 29 Apr 2022 16:16:36 +0000 (18:16 +0200)] 
meson: fix when HAVE_CLOCK_GETTIME is set

Signed-off-by: Nicolas Caramelli <caramelli.devel@gmail.com>
3 years agolibuuid: improve cache handling
d032747 [Fri, 22 Apr 2022 08:07:46 +0000 (10:07 +0200)] 
libuuid: improve cache handling

Short running applications with a few UUID request don't need
a large cache. Therefore increment the cache size over runtime.

3 years agolsirq: improve --sort IRQ
Karel Zak [Fri, 29 Apr 2022 08:11:49 +0000 (10:11 +0200)] 
lsirq: improve --sort IRQ

IRQ column mixes numbers and text, it seems better to use strverscmp()
rather than classic strcmp().

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=2078787
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolibmount: when moving a mount point, all sub mount entries in utab should also be...
Franck Bui [Fri, 22 Apr 2022 09:30:09 +0000 (11:30 +0200)] 
libmount: when moving a mount point, all sub mount entries in utab should also be updated

Given that /run/mount/utab stores paths, this file needs to be adjusted when a
mount tree is moved.

However the moved tree may contains sub mount points in which case their utab
entries (if any) need to also be translated.

This patch takes care of that.

As suggested in https://github.com/systemd/systemd/issues/15266, a better
approach might be to store mount IDs instead of paths since mount IDs remain
unchanged when mount trees are moved.

Fixes: #1659
3 years agotests: report failed tests
Karel Zak [Thu, 21 Apr 2022 08:59:28 +0000 (10:59 +0200)] 
tests: report failed tests

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agodmesg: fix --since and --until
Karel Zak [Wed, 20 Apr 2022 12:42:32 +0000 (14:42 +0200)] 
dmesg: fix --since and --until

Now --since and --until requires any time field in the output (e.g.
--ctime,-T), it means "dmesg --since '1 day ago'" doesn't work, but
"dmesg -T --since '1 day ago'" works as expected.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=2076829
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agotests: fdisk/bsd: update expected output for ppc64le
Chris Hofstaedtler [Wed, 13 Apr 2022 11:11:50 +0000 (11:11 +0000)] 
tests: fdisk/bsd: update expected output for ppc64le

Update expected test data after upstream MRs #1385 and #1386.

Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
3 years agoDon't install uuidd service if systemd isn't present
data-man [Tue, 12 Apr 2022 10:29:06 +0000 (15:29 +0500)] 
Don't install uuidd service if systemd isn't present

3 years agotests: don't compile lsfd/mkfds helper on macos, since it's linux only
Anatoly Pugachev [Sat, 9 Apr 2022 09:44:06 +0000 (12:44 +0300)] 
tests: don't compile lsfd/mkfds helper on macos, since it's linux only

macos is missing linux only header "sys/prctl.h", so exclude lsfd/mkfds
on macos from make 'check-programs' target

3 years agotests: fix misc/setarch run in a docker environment
Anatoly Pugachev [Fri, 8 Apr 2022 14:53:58 +0000 (17:53 +0300)] 
tests: fix misc/setarch run in a docker environment

Fixes: #601
3 years agolibfdisk: meson.build fix typo
Anatoly Pugachev [Fri, 8 Apr 2022 12:34:16 +0000 (15:34 +0300)] 
libfdisk: meson.build fix typo

3 years agolsns: improve dependence on NS_GET_ ioctls
Karel Zak [Wed, 6 Apr 2022 08:38:43 +0000 (10:38 +0200)] 
lsns: improve dependence on NS_GET_ ioctls

Fixes: http://autobuild.buildroot.org/results/572ecf8e37ac733a4e4265f4f78f35230337278e
Reported-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agoconfigure.ac: add lsns option
Fabrice Fontaine [Tue, 5 Apr 2022 18:04:59 +0000 (20:04 +0200)] 
configure.ac: add lsns option

lsns unconditionally uses NS_GET_NSTYPE since version 2.38 and
https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git/commit/?id=de72df79d72fa906e71e2ac922d8745ff22deee5
which is only available since kernel 4.11 and
https://github.com/torvalds/linux/commit/e5ff5ce6e20ee22511398bb31fb912466cf82a36
resulting in the following build failure:

sys-utils/lsns.c: In function 'add_namespace_for_nsfd':
sys-utils/lsns.c:719:25: error: 'NS_GET_NSTYPE' undeclared (first use in this function)
  719 |  clone_type = ioctl(fd, NS_GET_NSTYPE);
      |                         ^~~~~~~~~~~~~

So add an option to allow the user to disable lsns

Fixes:
 - http://autobuild.buildroot.org/results/572ecf8e37ac733a4e4265f4f78f35230337278e

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3 years agotests: make libmount tests more portable
Karel Zak [Mon, 4 Apr 2022 13:59:36 +0000 (15:59 +0200)] 
tests: make libmount tests more portable

git tree on macbook:
...
warning: the following paths have collided (e.g. case-sensitive paths
on a case-insensitive filesystem) and only one from the same
colliding group is in the working tree:

  'tests/expected/libmount/optstr-apply-user-X'
  'tests/expected/libmount/optstr-apply-user-x'

Let's rename the files.

Addresses: https://github.com/util-linux/util-linux/issues/1583
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolsfd: add static modifier to nodev_table
Masatake YAMATO [Mon, 7 Mar 2022 09:17:25 +0000 (18:17 +0900)] 
lsfd: add static modifier to nodev_table

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
3 years agolsfd: delete __unused__ attribute for an used parameter
Masatake YAMATO [Mon, 7 Mar 2022 08:10:17 +0000 (17:10 +0900)] 
lsfd: delete __unused__ attribute for an used parameter

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
3 years agolsblk: fix JSON output when without --bytes
Karel Zak [Fri, 1 Apr 2022 08:03:14 +0000 (10:03 +0200)] 
lsblk: fix JSON output when without --bytes

Fixes: https://github.com/util-linux/util-linux/issues/1636
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agohardlink: require statfs_magic.h only when reflink support enabled
Karel Zak [Wed, 30 Mar 2022 08:50:38 +0000 (10:50 +0200)] 
hardlink: require statfs_magic.h only when reflink support enabled

Addresses: https://github.com/util-linux/util-linux/issues/1634
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agobuild-sys: release++ (v2.38) v2.38
Karel Zak [Mon, 28 Mar 2022 11:33:44 +0000 (13:33 +0200)] 
build-sys: release++ (v2.38)

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agodocs: update v2.38-ReleaseNotes
Karel Zak [Mon, 28 Mar 2022 11:32:47 +0000 (13:32 +0200)] 
docs: update v2.38-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agodocs: update AUTHORS file
Karel Zak [Mon, 28 Mar 2022 11:31:22 +0000 (13:31 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agopo-man: merge changes
Karel Zak [Mon, 28 Mar 2022 11:26:39 +0000 (13:26 +0200)] 
po-man: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agopo: merge changes
Karel Zak [Mon, 28 Mar 2022 11:25:09 +0000 (13:25 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agopo-man: add cs.po (from translationproject.org)
Petr Písař [Mon, 28 Mar 2022 11:23:14 +0000 (13:23 +0200)] 
po-man: add cs.po (from translationproject.org)

3 years agopo-man: update uk.po (from translationproject.org)
Yuri Chornoivan [Mon, 28 Mar 2022 11:23:14 +0000 (13:23 +0200)] 
po-man: update uk.po (from translationproject.org)

3 years agopo-man: update fr.po (from translationproject.org)
Frédéric Marchal [Mon, 28 Mar 2022 11:23:14 +0000 (13:23 +0200)] 
po-man: update fr.po (from translationproject.org)

3 years agopo-man: update de.po (from translationproject.org)
Mario Blättermann [Mon, 28 Mar 2022 11:23:13 +0000 (13:23 +0200)] 
po-man: update de.po (from translationproject.org)

3 years agopo: update zh_CN.po (from translationproject.org)
Boyuan Yang [Mon, 28 Mar 2022 11:22:26 +0000 (13:22 +0200)] 
po: update zh_CN.po (from translationproject.org)

3 years agopo: update uk.po (from translationproject.org)
Yuri Chornoivan [Mon, 28 Mar 2022 11:22:26 +0000 (13:22 +0200)] 
po: update uk.po (from translationproject.org)

3 years agopo: update tr.po (from translationproject.org)
Mesutcan Kurt [Mon, 28 Mar 2022 11:22:26 +0000 (13:22 +0200)] 
po: update tr.po (from translationproject.org)

3 years agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Mon, 28 Mar 2022 11:22:26 +0000 (13:22 +0200)] 
po: update pl.po (from translationproject.org)

3 years agopo: update ko.po (from translationproject.org)
Seong-ho Cho [Mon, 28 Mar 2022 11:22:26 +0000 (13:22 +0200)] 
po: update ko.po (from translationproject.org)

3 years agopo: update hr.po (from translationproject.org)
Božidar Putanec [Mon, 28 Mar 2022 11:22:26 +0000 (13:22 +0200)] 
po: update hr.po (from translationproject.org)

3 years agopo: update fr.po (from translationproject.org)
Frédéric Marchal [Mon, 28 Mar 2022 11:22:26 +0000 (13:22 +0200)] 
po: update fr.po (from translationproject.org)

3 years agopo: update de.po (from translationproject.org)
Mario Blättermann [Mon, 28 Mar 2022 11:22:26 +0000 (13:22 +0200)] 
po: update de.po (from translationproject.org)

3 years agopo: update cs.po (from translationproject.org)
Petr Písař [Mon, 28 Mar 2022 11:22:25 +0000 (13:22 +0200)] 
po: update cs.po (from translationproject.org)

3 years agolslocks: fix maj:min scanf
Karel Zak [Mon, 28 Mar 2022 09:39:27 +0000 (11:39 +0200)] 
lslocks: fix maj:min scanf

Fixes: https://github.com/util-linux/util-linux/issues/1633
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agoflock: Decribe limitations of flock: deadlock, NFS, CIFS
Stanislav Brabec [Fri, 25 Mar 2022 08:26:48 +0000 (09:26 +0100)] 
flock: Decribe limitations of flock: deadlock, NFS, CIFS

The flock(1) does not refer to limitations of flock(2). Provide an
documentation entry point for solving of problems with flock on NFS
and CIFS and mention risk of deadlock.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agoMerge branch 'apple-silicon-parttypes' of https://github.com/WhyNotHugo/util-linux
Karel Zak [Fri, 25 Mar 2022 07:28:16 +0000 (08:28 +0100)] 
Merge branch 'apple-silicon-parttypes' of https://github.com/WhyNotHugo/util-linux

* 'apple-silicon-parttypes' of https://github.com/WhyNotHugo/util-linux:
  Add UUID for the partition types on Apple Silicon

3 years agolib/buffer: fix possible SEGV
Karel Zak [Tue, 22 Mar 2022 11:46:52 +0000 (12:46 +0100)] 
lib/buffer: fix possible SEGV

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