]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
2 months agoFix markup in column.1.adoc
Mario Blättermann [Wed, 3 Sep 2025 17:51:07 +0000 (19:51 +0200)] 
Fix markup in column.1.adoc

2 months agoFix markup in mount.8.adoc
Mario Blättermann [Wed, 3 Sep 2025 17:49:24 +0000 (19:49 +0200)] 
Fix markup in mount.8.adoc

2 months agoFix typo and markup in getopt.1.adoc
Mario Blättermann [Wed, 3 Sep 2025 17:47:39 +0000 (19:47 +0200)] 
Fix typo and markup in getopt.1.adoc

2 months agoFix markup in lsfd.1.adoc
Mario Blättermann [Wed, 3 Sep 2025 17:46:06 +0000 (19:46 +0200)] 
Fix markup in lsfd.1.adoc

2 months agoFix markup, grammar and spelling in scols-filter.5.adoc
Mario Blättermann [Wed, 3 Sep 2025 17:44:04 +0000 (19:44 +0200)] 
Fix markup, grammar and spelling in scols-filter.5.adoc

2 months agoFix login.1.adoc
Mario Blättermann [Wed, 3 Sep 2025 17:39:37 +0000 (19:39 +0200)] 
Fix login.1.adoc

Something went wrong in the last commit... Instead fixing markup issues, *login* went to an empty **.

2 months agohardlink: (man) add note note about ULFILEEQ_DEBUG=
Karel Zak [Wed, 3 Sep 2025 09:57:06 +0000 (11:57 +0200)] 
hardlink: (man) add note note about ULFILEEQ_DEBUG=

Addresses: https://github.com/util-linux/util-linux/discussions/3323
Signed-off-by: Karel Zak <kzak@redhat.com>
2 months agoMerge branch 'feat/lscpu_add_microcode_column' of https://github.com/cgoesche/util...
Karel Zak [Wed, 3 Sep 2025 09:46:35 +0000 (11:46 +0200)] 
Merge branch 'feat/lscpu_add_microcode_column' of https://github.com/cgoesche/util-linux-fork

* 'feat/lscpu_add_microcode_column' of https://github.com/cgoesche/util-linux-fork:
  bash-completion: add MICROCODE to $OPTS_ALL
  lscpu: add MICROCODE output column

2 months agoMerge branch 'fix/fix_lsns_list_columns_opt' of https://github.com/cgoesche/util...
Karel Zak [Wed, 3 Sep 2025 08:12:31 +0000 (10:12 +0200)] 
Merge branch 'fix/fix_lsns_list_columns_opt' of https://github.com/cgoesche/util-linux-fork

* 'fix/fix_lsns_list_columns_opt' of https://github.com/cgoesche/util-linux-fork:
  bash-completion: (lsns) add -H/--list-columns options
  lsns: fix --list-columns option

Signed-off-by: Karel Zak <kzak@redhat.com>
2 months agoMerge branch 'feat/allow_killing_with_pidfd' of https://github.com/cgoesche/util...
Karel Zak [Wed, 3 Sep 2025 08:06:39 +0000 (10:06 +0200)] 
Merge branch 'feat/allow_killing_with_pidfd' of https://github.com/cgoesche/util-linux-fork

* 'feat/allow_killing_with_pidfd' of https://github.com/cgoesche/util-linux-fork:
  textual: rename list_colunms() to list_columns() and remove trailing whitespaces
  include/strutils: add missing header guard comment
  lib: fix bad indentation in meson.build
  kill: add support for race-free process kills using pidfd inodes

2 months agoMerge branch 'feat/add_columns_env_ls_cmds' of https://github.com/cgoesche/util-linux...
Karel Zak [Wed, 3 Sep 2025 07:56:26 +0000 (09:56 +0200)] 
Merge branch 'feat/add_columns_env_ls_cmds' of https://github.com/cgoesche/util-linux-fork

