]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
2 years agoeject: do not use atoi()
Karel Zak [Tue, 22 Jun 2021 13:15:46 +0000 (15:15 +0200)] 
eject: do not use atoi()

* remove unnecessary strtok() use
* remove atoi use()

Addresses: https://github.com/karelzak/util-linux/issues/1358
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agofsck: do not use atoi()
Karel Zak [Tue, 22 Jun 2021 12:42:56 +0000 (14:42 +0200)] 
fsck: do not use atoi()

Addresses: https://github.com/karelzak/util-linux/issues/1358
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agoinclude/strutils: cleanup strto..() functions
Karel Zak [Tue, 22 Jun 2021 12:20:42 +0000 (14:20 +0200)] 
include/strutils: cleanup strto..() functions

* add ul_strtos64() and ul_strtou64()
* add simple test

Addresses: https://github.com/karelzak/util-linux/issues/1358
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agoblockdev: improve arguments parsing (remove atoi)
Karel Zak [Tue, 22 Jun 2021 10:32:58 +0000 (12:32 +0200)] 
blockdev: improve arguments parsing (remove atoi)

old version:
 # blockdev --setfra 4x096 /dev/sdc

new version:
 # blockdev --setfra 4x096 /dev/sdc
 blockdev: failed to parse command argument: '4x096'

Addresses: https://github.com/karelzak/util-linux/issues/1358
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agocfdisk: do not use atoi()
Karel Zak [Tue, 22 Jun 2021 09:50:06 +0000 (11:50 +0200)] 
cfdisk: do not use atoi()

It's unnecessary to use atoi in this case.

Addresses: https://github.com/karelzak/util-linux/issues/1358
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agoreadprofile: check errno after strto..()
Karel Zak [Mon, 21 Jun 2021 13:37:48 +0000 (15:37 +0200)] 
readprofile: check errno after strto..()

Addresses: https://github.com/karelzak/util-linux/issues/1356
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agowipefs: check errno after strto..()
Karel Zak [Mon, 21 Jun 2021 13:34:06 +0000 (15:34 +0200)] 
wipefs: check errno after strto..()

Addresses: https://github.com/karelzak/util-linux/issues/1356
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agolslocks: check errno after strto..()
Karel Zak [Mon, 21 Jun 2021 13:33:36 +0000 (15:33 +0200)] 
lslocks: check errno after strto..()

Addresses: https://github.com/karelzak/util-linux/issues/1356
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agokill: check errno after strto..()
Karel Zak [Mon, 21 Jun 2021 13:32:51 +0000 (15:32 +0200)] 
kill: check errno after strto..()

Addresses: https://github.com/karelzak/util-linux/issues/1356
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agolslogins: check errno after strto..()
Karel Zak [Mon, 21 Jun 2021 13:31:43 +0000 (15:31 +0200)] 
lslogins: check errno after strto..()

Addresses: https://github.com/karelzak/util-linux/issues/1356
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agofsck: check errno after strto..()
Karel Zak [Mon, 21 Jun 2021 13:29:43 +0000 (15:29 +0200)] 
fsck: check errno after strto..()

Addresses: https://github.com/karelzak/util-linux/issues/1356
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agolsmem: check errno after strto..()
Karel Zak [Mon, 21 Jun 2021 13:29:33 +0000 (15:29 +0200)] 
lsmem: check errno after strto..()

Addresses: https://github.com/karelzak/util-linux/issues/1356
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agolscpu: check errno after strto..()
Karel Zak [Mon, 21 Jun 2021 13:00:40 +0000 (15:00 +0200)] 
lscpu: check errno after strto..()

Addresses: https://github.com/karelzak/util-linux/issues/1356
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agohwclock: check errno after strto..()
Karel Zak [Mon, 21 Jun 2021 13:00:40 +0000 (15:00 +0200)] 
hwclock: check errno after strto..()

Addresses: https://github.com/karelzak/util-linux/issues/1356
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agoipcs: check errno after strto..()
Karel Zak [Mon, 21 Jun 2021 13:00:40 +0000 (15:00 +0200)] 
ipcs: check errno after strto..()

Addresses: https://github.com/karelzak/util-linux/issues/1356
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agolibuuid: check errno after strto..()
Karel Zak [Mon, 21 Jun 2021 13:00:40 +0000 (15:00 +0200)] 
libuuid: check errno after strto..()

