]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Karel Zak [Tue, 24 Jun 2025 09:14:29 +0000 (11:14 +0200)]
ldattach: add ifndef BOTHER
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
5405c3e09057db82ed397e61443effa9614dbc4a )
Karel Zak [Tue, 24 Jun 2025 07:55:28 +0000 (09:55 +0200)]
build-sys: update release dates
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 24 Jun 2025 07:54:20 +0000 (09:54 +0200)]
docs: add v2.41.1-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
Yuri Chornoivan [Mon, 23 Jun 2025 11:48:07 +0000 (13:48 +0200)]
po: update uk.po (from translationproject.org)
Мирослав Николић [Mon, 23 Jun 2025 11:48:07 +0000 (13:48 +0200)]
po: update sr.po (from translationproject.org)
Remus-Gabriel Chelu [Mon, 23 Jun 2025 11:48:07 +0000 (13:48 +0200)]
po: update ro.po (from translationproject.org)
Pedro Albuquerque [Mon, 23 Jun 2025 11:48:07 +0000 (13:48 +0200)]
po: update pt.po (from translationproject.org)
Jakub Bogusz [Mon, 23 Jun 2025 11:48:06 +0000 (13:48 +0200)]
po: update pl.po (from translationproject.org)
Benno Schulenberg [Mon, 23 Jun 2025 11:48:06 +0000 (13:48 +0200)]
po: update nl.po (from translationproject.org)
YOSHIDA Hideki [Mon, 23 Jun 2025 11:48:06 +0000 (13:48 +0200)]
po: update ja.po (from translationproject.org)
Božidar Putanec [Mon, 23 Jun 2025 11:48:06 +0000 (13:48 +0200)]
po: update hr.po (from translationproject.org)
Frédéric Marchal [Mon, 23 Jun 2025 11:48:06 +0000 (13:48 +0200)]
po: update fr.po (from translationproject.org)
Antonio Ceballos Roa [Mon, 23 Jun 2025 11:48:06 +0000 (13:48 +0200)]
po: update es.po (from translationproject.org)
Mario Blättermann [Mon, 23 Jun 2025 11:48:06 +0000 (13:48 +0200)]
po: update de.po (from translationproject.org)
Petr Písař [Mon, 23 Jun 2025 11:48:06 +0000 (13:48 +0200)]
po: update cs.po (from translationproject.org)
Karel Zak [Mon, 23 Jun 2025 11:48:04 +0000 (13:48 +0200)]
po-man: merge changes
Мирослав Николић [Mon, 23 Jun 2025 11:47:54 +0000 (13:47 +0200)]
po-man: update sr.po (from translationproject.org)
Mario Blättermann [Mon, 23 Jun 2025 11:47:54 +0000 (13:47 +0200)]
po-man: update de.po (from translationproject.org)
Karel Zak [Tue, 29 Apr 2025 10:50:48 +0000 (12:50 +0200)]
hardlink: define more function as inline
The functions are called many times.
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
5ef57d519fed61c501f1868348dcdfb31d3e2426 )
Karel Zak [Tue, 29 Apr 2025 10:29:32 +0000 (12:29 +0200)]
hardlink: fix performance regression (inefficient signal evaluation)
During work on better verbose output, I found a regression between
v2.40 and v2.41 (and v2.42). In the new version, hardlink is 3-4 times
slower.
The problem is in the function where we verify signals. It calls the
function signal() even though no signal is delivered. It's called in
code loops where hardlink scans files, making it a performance-sensitive
area.
Another significant performance improvement is using an inline function
for handle_interrupt().
This simple patch improves hardlink performance by 10 times.
Fixes: http://github.com/util-linux/util-linux/commit/1453200e22dd4ec858be027653c167225f2fb358
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
87831fa19e241803f93556cbeaad153e6ba89b6c )
Karel Zak [Tue, 29 Apr 2025 09:49:23 +0000 (11:49 +0200)]
hardlink: Use macro for verbose output
Now that jlog() is a function, all gettext() arguments are evaluated
in all cases, including when output is unnecessary due to --quiet or
low verbose mode.
Fixes: https://github.com/util-linux/util-linux/issues/3548
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
5a2600c55f278c1252708cb3bdede92e27ccd04e )
Stanislav Brabec [Fri, 16 May 2025 01:10:14 +0000 (03:10 +0200)]
libblkid: Fix crash while parsing config with libeconf
As the whole econf_file structure is freed by econf_free(file) at the end
of blkid_read_config(), econf_file structure cannot be defined as static
and initialized only once. The econf_free() is not robust enough and keeps
a pointer to the garbage after the first call of blkid_read_config(). And
if /etc/blkid.conf does not exist, it is called second time.
Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
Cc: Stefan Schubert <schubi@suse.de>
Link: https://bugzilla.opensuse.org/show_bug.cgi?id=1242705
(cherry picked from commit
284527cff2bd22da2924881a4a4833049dca0d2e )
Cristian Rodríguez [Sat, 17 May 2025 19:07:02 +0000 (15:07 -0400)]
Do not call exit() on code ending in shared libraries
It is not cool to call atexit() handlers of unknown
applications from shared libraries, use _exit instead.
Signed-off-by: Cristian Rodríguez <cristian@rodriguez.im>
(cherry picked from commit
765b9259fa75e7cab64de4bcfdd2f49cb63efedb )
Karel Zak [Tue, 20 May 2025 08:10:59 +0000 (10:10 +0200)]
lscpu: fix possible buffer overflow in cpuinfo parser
Addresses: https://github.com/util-linux/util-linux/pull/3577
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
ea04d719352add738251446315cebdada90171a9 )
Karel Zak [Thu, 22 May 2025 08:01:03 +0000 (10:01 +0200)]
lsblk: use ID_PART_ENTRY_SCHEME as fallback for PTTYPE
The udev database typically inherits the ID_PART_TABLE_TYPE property
from the entire disk device to its partitions. However, in some cases,
this property may be missing. Fortunately, blkid/udev also provides
ID_PART_ENTRY_SCHEME for all partitions.
Fixes: https://github.com/util-linux/util-linux/issues/3570
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
23a7e0865ad56c46a69084974182b9979592b867 )
Xi Ruoyao [Thu, 22 May 2025 05:04:48 +0000 (13:04 +0800)]
lscpu: Fix loongarch op-mode output with recent kernel
Since Linux-6.12, the "loongarch32" item in the ISA field is separated
to "loongarch32r" and "loongarch32s," breaking our expectation.
Link: https://git.kernel.org/torvalds/c/34e3c4500cdc
Signed-off-by: Xi Ruoyao <xry111@xry111.site>
(cherry picked from commit
5aa7ad17fc17b9458ff4381294c27d176c651d5d )
Benno Schulenberg [Mon, 2 Jun 2025 14:14:31 +0000 (16:14 +0200)]
remove two leftover license lines from colors.{c,h}
Last March, commit
549a517857 replaced the SPDX line in three files
with a "No copyright is claimed" phrase, but forgot to remove from
two of those files the text lines that correspond to the SPDX.
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
(cherry picked from commit
ca7b55217d3100ee2a1a7874fd643726bb2df04f )
Benno Schulenberg [Mon, 2 Jun 2025 14:14:32 +0000 (16:14 +0200)]
remove "Copyright (C) ...." notes from files that claim no copyright
Replace them with a "Written by" or "Authors:" label.
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
(cherry picked from commit
44da1cb11db3db73898918969a5c33f825458278 )
Benno Schulenberg [Mon, 2 Jun 2025 14:14:33 +0000 (16:14 +0200)]
correct the full name of the GPL in various files
Last year, commit
f4cb44bd11 corrected the full name of the GPL in
a dozen files, but still left the mistaken name in eight places.
(Also, in the first file, just reshuffle the license line, to be
in the same position as in other files.)
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
(cherry picked from commit
c4b2b66bad23e605dd6392921d0750770145e4a1 )
FeRD (Frank Dana) [Mon, 9 Jun 2025 08:55:00 +0000 (04:55 -0400)]
Make scols_column_set_data_func docs visible
The documentation comment for scols_column_set_data_func was missing the
second asterisk in its opening marker, causing the contents to be
omitted from the rendered documentation.
Signed-off-by: FeRD (Frank Dana) <ferdnyc@gmail.com>
(cherry picked from commit
84de06882e925b98b9cf7ffae2a37ae55931894d )
Mingjie Shen [Wed, 11 Jun 2025 21:11:35 +0000 (17:11 -0400)]
libblkid/src/topology/dm: fix fscanf return value check to match expected number of parsed items
(cherry picked from commit
51c0697e5551fe3c2d481a4ac71d81695e5374ba )
Karel Zak [Tue, 13 May 2025 09:32:14 +0000 (11:32 +0200)]
treewide: add ul_ to parse_timestamp() function name
Signed-off-by: Karel Zak <kzak@redhat.com>
Stanislav Brabec [Tue, 13 May 2025 09:26:49 +0000 (11:26 +0200)]
treewide: add ul_ to parse_switch() function name
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 13 May 2025 09:25:39 +0000 (11:25 +0200)]
treewide: add ul_ to parse_size() function name
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 13 May 2025 09:24:48 +0000 (11:24 +0200)]
treewide: add ul_ to parse_range() function name
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 9 Apr 2025 10:15:57 +0000 (12:15 +0200)]
libmount: (subdir) restrict for real mounts only
It's now possible to use, for example, for bind operations, but it
does not make sense as you can specify the target with the
subdirectory.
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
437a271f7108f689d350f1b3d837490d3d283c3c )
Karel Zak [Wed, 9 Apr 2025 09:32:08 +0000 (11:32 +0200)]
libmount: (subdir) remove unused code
The optlist already handles quoted values, so there's no need to do it
in the callers.
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
5462fa3435544344727b8644205ae427dfd5fcba )
Karel Zak [Thu, 24 Apr 2025 17:25:11 +0000 (19:25 +0200)]
Wipefs: improve --all descriptions for whole-disks
Addresses: https://github.com/util-linux/util-linux/issues/3544
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
1806792d4fd4928e09228ca6cc776fb46b196d89 )
Karel Zak [Thu, 24 Apr 2025 16:32:35 +0000 (18:32 +0200)]
libmount: avoid calling memset() unnecessarily
This is primarily to satisfy static analyzers, as memset() is defined
as a non-null function (although it does nothing when bufsiz=0).
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
9e96e6ed9cce4cbaf3b9ca6e61d0b0ee070685e9 )
Milan Broz [Sat, 19 Apr 2025 13:54:40 +0000 (15:54 +0200)]
libblkid: befs: fix underflow
Fix segfault caused by underflow while parsing a corrupted metadata.
Found by OSS-Fuzz by cryptsetup project fuzzers (issue
411003898 ).
Signed-off-by: Milan Broz <gmazyland@gmail.com>
(cherry picked from commit
588eed1a1de13150750e8a50d855001b27e07357 )
Cristian Rodríguez [Sun, 13 Apr 2025 13:22:47 +0000 (09:22 -0400)]
Do not use strerror on shared libraries
Using strerror is not safe in shared libraries as it is unknown
what the calling apps may do with the storage behind the scenes.
Using %m is ok, except in contexts that need to be as-safe.
(cherry picked from commit
c5850c36e14085cddf8db9e19d447d928fa153d0 )
Jakub Wilk [Wed, 9 Apr 2025 17:53:34 +0000 (19:53 +0200)]
mount: (man) add missing word
Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
(cherry picked from commit
1f106f63c5c9ab6779621f42c280d1f23792f898 )
Thomas Weißschuh [Sat, 19 Apr 2025 20:02:11 +0000 (22:02 +0200)]
include/mount-api-utils: include linux/unistd.h
If SYS_statmount/SYS_listmount is not provided by the libc,
util-linux will fall back to __NR_statmount/__NR_listmount from the
kernel UAPI headers.
However it is not guaranteed that these symbols are actually visible in
mount-api-utils.
Include linux/unistd.h which provides syscall numbers.
While this header is specific to Linux, the code is already using
linux/mount.h.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit
0033f97482a7979e0de71de0a16b583e8d74dbdc )
Thomas Weißschuh [Mon, 14 Apr 2025 21:32:36 +0000 (23:32 +0200)]
meson: add feature for translated documentation
Translating the documentation is slow.
Add a feature which can be used to disable this step.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit
188f3af3e8f3c7effbdb4b91994f1b16db4874b5 )
Thomas Weißschuh [Mon, 14 Apr 2025 21:19:06 +0000 (23:19 +0200)]
meson: remove tinfo dependency from 'more'
The more utility does not need libtinfo and it is not
specified in autotools either.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
(cherry picked from commit
363e48da01956321fb9337c59d78865c97c711a2 )
Eugene Gershnik [Mon, 6 May 2024 16:29:39 +0000 (09:29 -0700)]
libuuid: fix uuid_time on macOS without attribute((alias))
Weak aliases are not supported by clang on Darwin.
Instead this fix uses inline asm to make `_uuid_time` an alias to
`___uuid_time`
It appears that on macOS the time API is purely 32 or 64 bit depending
on the build type. There is no ABI issue on that platform and `uuid_time`
can be unconditionally aliased to `_uuid_time`. This is all conjectural,
however, since I have no ability to make 32-bit builds for macOS - the
Apple toolchain doesn't support this since 2019.
Fixes util-linux/util-linux#2873
(cherry picked from commit
e47c6f751a7ef87640c61316ada774e8e9cc6b07 )
Karel Zak [Mon, 7 Apr 2025 10:35:02 +0000 (12:35 +0200)]
findmnt: fix -k option parsing regression
It's a really bad idea to change any existing short option to support
optional arguments.
Fixes: https://github.com/util-linux/util-linux/issues/3512
References:
841d15e5d13dd0cc56e450c8dcc592211d66be27
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
0ecaef693ea60aab709e79dd4a8eb2865ec08967 )
Karel Zak [Mon, 7 Apr 2025 11:49:43 +0000 (13:49 +0200)]
treewide: fix optional arguments usage
In some parts of the code, the optional argument handling is missing
for cases where the argument starts with '='. This is particularly
important for short options with optional arguments, as suggested by
our man pages. The libc getopt_long() handles this for long options,
but for short options, it's our responsibility.
Note that some argument parsing functions (mostly colormode_or_err())
already implement this, as they are usually used with optional
arguments.
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
c4a24f5301ec9779a0492dd110824c2ce813f3eb )
Thomas Devoogdt [Mon, 7 Apr 2025 12:20:12 +0000 (14:20 +0200)]
namespace.h: fix compilation on Linux < 4.10
sys-utils/lsns.c: In function ‘add_namespace_from_sock’:
sys-utils/lsns.c:580:19: error: ‘SIOCGSKNS’ undeclared (first use in this function)
nsfd = ioctl(sk, SIOCGSKNS);
^~~~~~~~~
SIOCGSKNS was added in https://github.com/torvalds/linux/commit/
c62cce2caee558e18aa05c01c2fd3b40f07174f2 .
Fixes: https://github.com/util-linux/util-linux/issues/3502
Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
(cherry picked from commit
10ee66ed1b08586bde42582e34355418eef33ef5 )
Karel Zak [Tue, 25 Mar 2025 11:44:13 +0000 (12:44 +0100)]
fdisk: fix possible memory leak
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
71719680968c86a09ad0ba76339447f18996610b )
Karel Zak [Tue, 25 Mar 2025 11:23:35 +0000 (12:23 +0100)]
fdformat: use size_t and ssize_t
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
310806a25f1da9e1e6819c57d2e358bb439ed56d )
Karel Zak [Tue, 25 Mar 2025 11:14:14 +0000 (12:14 +0100)]
cfdisk: fix memory leak and possible NULL dereference [gcc-analyzer]
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
33ca468b67d34dead8fb8b41dc9f328971e5fe70 )
cgoesche [Sat, 5 Apr 2025 05:43:04 +0000 (01:43 -0400)]
more: fix broken ':!command' command key
Addresses: #3509
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
(cherry picked from commit
3f3bb6f9103daaf7a8f47ebe57cbe90bac852e6e )
cgoesche [Sat, 5 Apr 2025 05:29:35 +0000 (01:29 -0400)]
more: fix implicit previous shell_line execution #3508
run_shell() will implicitly execute the previous ctl->shell_line
not only if the function was indirectly invoked by the '.' command
but also by a subsequent '!' command.
Addresses: #3508
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
(cherry picked from commit
b6f9362988dbe5427d52b31ac3add37a7ddb6b12 )
Karel Zak [Tue, 1 Apr 2025 15:45:01 +0000 (17:45 +0200)]
treewide: avoid strcasecmp() for ASCII-only strings
Use cctype.h for locale-independent string comparison and to avoid
tricky string conversions like in tr_TR locales.
Fixes: https://github.com/util-linux/util-linux/issues/3490
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
107293a68206f24e531fd906e8114b578911bb7a )
Karel Zak [Tue, 1 Apr 2025 15:45:01 +0000 (17:45 +0200)]
fdisk,partx: avoid strcasecmp() for ASCII-only strings
Use cctype.h for locale-independent string comparison and to avoid
tricky string conversions like in tr_TR locales.
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
7efdcd75f041fa1cb9a7c05e22dea3567d48bf9e )
Karel Zak [Tue, 1 Apr 2025 15:45:01 +0000 (17:45 +0200)]
libmount: avoid strcasecmp() for ASCII-only strings
Use cctype.h for locale-independent string comparison and to avoid
tricky string conversions like in tr_TR locales.
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
ea694f8b91b82474c018dac2250b03cb00685b26 )
Karel Zak [Tue, 1 Apr 2025 15:45:01 +0000 (17:45 +0200)]
lsblk: avoid strcasecmp() for ASCII-only strings
Use cctype.h for locale-independent string comparison and to avoid
tricky string conversions like in tr_TR locales.
Fixes: https://github.com/util-linux/util-linux/issues/3490
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
b5ae9e8d0234738f381c56aa797aeba81a05d587 )
Karel Zak [Tue, 1 Apr 2025 15:45:01 +0000 (17:45 +0200)]
libfdisk: avoid strcasecmp() for ASCII-only strings
Use cctype.h for locale-independent string comparison and to avoid
tricky string conversions like in tr_TR locales.
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
8ec0c305e9f6ab904119201a13873faedb30da57 )
Karel Zak [Tue, 1 Apr 2025 15:45:01 +0000 (17:45 +0200)]
libblkid: avoid strcasecmp() for ASCII-only strings
Use cctype.h for locale-independent string comparison and to avoid
tricky string conversions like in tr_TR locales.
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
7eb663503c77d739f2cc80d78ee9d380b11b6eb9 )
Karel Zak [Wed, 2 Apr 2025 09:00:47 +0000 (11:00 +0200)]
include/cctype: fix string comparison
Reimplement c_strcasecmp() and c_strncasecmp() to be libc compatible
and fix c_strncasecmp() to avoid \0 misinterpretation. The original
implementation was pretty stupid (sorry).
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
259157b0c1a00806ff75188325e40ba10adf12ce )
Masatake YAMATO [Sun, 5 Jan 2025 18:30:25 +0000 (03:30 +0900)]
lsfd: (bug fix) scan the protocol field of /proc/net/packet as a hex number
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
(cherry picked from commit
0da7e8201aa7b9b2c5d0e901c0ccfd6f3bdc54d3 )
Masatake YAMATO [Sun, 5 Jan 2025 18:49:46 +0000 (03:49 +0900)]
tests: (test_mkfds::mapped-packet-socket) add a new parameter, protocol
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
(cherry picked from commit
a6584a456835bbef703d7aae1f51d4e07177f8cb )
Masatake YAMATO [Sun, 5 Jan 2025 17:55:19 +0000 (02:55 +0900)]
lsfd: fix the description for PACKET.PROTOCOL column
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
(cherry picked from commit
df3b38fab56001537364302479b33cb104ef7411 )
pls-no-hack [Fri, 28 Mar 2025 13:52:49 +0000 (13:52 +0000)]
Fix typo in blkdiscard docs
(cherry picked from commit
7d181e8f1ecdeca764b62f1daf0bb13cec349e7e )
Karel Zak [Tue, 1 Apr 2025 12:36:36 +0000 (14:36 +0200)]
lsns: enhance compilation without USE_NS_GET_API
- Move add_namespace_for_nsfd() declaration to the #ifdef block
(based on
c62ed3d58602fd29fe12085f7caf03761ed91b81 )
References:
2ced43400f35f7bd45b29364e04166a63a06e16a
Signed-off-by: Karel Zak <kzak@redhat.com>
Thomas Devoogdt [Tue, 25 Mar 2025 10:58:18 +0000 (11:58 +0100)]
lsns: fix undefined reference to add_namespace_for_nsfd #3483
Fixes:
sys-utils/lsns-lsns.o: In function `read_process':
lsns.c:(.text+0x9e8): undefined reference to `add_namespace_for_nsfd'
collect2: error: ld returned 1 exit status
Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
(cherry picked from commit
2ced43400f35f7bd45b29364e04166a63a06e16a )
Karel Zak [Mon, 24 Mar 2025 13:31:05 +0000 (14:31 +0100)]
libmount: fix --no-canonicalize regression
Fixes: https://github.com/util-linux/util-linux/issues/3474
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
7dbfe31a83f45d5aef2b508697e9511c569ffbc8 )
Karel Zak [Mon, 24 Mar 2025 14:18:24 +0000 (15:18 +0100)]
meson: fix manadocs for libsmartcols and libblkid
Fixes: https://github.com/util-linux/util-linux/issues/3475
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
531b2afd4ef3016b14fff41eef208ead5213138e )
Karel Zak [Thu, 20 Mar 2025 12:15:26 +0000 (13:15 +0100)]
meson: fix po-man installation
* in po-man/meson.build use already defined mandir
* make sure $DESTDIR is used in the install script
Addresses: https://github.com/util-linux/util-linux/pull/3378
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
56b97db03a56d90f0480885a35b0383afabc2e18 )
Karel Zak [Thu, 20 Mar 2025 10:57:06 +0000 (11:57 +0100)]
misc: never include wchar.h
We have a portable "widechar.h" that follows --disable-widechar and
provides portability. It is a bug to directly include libc's wchar.h
or wctype.h.
Fixes: https://github.com/util-linux/util-linux/issues/3470
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
5c0888dde3cc296d06b8243dcc78248ff90526e5 )
Karel Zak [Thu, 20 Mar 2025 10:56:07 +0000 (11:56 +0100)]
autotools: don't use wide-character ncurses if --disable-widechar
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
23aa09d7baec72cf6bac9d32c844a5bd2a6ef609 )
Karel Zak [Thu, 20 Mar 2025 10:53:59 +0000 (11:53 +0100)]
column: fix compiler warning for non-widechar compilation
text-utils/column.c: In function ‘ansi_esc_width’:
text-utils/column.c:212:17: warning: case label value exceeds maximum value for type [-Wswitch-outside-range]
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
0e28ab361375036f62dbba9d589576d38f43f157 )
Masanari Iida [Mon, 24 Mar 2025 07:21:44 +0000 (16:21 +0900)]
lib/fileeq.c Fix a typo in message.
This patch fixes a spelling typo in a command message.
Signed-off-by: Masanari Iida <standby24x7@gmail.com>
(cherry picked from commit
ccda6b9abde4425c03bf9c8da967fa02a64d0887 )
Karel Zak [Thu, 20 Mar 2025 13:18:14 +0000 (14:18 +0100)]
irqtop,lsirq: use scols debug
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
b7f5e6bba0b77c50eff53d5a9079403cde4cfc18 )
Karel Zak [Tue, 18 Mar 2025 12:50:51 +0000 (13:50 +0100)]
build-sys: update release dates
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 18 Mar 2025 12:50:16 +0000 (13:50 +0100)]
docs: update v2.41-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
Yuri Chornoivan [Tue, 18 Mar 2025 12:44:59 +0000 (13:44 +0100)]
po: update uk.po (from translationproject.org)
Remus-Gabriel Chelu [Tue, 18 Mar 2025 12:44:59 +0000 (13:44 +0100)]
po: update ro.po (from translationproject.org)
Jakub Bogusz [Tue, 18 Mar 2025 12:44:59 +0000 (13:44 +0100)]
po: update pl.po (from translationproject.org)
Benno Schulenberg [Tue, 18 Mar 2025 12:44:59 +0000 (13:44 +0100)]
po: update nl.po (from translationproject.org)
Seong-ho Cho [Tue, 18 Mar 2025 12:44:59 +0000 (13:44 +0100)]
po: update ko.po (from translationproject.org)
Božidar Putanec [Tue, 18 Mar 2025 12:44:59 +0000 (13:44 +0100)]
po: update hr.po (from translationproject.org)
Frédéric Marchal [Tue, 18 Mar 2025 12:44:59 +0000 (13:44 +0100)]
po: update fr.po (from translationproject.org)
Karel Zak [Tue, 18 Mar 2025 12:44:57 +0000 (13:44 +0100)]
po-man: merge changes
Michał Kułach [Tue, 18 Mar 2025 12:44:49 +0000 (13:44 +0100)]
po-man: add pl.po (from translationproject.org)
Yuri Chornoivan [Tue, 18 Mar 2025 12:44:49 +0000 (13:44 +0100)]
po-man: update uk.po (from translationproject.org)
Remus-Gabriel Chelu [Tue, 18 Mar 2025 12:44:48 +0000 (13:44 +0100)]
po-man: update ro.po (from translationproject.org)
Frédéric Marchal [Tue, 18 Mar 2025 12:44:48 +0000 (13:44 +0100)]
po-man: update fr.po (from translationproject.org)
Karel Zak [Tue, 18 Mar 2025 12:39:09 +0000 (13:39 +0100)]
po-man: fix typos in configuration
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
126ef957f7c5d42a4ef51353d521eee6e22b8015 )
Karel Zak [Mon, 17 Mar 2025 12:38:20 +0000 (13:38 +0100)]
terminal-colors.d: support NO_COLOR
We already provide the ability to easily disable output colorization,
but there is also the https://no-color.org initiative based on the
NO_COLOR environment variable. Let's support this method to disable
colors. Let's be friendly :-)
Addresses: https://github.com/util-linux/util-linux/issues/3463
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
61bd162fa1246a1d296cf943d12f7c01c8053b10 )
Gaël PORTAY [Tue, 18 Mar 2025 08:58:32 +0000 (09:58 +0100)]
su: (man) fix duplicate asterisk
Signed-off-by: Gaël PORTAY <gael.portay@rtone.fr>
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
1b317ef942bf007d2c765a390d2087a79a6de766 )
Karel Zak [Mon, 17 Mar 2025 13:35:10 +0000 (14:35 +0100)]
include: use public domain for colors.{c,h} and xalloc.h
The LGPL makes it difficult to use the code in the old BSD tools we
have in util-linux. After obtaining agreement from the major
contributors to the files, we are changing it to "Public Domain".
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
549a5178574364a2bd219ad1ed028f4f4ea71c3d )
Karel Zak [Mon, 17 Mar 2025 12:55:06 +0000 (13:55 +0100)]
unshare: fix typo in --map-groups=subids map name [coverity scan]
Addresses: https://github.com/util-linux/util-linux/pull/3121
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
9dd140220c6d6c53383405191001c7372488d264 )
Koutheir Attouchi [Thu, 13 Mar 2025 18:45:01 +0000 (14:45 -0400)]
Use ipc_stat::cgid for the column COL_CGID.
(cherry picked from commit
c64c64b7683695828a6fef044c7193cfa0461be9 )
Masatake YAMATO [Fri, 14 Mar 2025 21:54:02 +0000 (06:54 +0900)]
lsfd: (man) fix a typo
(cherry picked from commit
d6cdde2d6b9482c1cb790bd17c84fc31a2fad410 )
Benno Schulenberg [Sun, 16 Mar 2025 15:20:39 +0000 (16:20 +0100)]
various: (man) list --help and --version last among the options
Almost all util-linux man pages mention -h/--help and -V/--version
last in the list of options. Make the few deviant pages conform.
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
(cherry picked from commit
77b01d90dad212e57fa801e2eccda9724d102c0b )
Benno Schulenberg [Sun, 16 Mar 2025 15:20:38 +0000 (16:20 +0100)]
more: remove a duplicate call of setlocale()
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
(cherry picked from commit
361718387dc19334d060b5f303cd9fe1c19af01e )
Karel Zak [Mon, 17 Mar 2025 09:32:08 +0000 (10:32 +0100)]
lslogins: fix typo
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
ede1561d2071e0da859cbdd36bee8cf07807caf4 )
Karel Zak [Wed, 12 Mar 2025 14:34:17 +0000 (15:34 +0100)]
hwclock: avoid dereferencing a pointer [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
16c1d8734847bdeac0e6650a7364e33fb881bfc6 )