* 'feat/add_columns_env_ls_cmds' of https://github.com/cgoesche/util-linux-fork:
  lscpu: (man) document the LSCPU_{CACHES_}COLUMNS environment variables
  bash-completion: (lscpu) add -H/--list-columns options
  lscpu: add --list-columns option and declutter --help output
  lscpu: add support for LSCPU_{CACHES_}COLUMNS environment variables
  lsclocks: add support for LSCLOCKS_COLUMNS environmental variable
  tests: (lsmem) update expected/lscpu/* with 'ZONES' column
  lsmem: add support for LSMEM_COLUMNS environmental variable

2 months agoMerge branch 'feat/lslocks_output_env' of https://github.com/cgoesche/util-linux...
Karel Zak [Wed, 3 Sep 2025 07:52:07 +0000 (09:52 +0200)] 
Merge branch 'feat/lslocks_output_env' of https://github.com/cgoesche/util-linux-fork

* 'feat/lslocks_output_env' of https://github.com/cgoesche/util-linux-fork:
  lslocks: (man) add LSLOCKS_COLUMNS description in new ENVIRONMENT section
  lslocks: add support for LSLOCKS_COLUMNS environmental variable

2 months agoMerge branch 'PR/libmount-canonicalize-cleanup' of https://github.com/karelzak/util...
Karel Zak [Wed, 3 Sep 2025 07:47:04 +0000 (09:47 +0200)] 
Merge branch 'PR/libmount-canonicalize-cleanup' of https://github.com/karelzak/util-linux-work

* 'PR/libmount-canonicalize-cleanup' of https://github.com/karelzak/util-linux-work:
  lib/canonicalize: use ul_ prefix
  lib/canonicalize: introduce generic drop-permission caller
  meson: cleanup tests to use libcommon.la
  autotools: cleanup tests to use libcommon.la
  tests: add canonicalize test
  lib/canonicalize: refactor canonicalize_path()
  lib/canonicalize: rename to ul_absolute_path()

2 months agotextual: rename list_colunms() to list_columns() and remove trailing whitespaces
Christian Goeschel Ndjomouo [Mon, 1 Sep 2025 21:27:55 +0000 (17:27 -0400)] 
textual: rename list_colunms() to list_columns() and remove trailing whitespaces

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agoinclude/strutils: add missing header guard comment
Christian Goeschel Ndjomouo [Mon, 1 Sep 2025 20:57:39 +0000 (16:57 -0400)] 
include/strutils: add missing header guard comment

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agolib: fix bad indentation in meson.build
Christian Goeschel Ndjomouo [Mon, 1 Sep 2025 20:54:52 +0000 (16:54 -0400)] 
lib: fix bad indentation in meson.build

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agokill: add support for race-free process kills using pidfd inodes
Christian Goeschel Ndjomouo [Mon, 25 Aug 2025 18:04:19 +0000 (14:04 -0400)] 
kill: add support for race-free process kills using pidfd inodes

The 6.9 Linux kernel added support for pidfds which introduces inodes
that stay unique for the system lifetime and can be used to reference
a process with both its traditional pid and pid fd inode number.
This enables race-free killing of processes and protects from false
referencing due to pid rollovers.

This patch adds a new way of addressing processes with the format
'pid:pidfd_inode'. When the new format is used, 'kill' assumes the user wishes
to use a pidfd to signal a process, and will therefore use pidfd_* routines
to complete the task if the provided inode matches the one from a previously
acquired pidfd.

Addresses: #3252
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agobash-completion: add MICROCODE to $OPTS_ALL
Christian Goeschel Ndjomouo [Tue, 2 Sep 2025 22:01:55 +0000 (18:01 -0400)] 
bash-completion: add MICROCODE to $OPTS_ALL

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agolscpu: add MICROCODE output column
Christian Goeschel Ndjomouo [Tue, 2 Sep 2025 21:59:53 +0000 (17:59 -0400)] 
lscpu: add MICROCODE output column

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agobash-completion: (lsns) add -H/--list-columns options
Christian Goeschel Ndjomouo [Tue, 2 Sep 2025 21:21:35 +0000 (17:21 -0400)] 
bash-completion: (lsns) add -H/--list-columns options

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agolsns: fix --list-columns option
Christian Goeschel Ndjomouo [Tue, 2 Sep 2025 21:13:44 +0000 (17:13 -0400)] 
lsns: fix --list-columns option

This patch makes it so that we continue parsing all CLI options even
when we find -H/--list-columns. Therefore we don't miss any format
specifying options, namely --json and --raw, and print the columns
in the desired form.

Closes: #3725
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agolscpu: (man) document the LSCPU_{CACHES_}COLUMNS environment variables
Christian Goeschel Ndjomouo [Tue, 2 Sep 2025 18:56:32 +0000 (14:56 -0400)] 
lscpu: (man) document the LSCPU_{CACHES_}COLUMNS environment variables

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agobash-completion: (lscpu) add -H/--list-columns options
Christian Goeschel Ndjomouo [Tue, 2 Sep 2025 18:56:01 +0000 (14:56 -0400)] 
bash-completion: (lscpu) add -H/--list-columns options

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agolscpu: add --list-columns option and declutter --help output
Christian Goeschel Ndjomouo [Tue, 2 Sep 2025 18:49:34 +0000 (14:49 -0400)] 
lscpu: add --list-columns option and declutter --help output

This moves the list of available columns from the --help output
to the '--list-columns' option and makes the usage information
more readable.

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agolscpu: add support for LSCPU_{CACHES_}COLUMNS environment variables
Christian Goeschel Ndjomouo [Tue, 2 Sep 2025 18:30:01 +0000 (14:30 -0400)] 
lscpu: add support for LSCPU_{CACHES_}COLUMNS environment variables

This provides alternate ways of specifying output columns similar
to the '--parse', '--extended' and '--caches' options.

Addresses: #2816
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agolsclocks: add support for LSCLOCKS_COLUMNS environmental variable
Christian Goeschel Ndjomouo [Sun, 31 Aug 2025 00:04:49 +0000 (20:04 -0400)] 
lsclocks: add support for LSCLOCKS_COLUMNS environmental variable

This provides an alternate way to specify output columns similar
to the --output option.

Addresses: #2816
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agotests: (lsmem) update expected/lscpu/* with 'ZONES' column
Christian Goeschel Ndjomouo [Sun, 31 Aug 2025 02:14:28 +0000 (22:14 -0400)] 
tests: (lsmem) update expected/lscpu/* with 'ZONES' column

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agolsmem: add support for LSMEM_COLUMNS environmental variable
Christian Goeschel Ndjomouo [Sat, 30 Aug 2025 17:09:40 +0000 (13:09 -0400)] 
lsmem: add support for LSMEM_COLUMNS environmental variable

This provides an alternate way to specify output columns similar
to the --output option.

Addresses: #2816
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agolslocks: (man) add LSLOCKS_COLUMNS description in new ENVIRONMENT section
Christian Goeschel Ndjomouo [Tue, 2 Sep 2025 16:58:06 +0000 (12:58 -0400)] 
lslocks: (man) add LSLOCKS_COLUMNS description in new ENVIRONMENT section

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agolslocks: add support for LSLOCKS_COLUMNS environmental variable
Christian Goeschel Ndjomouo [Sat, 30 Aug 2025 06:07:48 +0000 (02:07 -0400)] 
lslocks: add support for LSLOCKS_COLUMNS environmental variable

This provides an alternate way to specify output columns similar
to the --output option.

Addresses: #2816
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agofallocate: update FALLOC_FL_WRITE_ZEROES
Karel Zak [Mon, 1 Sep 2025 12:10:17 +0000 (14:10 +0200)] 
fallocate: update FALLOC_FL_WRITE_ZEROES

Update to Zhang Yi's latest version of the patch.

Unfortunately, I missed that he was still working on it (it was sent
to the kernel mailing lists rather than the util-linux mailing list).

Signed-off-by: Karel Zak <kzak@redhat.com>
2 months agolib/canonicalize: use ul_ prefix
Karel Zak [Wed, 27 Aug 2025 10:39:03 +0000 (12:39 +0200)] 
lib/canonicalize: use ul_ prefix

Signed-off-by: Karel Zak <kzak@redhat.com>
2 months agolib/canonicalize: introduce generic drop-permission caller
Karel Zak [Tue, 1 Jul 2025 10:26:41 +0000 (12:26 +0200)] 
lib/canonicalize: introduce generic drop-permission caller

* add ul_restricted_path_oper() to fileutils.c

* use it as backed for canonicalize_path_restricted()

Signed-off-by: Karel Zak <kzak@redhat.com>
2 months agomeson: cleanup tests to use libcommon.la
Karel Zak [Tue, 1 Jul 2025 15:52:40 +0000 (17:52 +0200)] 
meson: cleanup tests to use libcommon.la

This change simplifies future test work.

Signed-off-by: Karel Zak <kzak@redhat.com>
2 months agoautotools: cleanup tests to use libcommon.la
Karel Zak [Tue, 1 Jul 2025 15:40:51 +0000 (17:40 +0200)] 
autotools: cleanup tests to use libcommon.la

This change simplifies future test work.

Signed-off-by: Karel Zak <kzak@redhat.com>
2 months agotests: add canonicalize test
Karel Zak [Tue, 1 Jul 2025 10:00:40 +0000 (12:00 +0200)] 
tests: add canonicalize test

* add canonicalize_path_restricted() to test_canonicalize program

* add test for root and non-root (but suid) user

Signed-off-by: Karel Zak <kzak@redhat.com>
2 months agoMerge branch 'master' of https://github.com/mariobl/util-linux
Karel Zak [Mon, 1 Sep 2025 10:31:47 +0000 (12:31 +0200)] 
Merge branch 'master' of https://github.com/mariobl/util-linux

* 'master' of https://github.com/mariobl/util-linux:
  Fix markup in pam_lastlog2.8.adoc
  Fix markup in ll2_import_lastlog.3.adoc
  Fix markup in more.1.adoc
  Fix markup in column.1.adoc
  Fix markup in mesg.1.adoc
  Fix markup in unshare.1.adoc
  Fix markup in swapon.8.adoc
  Fix typos and markup in setpriv.1.adoc
  Fix markup in lsirq.1.adoc
  Fix markup in flock.1.adoc
  Fix markup in chmem.8.adoc
  Fix markup in lastlog2.8.adoc
  Fix markup in findmnt.8.adoc
  Fix markup in su.1.adoc
  Fix markup in login.1.adoc
  Fix markup in scols-filter.5.adoc

2 months agoMerge branch 'lsfd--no-hypertext' of https://github.com/masatake/util-linux
Karel Zak [Mon, 1 Sep 2025 10:27:35 +0000 (12:27 +0200)] 
Merge branch 'lsfd--no-hypertext' of https://github.com/masatake/util-linux

* 'lsfd--no-hypertext' of https://github.com/masatake/util-linux:
  lsfd: revise the code disabling hyperlinks

2 months agoMerge branch 'zramctl-max_comp_streams_fix' of https://github.com/mentha/util-linux
Karel Zak [Mon, 1 Sep 2025 10:17:15 +0000 (12:17 +0200)] 
Merge branch 'zramctl-max_comp_streams_fix' of https://github.com/mentha/util-linux

* 'zramctl-max_comp_streams_fix' of https://github.com/mentha/util-linux:
  zramctl: ignore ENOENT when setting max_comp_streams

2 months agoMerge branch 'fix/findmnt_output_regression' of https://github.com/cgoesche/util...
Karel Zak [Mon, 1 Sep 2025 09:00:19 +0000 (11:00 +0200)] 
Merge branch 'fix/findmnt_output_regression' of https://github.com/cgoesche/util-linux-fork

* 'fix/findmnt_output_regression' of https://github.com/cgoesche/util-linux-fork:
  findmnt: add missing newline in --raw, --pair and --list output formats

2 months agoMerge branch 'man-ipcrm' of https://github.com/PrasannaPaithankar/util-linux
Karel Zak [Mon, 1 Sep 2025 08:13:48 +0000 (10:13 +0200)] 
Merge branch 'man-ipcrm' of https://github.com/PrasannaPaithankar/util-linux

* 'man-ipcrm' of https://github.com/PrasannaPaithankar/util-linux:
  man: Fixed incorrect ipcrm options

2 months agoMerge branch 'feat/improve_umount_bash_comp' of https://github.com/cgoesche/util...
Karel Zak [Mon, 1 Sep 2025 08:12:04 +0000 (10:12 +0200)] 
Merge branch 'feat/improve_umount_bash_comp' of https://github.com/cgoesche/util-linux-fork

* 'feat/improve_umount_bash_comp' of https://github.com/cgoesche/util-linux-fork:
  bash-completion: add fallback to filename expansion for umount

2 months agolsfd: revise the code disabling hyperlinks
Masatake YAMATO [Sat, 30 Aug 2025 18:18:32 +0000 (03:18 +0900)] 
lsfd: revise the code disabling hyperlinks

In the original code, the code was at file.c.  This change lifts up
the code to upper layer.  As a result the fill_column method of struct
file becomes simple.

As a side effect. this change disables hyperlinks for the entries of
UNKN type (e.g. eventpool, or pidfd). This is a bug fix.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2 months agoFix markup in pam_lastlog2.8.adoc
Mario Blättermann [Sun, 31 Aug 2025 15:43:41 +0000 (17:43 +0200)] 
Fix markup in pam_lastlog2.8.adoc

2 months agoFix markup in ll2_import_lastlog.3.adoc
Mario Blättermann [Sun, 31 Aug 2025 15:41:38 +0000 (17:41 +0200)] 
Fix markup in ll2_import_lastlog.3.adoc

2 months agoFix markup in more.1.adoc
Mario Blättermann [Sun, 31 Aug 2025 15:39:17 +0000 (17:39 +0200)] 
Fix markup in more.1.adoc

2 months agoFix markup in column.1.adoc
Mario Blättermann [Sun, 31 Aug 2025 15:38:04 +0000 (17:38 +0200)] 
Fix markup in column.1.adoc

2 months agoFix markup in mesg.1.adoc
Mario Blättermann [Sun, 31 Aug 2025 15:35:15 +0000 (17:35 +0200)] 
Fix markup in mesg.1.adoc

2 months agoFix markup in unshare.1.adoc
Mario Blättermann [Sun, 31 Aug 2025 15:34:12 +0000 (17:34 +0200)] 
Fix markup in unshare.1.adoc

2 months agoFix markup in swapon.8.adoc
Mario Blättermann [Sun, 31 Aug 2025 15:32:27 +0000 (17:32 +0200)] 
Fix markup in swapon.8.adoc

2 months agoFix typos and markup in setpriv.1.adoc
Mario Blättermann [Sun, 31 Aug 2025 15:30:44 +0000 (17:30 +0200)] 
Fix typos and markup in setpriv.1.adoc

2 months agoFix markup in lsirq.1.adoc
Mario Blättermann [Sun, 31 Aug 2025 15:28:36 +0000 (17:28 +0200)] 
Fix markup in lsirq.1.adoc

2 months agoFix markup in flock.1.adoc
Mario Blättermann [Sun, 31 Aug 2025 15:26:46 +0000 (17:26 +0200)] 
Fix markup in flock.1.adoc

2 months agoFix markup in chmem.8.adoc
Mario Blättermann [Sun, 31 Aug 2025 15:24:29 +0000 (17:24 +0200)] 
Fix markup in chmem.8.adoc

2 months agoFix markup in lastlog2.8.adoc
Mario Blättermann [Sun, 31 Aug 2025 15:22:41 +0000 (17:22 +0200)] 
Fix markup in lastlog2.8.adoc

2 months agoFix markup in findmnt.8.adoc
Mario Blättermann [Sun, 31 Aug 2025 15:21:42 +0000 (17:21 +0200)] 
Fix markup in findmnt.8.adoc

2 months agoFix markup in su.1.adoc
Mario Blättermann [Sun, 31 Aug 2025 15:20:01 +0000 (17:20 +0200)] 
Fix markup in su.1.adoc

2 months agoFix markup in login.1.adoc
Mario Blättermann [Sun, 31 Aug 2025 15:18:22 +0000 (17:18 +0200)] 
Fix markup in login.1.adoc

2 months agoFix markup in scols-filter.5.adoc
Mario Blättermann [Sun, 31 Aug 2025 15:15:48 +0000 (17:15 +0200)] 
Fix markup in scols-filter.5.adoc

2 months agozramctl: ignore ENOENT when setting max_comp_streams
Jiang XueQian [Sat, 30 Aug 2025 09:02:59 +0000 (17:02 +0800)] 
zramctl: ignore ENOENT when setting max_comp_streams

The `max_comp_streams` attribute of zram devices has been deprecated and
all writes were silently ignored by the kernel since 2016. It was
finally removed in 6.15, causing zramctl to fail on ENOENT, when it
should just ignore the error.

Signed-off-by: Jiang XueQian <jiangxueqian@gmail.com>
2 months agofindmnt: add missing newline in --raw, --pair and --list output formats
Christian Goeschel Ndjomouo [Sat, 30 Aug 2025 02:41:04 +0000 (22:41 -0400)] 
findmnt: add missing newline in --raw, --pair and --list output formats

Addresses: #3711
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agoman: Fixed incorrect ipcrm options
Prasanna Paithankar [Fri, 29 Aug 2025 12:43:17 +0000 (18:13 +0530)] 
man: Fixed incorrect ipcrm options

Signed-off-by: Prasanna Paithankar <paithankarprasanna@gmail.com>
2 months agoMerge branch 'zfs-reflinks' of https://github.com/lordcheeto/util-linux
Karel Zak [Thu, 28 Aug 2025 12:21:54 +0000 (14:21 +0200)] 
Merge branch 'zfs-reflinks' of https://github.com/lordcheeto/util-linux

* 'zfs-reflinks' of https://github.com/lordcheeto/util-linux:
  Add reflink support for ZFS.

2 months agolib/canonicalize: refactor canonicalize_path()
Karel Zak [Tue, 1 Jul 2025 09:19:29 +0000 (11:19 +0200)] 
lib/canonicalize: refactor canonicalize_path()

 * introduce do_canonicalize() with proper return values

 * use do_canonicalize() everywhere

Signed-off-by: Karel Zak <kzak@redhat.com>
2 months agobash-completion: add fallback to filename expansion for umount
Christian Goeschel Ndjomouo [Thu, 28 Aug 2025 03:26:42 +0000 (23:26 -0400)] 
bash-completion: add fallback to filename expansion for umount

If the user defined path can not be found in the mount table
fallback to simple filename expansion.

Addresses: #1333
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agoAdd reflink support for ZFS.
Chester Gregg [Thu, 28 Aug 2025 02:22:30 +0000 (02:22 +0000)] 
Add reflink support for ZFS.

OpenZFS has added the block cloning feature, which implements reflinks for its copy-on-write filesystem. It is now stable and enabled by default on OpenZFS 2.3.0.

2 months agogetopt: add member posixly_correct to struct getopt_control
Christian Goeschel Ndjomouo [Wed, 27 Aug 2025 08:53:11 +0000 (04:53 -0400)] 
getopt: add member posixly_correct to struct getopt_control

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agogetopt: add feature to ignore unknown options
Christian Goeschel Ndjomouo [Wed, 27 Aug 2025 08:30:49 +0000 (04:30 -0400)] 
getopt: add feature to ignore unknown options

This feature addition will add the '-U' and '--unknown' options
It'll allow getopt to ignore unknown options and leave them untouched.
Additionally, it will surpress any error messages generated by getopt(3).

Addresses: #701
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agolib/canonicalize: rename to ul_absolute_path()
Karel Zak [Tue, 1 Jul 2025 09:01:40 +0000 (11:01 +0200)] 
lib/canonicalize: rename to ul_absolute_path()

Signed-off-by: Karel Zak <kzak@redhat.com>
2 months agoMerge branch 'PR/color-names-fixes' of https://github.com/karelzak/util-linux-work
Karel Zak [Tue, 26 Aug 2025 09:26:48 +0000 (11:26 +0200)] 
Merge branch 'PR/color-names-fixes' of https://github.com/karelzak/util-linux-work

* 'PR/color-names-fixes' of https://github.com/karelzak/util-linux-work:
  tests: add color names test
  lib/color-names: fix stupid bugs

2 months agoMerge branch 'sfdisk/args' of https://github.com/t-8ch/util-linux
Karel Zak [Tue, 26 Aug 2025 09:26:21 +0000 (11:26 +0200)] 
Merge branch 'sfdisk/args' of https://github.com/t-8ch/util-linux

* 'sfdisk/args' of https://github.com/t-8ch/util-linux:
  sfdisk: reject spurious arguments for --reorder/--backup-pt-sectors

2 months agoMerge branch 'feat/add_microcode_to_lscpu_summary' of https://github.com/cgoesche...
Karel Zak [Tue, 26 Aug 2025 09:25:48 +0000 (11:25 +0200)] 
Merge branch 'feat/add_microcode_to_lscpu_summary' of https://github.com/cgoesche/util-linux-fork

* 'feat/add_microcode_to_lscpu_summary' of https://github.com/cgoesche/util-linux-fork:
  lscpu: add 'microcode' information to the CPU summary

2 months agoMerge branch 'fix/clarify_long_flag_in_getopt_script_examples' of https://github...
Karel Zak [Tue, 26 Aug 2025 09:25:18 +0000 (11:25 +0200)] 
Merge branch 'fix/clarify_long_flag_in_getopt_script_examples' of https://github.com/cgoesche/util-linux-fork

* 'fix/clarify_long_flag_in_getopt_script_examples' of https://github.com/cgoesche/util-linux-fork:
  getopt: clarify the use of '--long' instead of '--longoptions' in shell examples

2 months agoMerge branch 'fix/fstrim_use_f_type_equal_macro' of https://github.com/cgoesche/util...
Karel Zak [Tue, 26 Aug 2025 09:24:34 +0000 (11:24 +0200)] 
Merge branch 'fix/fstrim_use_f_type_equal_macro' of https://github.com/cgoesche/util-linux-fork

* 'fix/fstrim_use_f_type_equal_macro' of https://github.com/cgoesche/util-linux-fork:
  fstrim: use F_TYPE_EQUAL() macro for statfs.f_type comparison

2 months agoMerge branch 'fix/procfs_use_f_type_equal_macro' of https://github.com/cgoesche/util...
Karel Zak [Tue, 26 Aug 2025 09:24:16 +0000 (11:24 +0200)] 
Merge branch 'fix/procfs_use_f_type_equal_macro' of https://github.com/cgoesche/util-linux-fork

* 'fix/procfs_use_f_type_equal_macro' of https://github.com/cgoesche/util-linux-fork:
  procfs: use F_TYPE_EQUAL() macro for statfs.f_type comparison

2 months agoMerge branch 'feat/support_lsblk_columns_env' of https://github.com/cgoesche/util...
Karel Zak [Tue, 26 Aug 2025 09:22:41 +0000 (11:22 +0200)] 
Merge branch 'feat/support_lsblk_columns_env' of https://github.com/cgoesche/util-linux-fork

* 'feat/support_lsblk_columns_env' of https://github.com/cgoesche/util-linux-fork:
  lsblk: add support for LSBLK_COLUMNS environmental variable as an alternative to --output

2 months agoMerge branch 'fix/typo_in_lsblk_routine' of https://github.com/cgoesche/util-linux...
Karel Zak [Tue, 26 Aug 2025 09:20:44 +0000 (11:20 +0200)] 
Merge branch 'fix/typo_in_lsblk_routine' of https://github.com/cgoesche/util-linux-fork

* 'fix/typo_in_lsblk_routine' of https://github.com/cgoesche/util-linux-fork:
  lsblk: (typo) rename list_colunms() to list_columns()

2 months agoMerge branch 'fix/document_special_chars_in_getopt' of https://github.com/cgoesche...
Karel Zak [Tue, 26 Aug 2025 09:20:16 +0000 (11:20 +0200)] 
Merge branch 'fix/document_special_chars_in_getopt' of https://github.com/cgoesche/util-linux-fork

* 'fix/document_special_chars_in_getopt' of https://github.com/cgoesche/util-linux-fork:
  getopt: document special symbols that should not be used as option characters

2 months agoMerge branch 'master' of https://github.com/ticpu/util-linux
Karel Zak [Tue, 26 Aug 2025 09:19:23 +0000 (11:19 +0200)] 
Merge branch 'master' of https://github.com/ticpu/util-linux

* 'master' of https://github.com/ticpu/util-linux:
  zramctl: fix MEM-USED column description

2 months agoMerge branch 'PR/lscpu-extend-dmi' of https://github.com/karelzak/util-linux-work
Karel Zak [Tue, 26 Aug 2025 09:18:00 +0000 (11:18 +0200)] 
Merge branch 'PR/lscpu-extend-dmi' of https://github.com/karelzak/util-linux-work

* 'PR/lscpu-extend-dmi' of https://github.com/karelzak/util-linux-work:
  lscpu: use maximum CPU speed from DMI, avoid duplicate version string

2 months agoMerge branch 'lsfd--raw-decode-protocol' of https://github.com/masatake/util-linux
Karel Zak [Tue, 26 Aug 2025 09:17:15 +0000 (11:17 +0200)] 
Merge branch 'lsfd--raw-decode-protocol' of https://github.com/masatake/util-linux

* 'lsfd--raw-decode-protocol' of https://github.com/masatake/util-linux:
  lsfd: decode protocol numbers of RAW and RAW6 sockets

2 months agoMerge branch 'PR/mount-api-includes' of https://github.com/karelzak/util-linux-work
Karel Zak [Tue, 26 Aug 2025 09:16:41 +0000 (11:16 +0200)] 
Merge branch 'PR/mount-api-includes' of https://github.com/karelzak/util-linux-work

* 'PR/mount-api-includes' of https://github.com/karelzak/util-linux-work:
  include/mount-api-utils: update to recent kernel
  include/mount-api-utils: avoid using sys/mount.h

2 months agochmem: Remove commit - chmem print warnings about failures always
Sumanth Korikkar [Fri, 22 Aug 2025 15:13:53 +0000 (17:13 +0200)] 
chmem: Remove commit - chmem print warnings about failures always

Users do not care which blocks are set offline, when using size option
Consistently printing warnings/errors in this case may confuse them and
create the false impression that the enable/disable operation itself has
failed.

If size option succeeds, chmem should not print errors/warnings.

Hence, revert commit
48675a744 ("chmem: print warnings about failures always (not only with --verbose)")

Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
2 months agolscpu: add 'microcode' information to the CPU summary
cgoesche [Sun, 24 Aug 2025 00:25:36 +0000 (20:25 -0400)] 
lscpu: add 'microcode' information to the CPU summary

The procfs provides microcode revision information on
supported platforms (probably only x86 for now).
It can be useful to show this in the output of lscpu
for various use cases, e.g. applications that wish to
make sure that a specific microcode version has been
loaded.

Addresses: #3050
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agotests: add color names test
Karel Zak [Mon, 25 Aug 2025 11:07:21 +0000 (13:07 +0200)] 
tests: add color names test

Signed-off-by: Karel Zak <kzak@redhat.com>
2 months agolib/color-names: fix stupid bugs
Karel Zak [Mon, 25 Aug 2025 10:05:01 +0000 (12:05 +0200)] 
lib/color-names: fix stupid bugs

- sort "white" -> "yellow"
- fix typo "lightgray,"

Fixes: https://github.com/util-linux/util-linux/issues/2863
Signed-off-by: Karel Zak <kzak@redhat.com>
2 months agosfdisk: reject spurious arguments for --reorder/--backup-pt-sectors
Thomas Weißschuh [Sun, 24 Aug 2025 09:45:45 +0000 (11:45 +0200)] 
sfdisk: reject spurious arguments for --reorder/--backup-pt-sectors

These commands only accept a single device argument.
Reject any additional unexpected arguments.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2 months agogetopt: clarify the use of '--long' instead of '--longoptions' in shell examples
cgoesche [Sat, 23 Aug 2025 01:52:29 +0000 (21:52 -0400)] 
getopt: clarify the use of '--long' instead of '--longoptions' in shell examples

Addresses: #2593
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agofstrim: use F_TYPE_EQUAL() macro for statfs.f_type comparison
cgoesche [Sat, 23 Aug 2025 01:01:16 +0000 (21:01 -0400)] 
fstrim: use F_TYPE_EQUAL() macro for statfs.f_type comparison

Addresses: #2332
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agoprocfs: use F_TYPE_EQUAL() macro for statfs.f_type comparison
cgoesche [Sat, 23 Aug 2025 00:56:48 +0000 (20:56 -0400)] 
procfs: use F_TYPE_EQUAL() macro for statfs.f_type comparison

Addresses: #2332
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agolsblk: add support for LSBLK_COLUMNS environmental variable as an alternative to...
cgoesche [Sat, 23 Aug 2025 00:26:07 +0000 (20:26 -0400)] 
lsblk: add support for LSBLK_COLUMNS environmental variable as an alternative to --output

Addresses: #2816
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agolsblk: (typo) rename list_colunms() to list_columns()
cgoesche [Fri, 22 Aug 2025 23:35:36 +0000 (19:35 -0400)] 
lsblk: (typo) rename list_colunms() to list_columns()

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agogetopt: document special symbols that should not be used as option characters
cgoesche [Fri, 22 Aug 2025 21:31:24 +0000 (17:31 -0400)] 
getopt: document special symbols that should not be used as option characters

getopt(3) routines return `?` or `:` when an unknown option character is encountered
or an option is missing its required argument, respectively. It also disallows
`;` as an option character. Documenting this makes users aware that they may not use
these reserved symbols as option characters, e.g. `-?` which is used in some older programs.

Addresses: #2995
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
2 months agozramctl: fix MEM-USED column description
Jérôme Poulin [Fri, 22 Aug 2025 03:54:17 +0000 (23:54 -0400)] 
zramctl: fix MEM-USED column description

The MEM-USED column was incorrectly documented as showing current
memory consumption. This is due to confusing naming in the kernel's
zram implementation:

- Kernel field "mem_used_total" (3rd in mm_stat) = current memory usage
- Kernel field "mem_used_max" (5th in mm_stat) = peak memory usage

zramctl maps these as:
- TOTAL column <= mem_used_total (current usage)
- MEM-USED column <= mem_used_max (peak usage)

The misleading "MEM-USED" name suggests current usage, but it actually
shows the peak memory usage (high water mark) since device creation
or last reset. This is tracked by the kernel's max_used_pages which
only increases when current usage exceeds the stored maximum.

Fixed description from:
"memory zram have been consumed to store compressed data" to
"peak memory usage to store compressed data".

Mise à jour de la traduction française.

2 months agolscpu: use maximum CPU speed from DMI, avoid duplicate version string
Karel Zak [Thu, 21 Aug 2025 09:35:17 +0000 (11:35 +0200)] 
lscpu: use maximum CPU speed from DMI, avoid duplicate version string

* Read maximum CPU speed from DMI
* Don't use max speed if nonsensical
* Avoid appending "CPU @ speed" to the version string if it's already included.
  (This is a code robustness improvement as DMI is currently read for ARMs only,
   and the issue was detected on Intel.)

Fixes: https://github.com/util-linux/util-linux/commit/a772d7c493afcec32f0123fc947013f74db6e45d
Signed-off-by: Karel Zak <kzak@redhat.com>
2 months agoMerge branch 'kill/usage-indent-comment-grammar' of https://github.com/WakeNaoki...
Karel Zak [Thu, 21 Aug 2025 08:59:25 +0000 (10:59 +0200)] 
Merge branch 'kill/usage-indent-comment-grammar' of https://github.com/WakeNaoki/util-linux

* 'kill/usage-indent-comment-grammar' of https://github.com/WakeNaoki/util-linux:
  kill: comments: fix grammar in parse_arguments()
  kill: usage: fix wrapped indent in -l/--list description

2 months agoinclude/mount-api-utils: update to recent kernel
Karel Zak [Thu, 21 Aug 2025 08:16:14 +0000 (10:16 +0200)] 
include/mount-api-utils: update to recent kernel

Signed-off-by: Karel Zak <kzak@redhat.com>
2 months agoinclude/mount-api-utils: avoid using sys/mount.h
Karel Zak [Thu, 21 Aug 2025 07:59:10 +0000 (09:59 +0200)] 
include/mount-api-utils: avoid using sys/mount.h

The file is unnecessary and introduces duplicate #define of MS_* macros.

Fixes: https://github.com/util-linux/util-linux/issues/3674
Signed-off-by: Karel Zak <kzak@redhat.com>
2 months agoliblastlog2: markup fixes for man pages
Mario Blättermann [Thu, 21 Aug 2025 07:35:47 +0000 (09:35 +0200)] 
liblastlog2: markup fixes for man pages

Signed-off-by: Karel Zak <kzak@redhat.com>
2 months agokill: comments: fix grammar in parse_arguments()
Naoki Wake [Tue, 19 Aug 2025 01:49:35 +0000 (18:49 -0700)] 
kill: comments: fix grammar in parse_arguments()

Insert 'that' so the sentence reads '... only option that can be
used with other options.' Comment-only change; no functional impact.

Signed-off-by: Naoki Wake <wakeke.rainbowearth@gmail.com>