Addresses: https://github.com/karelzak/util-linux/issues/1356
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agolibmount: check errno after strto..()
Karel Zak [Mon, 21 Jun 2021 13:00:40 +0000 (15:00 +0200)] 
libmount: check errno after strto..()

Addresses: https://github.com/karelzak/util-linux/issues/1356
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agolibblkid: check errno after strto..()
Karel Zak [Mon, 21 Jun 2021 13:00:40 +0000 (15:00 +0200)] 
libblkid: check errno after strto..()

Addresses: https://github.com/karelzak/util-linux/issues/1356
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agomount.8.adoc: Remove context options exclusion
Thiébaud Weksteen [Mon, 21 Jun 2021 12:15:16 +0000 (14:15 +0200)] 
mount.8.adoc: Remove context options exclusion

The exclusivity between the {fscontext, defcontext} and context options
was removed in kernel 2.6.25[1]. No specific verification on these
options is done in mount(8)[2].

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c9180a57a9ab2d5525faf8815a332364ee9e89b7
[2] https://github.com/karelzak/util-linux/blob/master/libmount/src/context_mount.c#L202

2 years agofsck.cramfs: use open+fstat rather than stat+open
Karel Zak [Mon, 21 Jun 2021 10:39:33 +0000 (12:39 +0200)] 
fsck.cramfs: use open+fstat rather than stat+open

Fixes: https://github.com/karelzak/util-linux/issues/1353
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agoinclude/c: add drop_permissions(), consolidate UID/GID reset
Karel Zak [Mon, 21 Jun 2021 10:25:31 +0000 (12:25 +0200)] 
include/c: add drop_permissions(), consolidate UID/GID reset

