]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Karel Zak [Tue, 30 Apr 2019 09:56:27 +0000 (11:56 +0200)]
build-sys: release++ (v2.34-rc1)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 30 Apr 2019 09:52:20 +0000 (11:52 +0200)]
docs: update v2.34-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 29 Apr 2019 12:59:39 +0000 (14:59 +0200)]
docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 29 Apr 2019 12:47:19 +0000 (14:47 +0200)]
tests: build-sys update
* libblkid does not depend on libuuid anymore
* libncurses depends on libdl due to
$ ncursesw6-config --libs
-lncursesw -ltinfo -ldl
* new command hardlink (with dependence on libpcre2-8
* hwclock needs librt
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 25 Apr 2019 08:18:08 +0000 (10:18 +0200)]
build-sys: don't use ASAN on XOS
It seems that Apple Clang is not mature enough to use ASAN.
AddressSanitizer: detect_leaks is not supported on this platform.
Let's disable ASAN on XOS at all.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 24 Apr 2019 16:39:05 +0000 (18:39 +0200)]
po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 24 Apr 2019 16:31:08 +0000 (18:31 +0200)]
hardlink: remove \r from output
* remove \r from internationalized messages
* remove \r from all output to make it easy to use (see for example
output file from "hardlink -vv --dry-run . &> log")
* remove unnecessary formatting stuff from output, just keep is simple
and stupid...
Signed-off-by: Karel Zak <kzak@redhat.com>
Sebastian Rasmussen [Wed, 24 Apr 2019 16:10:37 +0000 (18:10 +0200)]
po: update sv.po (from translationproject.org)
Božidar Putanec [Wed, 24 Apr 2019 16:10:37 +0000 (18:10 +0200)]
po: update hr.po (from translationproject.org)
Frédéric Marchal [Wed, 24 Apr 2019 16:10:36 +0000 (18:10 +0200)]
po: update fr.po (from translationproject.org)
Antonio Ceballos Roa [Wed, 24 Apr 2019 16:10:36 +0000 (18:10 +0200)]
po: update es.po (from translationproject.org)
Mario Blättermann [Wed, 24 Apr 2019 16:10:36 +0000 (18:10 +0200)]
po: update de.po (from translationproject.org)
Karel Zak [Wed, 24 Apr 2019 16:04:24 +0000 (18:04 +0200)]
build-sys: add devel-non-asan.conf
This allows to use "./tools/config-gen devel-non-asan" for ./configure.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 24 Apr 2019 16:02:39 +0000 (18:02 +0200)]
build-sys: add 'make checklibdoc'
Let's to be sure that all libs API symbols are documented.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 24 Apr 2019 10:45:20 +0000 (12:45 +0200)]
su: make comment more friedly to 'make checkxalloc'
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 24 Apr 2019 10:43:27 +0000 (12:43 +0200)]
losetup: man page has repeating words [make checkmans]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 24 Apr 2019 10:24:15 +0000 (12:24 +0200)]
tests: auto-enable ASAN option if necessary
Let's detect ASAN LDFLAGS in top level Makefile to make sure we call
tests with --memcheck-asan if build-system has been configured with
--enable-asan.
Signed-off-by: Karel Zak <kzak@redhat.com>
Stanislav Brabec [Wed, 24 Apr 2019 09:16:53 +0000 (11:16 +0200)]
lslogins: Fix discrepancies of SYS_UID_MIN
util-linux does not contain useradd. Its most popular implementation
comes from shadow. SYS_UID_MIN is one of common parameters. Its
hardcoded fallback value is equal to 101 in shadow useradd (see
shadow-4.6/libmisc/find_new_uid.c: get_ranges()), but 201 in
login-utils/lslogins.c.
Let lslogins use the same fallback as useradd from shadow.
Hopefully most distros define its custom value of SYS_UID_MIN in
/etc/login.defs, so this problem is not visible.
login-utils/lslogins.1 does not mention its default at all. Add a
reference and improve text of lslogins(1) to prevent off-by-one
interpretation.
Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
Wang Shilong [Tue, 23 Apr 2019 14:58:28 +0000 (23:58 +0900)]
fstrim: document kernel return minlen explicitly
Filesystem will modify @minlen according to its
block size etc, and will return actual unit
to userspace, document it into manpage.
Cc: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Karel Zak [Wed, 17 Apr 2019 08:38:50 +0000 (10:38 +0200)]
tests: fix TS_ENABLE_ASAN usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 17 Apr 2019 08:10:46 +0000 (10:10 +0200)]
tests: use TS_ENABLE_ASAN in tests to detect ASAN
It seems better to not use any random ASAN variable.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 16 Apr 2019 13:14:13 +0000 (15:14 +0200)]
misc: consolidate version printing and close_stdout()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 16 Apr 2019 11:47:17 +0000 (13:47 +0200)]
include/c: add print_version() macro
Let's consolidate the version printing code. It also seems better to
use exit() after --version, because it's handled in different way by
ASAN.
It's strange, but ASAN reports leaks after return in main(). Note that
we do not use free-before-exit.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 16 Apr 2019 11:42:34 +0000 (13:42 +0200)]
include/closestream: add close_stdout_atexit()
It seems better to have a way to control when atexit(close_stdout()) is
used, because close stdout means that for example ASAN (or another
into binary integrated tool) is not able to print the final summary.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 16 Apr 2019 08:51:35 +0000 (10:51 +0200)]
chcpu: fix memory leak
The CPU set has been allocated more than once.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 15 Apr 2019 11:35:21 +0000 (13:35 +0200)]
libmount: fix compiler warning [-Wsometimes-uninitialized]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 15 Apr 2019 11:05:33 +0000 (13:05 +0200)]
build-sys: enable ASAN on travis-ci
Addresses: Addresses: https://github.com/systemd/systemd/pull/12252
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 15 Apr 2019 11:01:21 +0000 (13:01 +0200)]
build-sys: add ASAN_LDFLAGS
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 15 Apr 2019 10:58:48 +0000 (12:58 +0200)]
tests: ignore errors with enabled ASAN in python bindings
temporary solution... as it ends with
undefined symbol: __asan_option_detect_stack_use_after_return
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 15 Apr 2019 10:55:46 +0000 (12:55 +0200)]
libmount: fix memleak on parse errors
Addresses: https://github.com/systemd/systemd/pull/12252
Signed-off-by: Karel Zak <kzak@redhat.com>
Wang Shilong [Sun, 14 Apr 2019 03:31:56 +0000 (12:31 +0900)]
fstrim: get realpath before trim ioctl
Original motivation is we want to run fstrim command
on Lustre[1] osd server mount point directly, however
our server mount point doesn't export osd directory
to users, and it will cause following command fail:
$fstrim -v /mnt/mds/
But following succeed:
$fstrim -v /mnt/mds
We could improve this a bit by getting realpath
before trapping kernel, this also give benifits
to normal use cases.
Cc: Andreas Dilger <adilger@dilger.ca>
Cc: Shuichi Ihara <sihara@ddn.com>
[1] http://wiki.lustre.org/Main_Page
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Karel Zak [Thu, 11 Apr 2019 11:55:51 +0000 (13:55 +0200)]
tests: update lscpu due to 'Vulnerability' fields
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 11 Apr 2019 11:53:03 +0000 (13:53 +0200)]
lscpu: wrap default output long lines on terminal
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 11 Apr 2019 11:45:29 +0000 (13:45 +0200)]
lscpu: report CPU vulnerabilities
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 11 Apr 2019 11:13:06 +0000 (13:13 +0200)]
include/strutils: add functions to replace and remove chars from string
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 11 Apr 2019 11:11:53 +0000 (13:11 +0200)]
lib/fileutils: add xreaddir()
Remove duplicate code and keep only one implementation in
include/fileutils.h.
Signed-off-by: Karel Zak <kzak@redhat.com>
Andrew Savchenko [Fri, 23 Mar 2018 14:40:22 +0000 (17:40 +0300)]
setarch: add new e2k subarches
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 8 Apr 2019 11:33:04 +0000 (13:33 +0200)]
tests: add /mnt/test/foo^Mbar to mountinfo tests
Addresses: https://github.com/karelzak/util-linux/issues/780
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 8 Apr 2019 11:33:04 +0000 (13:33 +0200)]
libmount: don't use sscanf() for swaps parsing
Addresses: https://github.com/karelzak/util-linux/issues/780
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 8 Apr 2019 11:33:04 +0000 (13:33 +0200)]
libmount: don't use sscanf() for mountinfo parsing
Addresses: https://github.com/karelzak/util-linux/issues/780
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 8 Apr 2019 11:33:04 +0000 (13:33 +0200)]
libmount: don't use sscanf() for fstab parsing
Addresses: https://github.com/karelzak/util-linux/issues/780
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 2 Apr 2019 10:05:25 +0000 (12:05 +0200)]
Merge branch 'spelling' of https://github.com/jwilk-forks/util-linux
* 'spelling' of https://github.com/jwilk-forks/util-linux:
docs: fix typo
Marcos Paulo de Souza [Mon, 1 Apr 2019 21:38:31 +0000 (18:38 -0300)]
fstrim.c: Remove commnet about vfat not supporting fstrim
Commit
f663b5b38f ("fat: add FITRIM ioctl for FAT file system") in
linux kernel added support for using fstrim with vfat filesystem.
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Karel Zak [Fri, 29 Mar 2019 12:00:42 +0000 (13:00 +0100)]
tastset: (man) add :N stride for CPU lists
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 28 Mar 2019 14:29:09 +0000 (15:29 +0100)]
fsck: (man) labels are available for all filesystems
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 25 Mar 2019 15:39:43 +0000 (16:39 +0100)]
su: change error message
We use PAM and if pam_strerror() returns nothing we have no clue why
authentication failed. It's mistake to blame incorrect password if
there are many possible reason...
Addresses: https://github.com/karelzak/util-linux/issues/778
Signed-off-by: Karel Zak <kzak@redhat.com>
Jakub Wilk [Fri, 22 Mar 2019 12:27:33 +0000 (13:27 +0100)]
docs: fix typo
Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Karel Zak [Wed, 20 Mar 2019 12:12:25 +0000 (13:12 +0100)]
taskset: fix cpuset list parser
taskset hangs when executed with badly formatted cpuset list, for
example:
$ taskset -c 0--1 true
The current cpuset list parser is pretty weak as based on scanf()
without strings verification ("-1" as input for "%u" returns
unexpected number). It seems faster and better to use strtoul() and
isdigit().
Addresses: https://github.com/karelzak/util-linux/issues/77
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 19 Mar 2019 16:00:01 +0000 (17:00 +0100)]
lscpu: (man) tiny changes
Karel Zak [Tue, 19 Mar 2019 15:56:28 +0000 (16:56 +0100)]
lscpu: fix excl[] array order
It (rows and columns) must be in ASCII order.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 19 Mar 2019 15:47:55 +0000 (16:47 +0100)]
lscpu: fix and document --output-all
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 19 Mar 2019 15:40:51 +0000 (16:40 +0100)]
lscpu: define libsmartcols flags for -e
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 19 Mar 2019 15:24:54 +0000 (16:24 +0100)]
lscpu: fix --caches order
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 19 Mar 2019 13:22:33 +0000 (14:22 +0100)]
lscpu: (man) make SYNOPSIS compatible with another utils
In this case is really no reason to duplicate all options in SYNOPSIS.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 19 Mar 2019 13:21:02 +0000 (14:21 +0100)]
lscpu: add --bytes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 19 Mar 2019 12:47:11 +0000 (13:47 +0100)]
lscpu: add --caches
$ lscpu -C
NAME ONE-SIZE ALL-SIZE WAYS TYPE LEVEL
L3 8M 8M 16 Unified 3
L2 256K 1M 8 Unified 2
L1i 32K 128K 8 Instruction 1
L1d 32K 128K 8 Data 1
The patch also updates extra caches (s390) output in lsblk summary to
be compatible with output about normal caches.
Addresses: https://github.com/karelzak/util-linux/issues/663
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 19 Mar 2019 11:40:49 +0000 (12:40 +0100)]
lib/path: remove extra semi-colons
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 19 Mar 2019 10:36:43 +0000 (11:36 +0100)]
lscpu: rename macros and functions
We need to differentiate between output about CPUs and another stuff
(caches in future). Let's make it more obvious in code.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 19 Mar 2019 12:56:26 +0000 (13:56 +0100)]
tests: update lscpu output
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 19 Mar 2019 10:09:02 +0000 (11:09 +0100)]
lscpu: report more usable cache sizes
The current version reports cache size as reported by /sys, it means
real size of the one piece of the cache. This way provides minimal
overview about all system as the cache is often shared between CPUs.
It seems better to report all size of the caches in the summary
output. It also does not make sense to report sizes per core (or
socket) as CPU topology may be pretty complicated.
The final solution (not implemented yet) will be to have --list-caches
where we can report all details like all-size, item-size, per-core size,
ways, type, etc.
Addresses: https://github.com/karelzak/util-linux/issues/663
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 18 Mar 2019 15:58:41 +0000 (16:58 +0100)]
lsblk: force tree on --json --tree independently on used columns
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 18 Mar 2019 13:14:09 +0000 (14:14 +0100)]
docs: TODO lscpu --list-caches
Addresses: https://github.com/karelzak/util-linux/issues/663
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 15 Mar 2019 12:33:40 +0000 (13:33 +0100)]
lscpu: add 'Frequency boost'
Show turbo boost status on platforms where is available a file
/sys/devices/system/cpu/cpufreq/boost.
Addresses: https://github.com/karelzak/util-linux/issues/755
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 11 Mar 2019 11:09:30 +0000 (12:09 +0100)]
Merge branch 'swapon-btrfs' of https://github.com/marcosfrm/util-linux
* 'swapon-btrfs' of https://github.com/marcosfrm/util-linux:
swapon.8: mention btrfs(5)
Karel Zak [Mon, 11 Mar 2019 11:06:38 +0000 (12:06 +0100)]
Merge branch 'setterm' of https://github.com/jwilk-forks/util-linux
* 'setterm' of https://github.com/jwilk-forks/util-linux:
setterm: fix --hbcolor description
Karel Zak [Mon, 11 Mar 2019 11:02:31 +0000 (12:02 +0100)]
blkid: (man) cleanup return code section
Addresses: https://github.com/karelzak/util-linux/issues/764
Signed-off-by: Karel Zak <kzak@redhat.com>
Marcos Mello [Mon, 11 Mar 2019 10:30:35 +0000 (07:30 -0300)]
swapon.8: mention btrfs(5)
See:
https://github.com/kdave/btrfs-progs/commit/
5c880c82c2044b0abae5c838c733a2e6522ed122
Jakub Wilk [Fri, 8 Mar 2019 20:25:59 +0000 (21:25 +0100)]
setterm: fix --hbcolor description
--hbcolor is for half-bright characters, which is sort of opposite of
bold.
Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Karel Zak [Fri, 8 Mar 2019 12:15:29 +0000 (13:15 +0100)]
Merge branch 'setterm' of https://github.com/jwilk-forks/util-linux
* 'setterm' of https://github.com/jwilk-forks/util-linux:
setterm: update comments about -ulcolor/-hbcolor syntax
setterm: fix bright colors for --ulcolor/--hbcolor
setterm: disallow "default" for --ulcolor/--hbcolor
Karel Zak [Fri, 8 Mar 2019 11:33:10 +0000 (12:33 +0100)]
Merge branch 'patch-2' of https://github.com/MeggyCal/util-linux
* 'patch-2' of https://github.com/MeggyCal/util-linux:
Update mount.8
Karel Zak [Fri, 8 Mar 2019 11:14:19 +0000 (12:14 +0100)]
mkswap: be more explicit about maximal number of pages
Addresses: https://github.com/karelzak/util-linux/pull/766
Signed-off-by: Karel Zak <kzak@redhat.com>
Tim Hildering [Mon, 4 Mar 2019 18:15:08 +0000 (19:15 +0100)]
libmount: improve fs referencing in tables
* Added member 'struct libmnt_table *tab' to libmnt_fs structure.
* Added 'mnt_fs_get_table()'.
* Removed overhead from 'mnt_table_{insert,move,remove}_fs().
* Added check to 'mnt_table_set_iter()' that entry is member of table.
[kzak@redhat.com: - add to libmount.sys
- add to docs
- cleanup commit message
- set fs->tab = NULL before mnt_unref_fs() in mnt_table_remove_fs()]
Signed-off-by: Tim Hildering <hilderingt@posteo.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
Jakub Wilk [Thu, 7 Mar 2019 21:07:37 +0000 (22:07 +0100)]
setterm: update comments about -ulcolor/-hbcolor syntax
Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Jakub Wilk [Thu, 7 Mar 2019 20:55:07 +0000 (21:55 +0100)]
setterm: fix bright colors for --ulcolor/--hbcolor
The "bright" keyword was parsed, but it didn't actually affect the color
that was set.
Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
Jakub Wilk [Thu, 7 Mar 2019 20:42:09 +0000 (21:42 +0100)]
setterm: disallow "default" for --ulcolor/--hbcolor
Passing "default" to --ulcolor or --hbcolor worked, but it set the color to
bright red. This was not a documented syntax, so let's forbid it.
Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
MeggyCal [Thu, 7 Mar 2019 16:24:22 +0000 (17:24 +0100)]
Update mount.8
xfs is widely supported today
Karel Zak [Wed, 6 Mar 2019 12:12:23 +0000 (13:12 +0100)]
su: add note about ECHO on --pty
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 6 Mar 2019 11:02:30 +0000 (12:02 +0100)]
su: be sensitive to another SIGCHLD ssi_codes
See the same issue for script:
27afe5016842c22d256ea9f88b598d637ca0df84
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 6 Mar 2019 10:54:51 +0000 (11:54 +0100)]
su: fix --pty terminal initialization
* use proper winsize rather than uninitialized variable (Oops...)
* set the current terminal to the raw mode
* disable ECHO for non-terminal execution to be compatible with
non-pty output
Addresses: https://github.com/karelzak/util-linux/issues/767
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 5 Mar 2019 12:56:33 +0000 (13:56 +0100)]
tests: add missing ts_check_test_command call
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 5 Mar 2019 10:38:44 +0000 (11:38 +0100)]
build-sys: add check-programs make target
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 5 Mar 2019 10:06:41 +0000 (11:06 +0100)]
tests: add --noskip-commands
The default is SKIP missing commands on --use-system-commands, but
with --noskip-commands the test will FAIL.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 4 Mar 2019 16:32:03 +0000 (17:32 +0100)]
tests: add missing TS_CMD_UMOUNT check
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 4 Mar 2019 16:28:15 +0000 (17:28 +0100)]
tests: (kill) do not use shell build-in
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 4 Mar 2019 16:10:04 +0000 (17:10 +0100)]
tests: add --use-system-commands
This change allows to use commands from $PATH rather than from
$top_builddir. There two basic use cases:
* check differences between installed and git version
run.sh --use-system-command --show-diff
* check system binaries by upstream tests (for example tests from
src.rpm package)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 4 Mar 2019 15:42:30 +0000 (16:42 +0100)]
tests: add missing ts_check_test_command calls
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 4 Mar 2019 12:13:30 +0000 (13:13 +0100)]
su/runuser: don't mark --pty as experimental, add it to runuser.1 too
* let's assume that --pty is stable enough that we do not have to remove it ;-)
* add --pty to the runuser.1 man page
Addresses: https://github.com/karelzak/util-linux/issues/760
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 4 Mar 2019 10:48:20 +0000 (11:48 +0100)]
Merge branch 'mps_losetup_has_device_inline' of https://github.com/marcosps/util-linux
* 'mps_losetup_has_device_inline' of https://github.com/marcosps/util-linux:
lib/loopdev.c: Inline loopcxt_has_device
Karel Zak [Mon, 4 Mar 2019 10:46:16 +0000 (11:46 +0100)]
Merge branch 'evelu-epyc' of https://github.com/ErwanAliasr1/util-linux
* 'evelu-epyc' of https://github.com/ErwanAliasr1/util-linux:
test: Adding AMD EPYC 7451 24-Core Processor
Patrick Steinhardt [Fri, 1 Mar 2019 17:35:49 +0000 (18:35 +0100)]
last: do not use non-standard __UT_NAMESIZE
In commit
b22332dd4 (last: fix wtmp user name buffer overflow
[asan], 2019-01-13), we started to make sure that the `ut_user`
field of the `utmpx` struct is always NUL-terminated. The
implementation makes use of the `__UT_NAMESIZE` define to
determine the position of the last character in that array. The
problem is that this is a non-standard define that is not
necessarily available on non-glibc platforms.
As there is no standardized define, we should just use `sizeof`.
This fixes compilation on musl libc based systems.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Stanislav Brabec [Thu, 28 Feb 2019 22:09:40 +0000 (23:09 +0100)]
libmount: Recognize more fuse filesystems as pseudofs and netfs
Add some fuse filesystems to the list of pseudofs and netfs.
There are still tens of filesystems that should be evaluated and added.
Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
Stanislav Brabec [Wed, 27 Feb 2019 22:22:40 +0000 (23:22 +0100)]
agetty: Switch to 8-bit processing in get_logname() for UTF-8 terminals
If the terminal is in the UTF-8 mode, get_logname() should use 8-bit
processing.
Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
Cc: Lubomir Rintel <lkundrak@v3.sk>
Tested-by: Lubomir Rintel <lkundrak@v3.sk>
Stanislav Brabec [Wed, 27 Feb 2019 22:22:19 +0000 (23:22 +0100)]
agetty: Fix input of non-ASCII characters in get_logname()
As login supports non-ASCII characters in the logname, agetty should be
consistent.
8b58ffdd re-activated old and ASCII-only get_logname(), which restricted
the input to ASCII only. As the code does not read whole characters,
isascii(ascval) and isprint(ascval) returns nonsenses after entering a
non-ASCII character.
As keyboard maps don't contain unprintable non-control characters, it
seems to be relatively safe to remove both checks.
Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
Cc: Lubomir Rintel <lkundrak@v3.sk>
Tested-by: Lubomir Rintel <lkundrak@v3.sk>
Marcos Paulo de Souza [Sun, 3 Mar 2019 12:15:13 +0000 (09:15 -0300)]
lib/loopdev.c: Inline loopcxt_has_device
loopcxt_has_device is a one liner, so adding inline statement does not
hurt.
Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
Karel Zak [Fri, 1 Mar 2019 14:04:54 +0000 (15:04 +0100)]
tests: make sure TS_HELPER_MBSENCODE compiled
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 28 Feb 2019 13:08:23 +0000 (14:08 +0100)]
blockdev: make –-getbsz less confusing for end-users
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=
1684078
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 27 Feb 2019 11:22:33 +0000 (12:22 +0100)]
tests: use subtests in fdisk/mbr-nondos-mode
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 27 Feb 2019 11:03:28 +0000 (12:03 +0100)]
tests: add fdisk (dos) first sector dialog test
The test verifies that the "First sector" dialog offers relevant range
in the begin of the device if the end of the device is already used.
Signed-off-by: Karel Zak <kzak@redhat.com>
Erwan Velu [Wed, 27 Feb 2019 09:16:27 +0000 (10:16 +0100)]
test: Adding AMD EPYC 7451 24-Core Processor
This cpu is massively numa and have interesting cache organization.
This will be useful to test & implement issue #663
Signed-off-by: Erwan Velu <e.velu@criteo.com>
Karel Zak [Tue, 26 Feb 2019 11:25:21 +0000 (12:25 +0100)]
Merge branch 'dana/column-x' of https://github.com/okdana/util-linux
* 'dana/column-x' of https://github.com/okdana/util-linux:
column: Address fill-order confusion in documentation