Fixes: https://github.com/karelzak/util-linux/issues/1354
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agodmesg: remove condition [lgtm scan]
Karel Zak [Fri, 18 Jun 2021 15:57:13 +0000 (17:57 +0200)] 
dmesg: remove  condition [lgtm scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agotools: report and use LDFLAGS in tools/config-gen
Karel Zak [Fri, 18 Jun 2021 15:37:38 +0000 (17:37 +0200)] 
tools: report and use LDFLAGS in tools/config-gen

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agobuild-sys: use $LIBS rather than LDFLAGS
Karel Zak [Fri, 18 Jun 2021 15:21:13 +0000 (17:21 +0200)] 
build-sys: use $LIBS rather than LDFLAGS

Fixes: https://github.com/karelzak/util-linux/pull/1349
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agolib/path: (test) fix ul_new_path() use
Karel Zak [Fri, 18 Jun 2021 15:02:38 +0000 (17:02 +0200)] 
lib/path: (test) fix ul_new_path() use

2 years agomore: add __format__ attribute
Karel Zak [Fri, 18 Jun 2021 14:58:38 +0000 (16:58 +0200)] 
more: add __format__ attribute

Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agowall: add __format__ attribute
Karel Zak [Fri, 18 Jun 2021 14:56:52 +0000 (16:56 +0200)] 
wall: add __format__ attribute

Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agoscript: add __format__ attribute
Karel Zak [Fri, 18 Jun 2021 14:55:40 +0000 (16:55 +0200)] 
script: add __format__ attribute

Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agoldattach: add __format__ attribute
Karel Zak [Fri, 18 Jun 2021 14:52:26 +0000 (16:52 +0200)] 
ldattach: add __format__ attribute

Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agohwclock: fix ul_path_scanf() use
Karel Zak [Fri, 18 Jun 2021 14:50:58 +0000 (16:50 +0200)] 
hwclock: fix ul_path_scanf() use

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agoeject: add __format__ attribute
Karel Zak [Fri, 18 Jun 2021 14:49:28 +0000 (16:49 +0200)] 
eject: add __format__ attribute

Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agologger: add __format__ attribute
Karel Zak [Fri, 18 Jun 2021 14:42:07 +0000 (16:42 +0200)] 
logger: add __format__ attribute

Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agolibfdisk: add and fix __format__ attributes
Karel Zak [Fri, 18 Jun 2021 14:41:20 +0000 (16:41 +0200)] 
libfdisk: add and fix __format__ attributes

Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agofindmnt: add __format__ attribute
Karel Zak [Fri, 18 Jun 2021 14:35:33 +0000 (16:35 +0200)] 
findmnt: add __format__ attribute

Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agolibmount: add __format__ attribute
Karel Zak [Fri, 18 Jun 2021 14:34:20 +0000 (16:34 +0200)] 
libmount: add __format__ attribute

Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agoinclude/strutils: fix __format__attribute
Karel Zak [Fri, 18 Jun 2021 14:33:16 +0000 (16:33 +0200)] 
include/strutils: fix __format__attribute

Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agoinclude/path: add __format__attribute
Karel Zak [Fri, 18 Jun 2021 14:32:37 +0000 (16:32 +0200)] 
include/path: add __format__attribute

Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agoinclude/c: add __format__ attribute
Karel Zak [Fri, 18 Jun 2021 14:29:02 +0000 (16:29 +0200)] 
include/c: add __format__ attribute

Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agotests: fix lsns test on kernels without USER namespaces
Anatoly Pugachev [Fri, 18 Jun 2021 12:45:31 +0000 (14:45 +0200)] 
tests: fix lsns test on kernels without USER namespaces

Reported-by: Bruce Dubbs <bruce.dubbs@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agomount.8: fix overlayfs nfs_export= indention
Karel Zak [Fri, 18 Jun 2021 12:37:28 +0000 (14:37 +0200)] 
mount.8: fix overlayfs nfs_export= indention

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agoinclude/strv: fix format attributes
Karel Zak [Fri, 18 Jun 2021 10:25:46 +0000 (12:25 +0200)] 
include/strv: fix format attributes

Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agoFix some brackets in synopses
Christian Bartolomäus [Thu, 17 Jun 2021 20:27:17 +0000 (22:27 +0200)] 
Fix some brackets in synopses

2 years agomount: man-page; add all overlayfs options
Tj [Thu, 17 Jun 2021 12:13:22 +0000 (13:13 +0100)] 
mount: man-page; add all overlayfs options

The section in man (8) mount for overlay is missing nine options which
aren't documented elsewhere either and are useful features to be aware
of and use.

Fixes #1350.

2 years agobuild-sys: Update configure.ac
Alex Xu [Wed, 16 Jun 2021 13:58:25 +0000 (13:58 +0000)] 
build-sys: Update configure.ac

1. the test incorrectly used AC_COMPILE_IFELSE instead of
   AC_LINK_IFELSE, defeating the purpose of checking -lcrypt.
2. the test did not properly restore LIBS, causing later checks to all
   fail if libcrypt wasn't found.
3. HAVE_LIBCRYPT only controls whether to use -lcrypt, it is not
   needed or used in any source files.

[kzak@redhat.com: - improve commit message
                  - use UL_{SET,RESTORE}_FLAGS() rather than directly
    modify $LIBS]

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agolib/path: improve ul_path_readlink() to be more robust
Karel Zak [Thu, 17 Jun 2021 11:28:32 +0000 (13:28 +0200)] 
lib/path: improve ul_path_readlink() to be more robust

According to POSIX, readlink() makes no effort to null-terminate buffer
with the result. It seems better to hide this disadvantage in the
ul_path_...() API rather than assume buf[sz] = '\0' everywhere.

Reported-by: Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agomkfs.cramfs: add comment to explain readlink() use
Karel Zak [Thu, 17 Jun 2021 11:26:50 +0000 (13:26 +0200)] 
mkfs.cramfs: add comment to explain readlink() use

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agorename: use readlink() in more robust way
Karel Zak [Thu, 17 Jun 2021 11:25:43 +0000 (13:25 +0200)] 
rename: use readlink() in more robust way

Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agonamei: simplify code
Karel Zak [Thu, 17 Jun 2021 11:23:53 +0000 (13:23 +0200)] 
namei: simplify code

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agomore: fix setuid/setgid order
Karel Zak [Thu, 17 Jun 2021 10:21:04 +0000 (12:21 +0200)] 
more: fix setuid/setgid order

The rule is pretty simple, always use setgid() before setuid().

Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agosulogin: add missing ifdefs
Karel Zak [Wed, 16 Jun 2021 13:44:02 +0000 (15:44 +0200)] 
sulogin: add missing ifdefs

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agosulogin: use explicit_bzero() for buffer with password
Karel Zak [Wed, 16 Jun 2021 13:39:32 +0000 (15:39 +0200)] 
sulogin: use explicit_bzero() for buffer with password

Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agologin: remove obsolete and confusing comment
Karel Zak [Wed, 16 Jun 2021 13:13:50 +0000 (15:13 +0200)] 
login: remove obsolete and confusing comment

Reported-by: Jan Pazdziora <jpazdziora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agomkswap: fix holes detection (infinite loop and/or stack-buffer-underflow)
Karel Zak [Tue, 15 Jun 2021 10:04:43 +0000 (12:04 +0200)] 
mkswap: fix holes detection (infinite loop and/or stack-buffer-underflow)

Reported-by: Brian Lane <bcl@redhat.com>
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1971877
Fix: https://github.com/karelzak/util-linux/issues/1348
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agolib/loopdev: perform retry on EAGAIN
Karel Zak [Tue, 15 Jun 2021 08:34:46 +0000 (10:34 +0200)] 
lib/loopdev: perform retry on EAGAIN

Suggested-by: Ingo Franzki <ifranzki@linux.ibm.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agomount.8.adoc: document SELinux use of nosuid mount flag
Topi Miettinen [Sat, 12 Jun 2021 08:34:36 +0000 (11:34 +0300)] 
mount.8.adoc: document SELinux use of nosuid mount flag

Using mount flag `nosuid` also affects SELinux domain transitions but
this has not been documented well.

Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
2 years agodmesg: fix indentation in man page
Platon Pronko [Fri, 11 Jun 2021 18:20:58 +0000 (21:20 +0300)] 
dmesg: fix indentation in man page

Double-semicolon at the end of the option line results in description
being indented extra tab to the right. Replacing them with double-colons
allows all options to be displayed at the same indent level.

2 years agolib/path: fix possible leak when use ul_path_read_string() [coverity scan]
Karel Zak [Fri, 11 Jun 2021 13:43:36 +0000 (15:43 +0200)] 
lib/path: fix possible leak when use ul_path_read_string() [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agohwclock: close adjtime on write error [coverity scan]
Karel Zak [Fri, 11 Jun 2021 13:17:42 +0000 (15:17 +0200)] 
hwclock: close adjtime on write error [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agonewgrp: fix memory leak [coverity scan]
Karel Zak [Fri, 11 Jun 2021 13:10:22 +0000 (15:10 +0200)] 
newgrp: fix memory leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agodmesg: fix possible memory leak [coverity scan]
Karel Zak [Thu, 10 Jun 2021 11:44:25 +0000 (13:44 +0200)] 
dmesg: fix possible memory leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agofindmnt: (verify) fix memory leak [asan]
Karel Zak [Thu, 10 Jun 2021 11:35:05 +0000 (13:35 +0200)] 
findmnt: (verify) fix memory leak [asan]

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agofindmnt: (verify) fix cache related memory leaks on --nocanonicalize [coverity scan]
Karel Zak [Thu, 10 Jun 2021 11:28:35 +0000 (13:28 +0200)] 
findmnt: (verify) fix cache related memory leaks on --nocanonicalize [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agolibblkid: Add hyphens to UUID string representation in Stratis superblock parsing
John Baublitz [Fri, 4 Jun 2021 11:02:39 +0000 (07:02 -0400)] 
libblkid: Add hyphens to UUID string representation in Stratis superblock parsing

[kzak@redhat.com: - small code cleanup]

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agohexdump: correctly display signed single byte integers
Samir Benmendil [Wed, 9 Jun 2021 00:21:46 +0000 (01:21 +0100)] 
hexdump: correctly display signed single byte integers

When using the format string '/1 "%d"', the byte did not display as a
signed integer as expected, it was interpreted as unsigned.

2 years agolsblk: fix formatting in -e option
ratijas [Tue, 8 Jun 2021 16:12:19 +0000 (19:12 +0300)] 
lsblk: fix formatting in -e option

2 years agouclampset: Fix left over optind++
Qais Yousef [Mon, 7 Jun 2021 16:11:11 +0000 (17:11 +0100)] 
uclampset: Fix left over optind++

The code was changed to use ':' in getopt_long() but these were left
over by mistake causing weird random errors when using these options
depending on the order they were fed.

Signed-off-by: Qais Yousef <qais.yousef@arm.com>
2 years agorfkill: Set scols table name to make the json output valid
Nicolai Dagestad [Sun, 6 Jun 2021 16:28:35 +0000 (18:28 +0200)] 
rfkill: Set scols table name to make the json output valid

[kzak@redhat.com: - s/rfkill/rfkilldevices/]

Fixes: https://github.com/karelzak/util-linux/issues/1339
Signed-off-by: Nicolai Dagestad <nicolai@dagestad.fr>
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agolibsmartcols: fix bare array on JSON output
Karel Zak [Mon, 7 Jun 2021 08:32:20 +0000 (10:32 +0200)] 
libsmartcols: fix bare array on JSON output

The bare array ({[...]}) for top level list of entries is invalid. It
seems better to print empty string than nothing. This is workaround
for broken utils, better is to define a table name.

Addresses: https://github.com/karelzak/util-linux/issues/1339
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agobuild-sys: make re-use of generated man-pages more robust
Karel Zak [Fri, 4 Jun 2021 09:42:03 +0000 (11:42 +0200)] 
build-sys: make re-use of generated man-pages more robust

We need to ignore man-pages at all if not available (not generated
yet), but asciidoctor is not installed.

Fix: https://github.com/karelzak/util-linux/issues/1334
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agobuild-sys: add generated man-pages to distribution tarball
Karel Zak [Thu, 3 Jun 2021 10:17:27 +0000 (12:17 +0200)] 
build-sys: add generated man-pages to distribution tarball

Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agolscpu: fix build on powerpc
Georgy Yakovlev [Wed, 2 Jun 2021 20:59:26 +0000 (13:59 -0700)] 
lscpu: fix build on powerpc

fails with error: label at end of compound statement
and fix typo as bonus.

Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2 years agolsblk: use ID_MODEL_ENC is possible
Karel Zak [Wed, 2 Jun 2021 11:32:43 +0000 (13:32 +0200)] 
lsblk: use ID_MODEL_ENC is possible

Fix: https://github.com/karelzak/util-linux/issues/1098
Signed-off-by: Karel Zak <kzak@redhat.com>
2 years agoinclude/strutils: fix heap-buffer-overflow in normalize_whitespace()
Karel Zak [Mon, 14 Jun 2021 14:29:21 +0000 (16:29 +0200)] 
include/strutils: fix heap-buffer-overflow in normalize_whitespace()

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agobuild-sys: fix {release-version} man pages
Karel Zak [Wed, 2 Jun 2021 09:55:44 +0000 (11:55 +0200)] 
build-sys: fix {release-version} man pages

* define {release-version} as $VERSION

* do not use {docdir} in adoc; it's built-in ascidoctor variable
  https://docs.asciidoctor.org/asciidoc/latest/attributes/document-attributes-reference/#intrinsic-attributes

Addresses: https://github.com/karelzak/util-linux/issues/1327
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agobuild-sys: install hardlink bash-completion
Karel Zak [Wed, 2 Jun 2021 09:14:36 +0000 (11:14 +0200)] 
build-sys: install hardlink bash-completion

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agodocs: fix typo in v2.37-ReleaseNotes
Karel Zak [Tue, 1 Jun 2021 08:37:01 +0000 (10:37 +0200)] 
docs: fix typo in v2.37-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agodocs: add uclampset to AUTHORS file
Karel Zak [Tue, 1 Jun 2021 08:31:49 +0000 (10:31 +0200)] 
docs: add uclampset to AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agobuild-sys: release++ (v2.37) v2.37
Karel Zak [Tue, 1 Jun 2021 07:52:10 +0000 (09:52 +0200)] 
build-sys: release++ (v2.37)

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agodocs: update v2.37-ReleaseNotes
Karel Zak [Tue, 1 Jun 2021 07:46:40 +0000 (09:46 +0200)] 
docs: update v2.37-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agodocs: update AUTHORS file
Karel Zak [Tue, 1 Jun 2021 07:45:03 +0000 (09:45 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agopo: merge changes
Karel Zak [Mon, 31 May 2021 16:36:06 +0000 (18:36 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agopo: add ko.po (from translationproject.org)
Seong-ho Cho [Mon, 31 May 2021 16:20:33 +0000 (18:20 +0200)] 
po: add ko.po (from translationproject.org)

3 years agopo: update uk.po (from translationproject.org)
Yuri Chornoivan [Mon, 31 May 2021 16:20:33 +0000 (18:20 +0200)] 
po: update uk.po (from translationproject.org)

3 years agopo: update pt.po (from translationproject.org)
Pedro Albuquerque [Mon, 31 May 2021 16:20:33 +0000 (18:20 +0200)] 
po: update pt.po (from translationproject.org)

3 years agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Mon, 31 May 2021 16:20:33 +0000 (18:20 +0200)] 
po: update pl.po (from translationproject.org)

3 years agopo: update hr.po (from translationproject.org)
Božidar Putanec [Mon, 31 May 2021 16:20:33 +0000 (18:20 +0200)] 
po: update hr.po (from translationproject.org)

3 years agopo: update fr.po (from translationproject.org)
Frédéric Marchal [Mon, 31 May 2021 16:20:33 +0000 (18:20 +0200)] 
po: update fr.po (from translationproject.org)

3 years agopo: update de.po (from translationproject.org)
Mario Blättermann [Mon, 31 May 2021 16:20:33 +0000 (18:20 +0200)] 
po: update de.po (from translationproject.org)

3 years agopo: update cs.po (from translationproject.org)
Petr Písař [Mon, 31 May 2021 16:20:33 +0000 (18:20 +0200)] 
po: update cs.po (from translationproject.org)

3 years agolibblkid: fix docs
Karel Zak [Mon, 31 May 2021 16:16:57 +0000 (18:16 +0200)] 
libblkid: fix docs

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agodocs: update copyright years
Karel Zak [Mon, 31 May 2021 16:12:07 +0000 (18:12 +0200)] 
docs: update copyright years

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agobuild-sys: remove with-cryptsetup from tools/config-gen.d/all.conf
Karel Zak [Mon, 31 May 2021 15:44:10 +0000 (17:44 +0200)] 
build-sys: remove with-cryptsetup from tools/config-gen.d/all.conf

Unfortunately libtools is not smart enough to link libblkid
dynamically if we link in-tree static libmount.a for libmount tests.
In this case libtools always uses also libblkid.a, but it's problem
for libcryptsetup which requires versioned symbols from libblkid.so

This is no problem for normal binaries, but for libmount tests only
(where we need static library to by-pass public library API).

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolscpu: fix NVIDIA ARM hw implementer spelling case
Ville Skyttä [Sun, 30 May 2021 12:14:38 +0000 (15:14 +0300)] 
lscpu: fix NVIDIA ARM hw implementer spelling case

Ref respective vendor sites.

Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolscpu: recognize more ARM implementers
Ville Skyttä [Sun, 30 May 2021 12:13:39 +0000 (15:13 +0300)] 
lscpu: recognize more ARM implementers

Add just the implementer string, no parts yet.

Refs https://developer.arm.com/documentation/ddi0595/2021-03/AArch64-Registers/MIDR-EL1--Main-ID-Register
Refs https://github.com/torvalds/linux/blob/b90e90f40b4ff23c753126008bf4713a42353af6/arch/arm64/include/asm/cputype.h#L54

Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
3 years agopo: add xgettext hint for non-c-format string
Karel Zak [Thu, 27 May 2021 08:39:58 +0000 (10:39 +0200)] 
po: add xgettext hint for non-c-format string

Reported-by: Petr Pisar <petr.pisar@atlas.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolscpu: cleanup tab vs. space
Karel Zak [Wed, 26 May 2021 09:54:47 +0000 (11:54 +0200)] 
lscpu: cleanup tab vs. space

Do not mix tab and space in structs initializations.

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolscpu: Replace space with tabs
Bader Zaidan [Fri, 21 May 2021 22:55:17 +0000 (00:55 +0200)] 
lscpu: Replace space with tabs

Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agolscpu: add MHZ to the -e output
Karel Zak [Sun, 23 May 2021 21:52:00 +0000 (23:52 +0200)] 
lscpu: add MHZ to the -e output

Addresses: https://github.com/karelzak/util-linux/issues/1314
Signed-off-by: Karel Zak <kzak@redhat.com>
3 years agofstrim: do not start the timer in initrd
Zbigniew Jędrzejewski-Szmek [Fri, 21 May 2021 08:45:35 +0000 (10:45 +0200)] 
fstrim: do not start the timer in initrd

I'm working on building initramfs images directly from normal
packages, which means that the pristine system rpms should behave
correctly as much as possible also in the initrd. There usually isn't
enough time for the timer to actually fire, but starting it gives a
line on the console and generally looks confusing and sloppy. So let's
skip the timer if it ever ends up being enabled in the initrd.

Checking for /etc/initrd-release is the standard condition that
systemd's initrd units use.

3 years agoMerge branch 'more-floating-point' of https://github.com/kerolasa/util-linux
Karel Zak [Thu, 20 May 2021 07:32:53 +0000 (09:32 +0200)] 
Merge branch 'more-floating-point' of https://github.com/kerolasa/util-linux

* 'more-floating-point' of https://github.com/kerolasa/util-linux:
  more: fix floating point exception core dump