thirdparty/util-linux.git
5 months agobuild-sys: release++ (v2.33.2) stable/v2.33 v2.33.2
Karel Zak [Tue, 9 Apr 2019 12:58:07 +0000 (14:58 +0200)] 
build-sys: release++ (v2.33.2)

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agodocs: update v2.33.2-ReleaseNotes
Karel Zak [Tue, 9 Apr 2019 12:55:47 +0000 (14:55 +0200)] 
docs: update v2.33.2-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agodocs: update AUTHORS file
Karel Zak [Tue, 9 Apr 2019 12:36:52 +0000 (14:36 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agopo: merge changes
Karel Zak [Tue, 9 Apr 2019 12:34:59 +0000 (14:34 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agopo: update hr.po (from translationproject.org)
Božidar Putanec [Tue, 9 Apr 2019 12:29:53 +0000 (14:29 +0200)] 
po: update hr.po (from translationproject.org)

5 months agopo: update fr.po (from translationproject.org)
Frédéric Marchal [Tue, 9 Apr 2019 12:29:53 +0000 (14:29 +0200)] 
po: update fr.po (from translationproject.org)

5 months agopo: update de.po (from translationproject.org)
Mario Blättermann [Tue, 9 Apr 2019 12:29:53 +0000 (14:29 +0200)] 
po: update de.po (from translationproject.org)

5 months agotests: add /mnt/test/foo^Mbar to mountinfo tests
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>
5 months agolibmount: don't use sscanf() for swaps parsing
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>
5 months agolibmount: don't use sscanf() for mountinfo parsing
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>
5 months agolibmount: don't use sscanf() for fstab parsing
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>
5 months agofstrim: Remove commnet about vfat not supporting fstrim
Marcos Paulo de Souza [Mon, 1 Apr 2019 21:38:31 +0000 (18:38 -0300)] 
fstrim: 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>
5 months agosu: change error message
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>
5 months agoblkid: (man) cleanup return code section
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>
5 months agosu: be sensitive to another SIGCHLD ssi_codes
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>
5 months agolast: do not use non-standard __UT_NAMESIZE
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>
5 months agolibmount: Recognize more fuse filesystems as pseudofs and netfs
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>
5 months agoagetty: Switch to 8-bit processing in get_logname() for UTF-8 terminals
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>
5 months agoagetty: Fix input of non-ASCII characters in get_logname()
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>
5 months agolibfdisk: (dos) Use strtoul to parse the label-id
Juerg Haefliger [Fri, 22 Feb 2019 16:04:12 +0000 (17:04 +0100)] 
libfdisk: (dos) Use strtoul to parse the label-id

Parsing of the label-id fails on 32-bit if the MSB is set. Fix that by
using strtoul instead of strtol.

Signed-off-by: Juerg Haefliger <juergh@canonical.com>
5 months agocolumn: Address fill-order confusion in documentation
dana [Fri, 22 Feb 2019 20:11:29 +0000 (14:11 -0600)] 
column: Address fill-order confusion in documentation

Historical versions of column have described the default fill order as
rows-then-columns and the -x order as columns-then-rows. This was
misleading at best, and the util-linux implementation was updated to
clarify the actual behaviour in 3e094e5fe2 (March 2017).

However, the other implementations (used by *BSD, macOS, Debian, &al.)
continue to use the previous wording, and a user comparing them could
easily get the false impression that util-linux column has exactly the
opposite fill behaviour from BSD column.

To address this, a note is added to the man page explaining the change
and clarifying that, despite what the BSD documentation says, the two
implementations behave identically in this regard.

Signed-off-by: dana <dana@dana.is>
5 months agolscpu: document --hex output regression (since v2.30)
Karel Zak [Wed, 20 Feb 2019 12:19:23 +0000 (13:19 +0100)] 
lscpu: document --hex output regression (since v2.30)

Addresses: https://github.com/karelzak/util-linux/issues/744
Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agoinclude/path.h: remove duplicate header inclusion
Sami Kerola [Fri, 25 Jan 2019 20:54:42 +0000 (20:54 +0000)] 
include/path.h: remove duplicate header inclusion

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
5 months agoinclude: add no return function attribute
Sami Kerola [Fri, 8 Feb 2019 22:01:05 +0000 (22:01 +0000)] 
include: add no return function attribute

This warning is repeated 112 times when compiling with all warnings.

xalloc.h:23:1: warning: function '__err_oom' could be declared with
attribute 'noreturn' [-Wmissing-noreturn]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
5 months agolibfdisk: sanity check, to prevent overlapping partitions from being partly reported...
Fabian.Kirsch@dlr.de [Wed, 13 Feb 2019 14:49:10 +0000 (14:49 +0000)] 
libfdisk: sanity check, to prevent overlapping partitions from being partly reported as free

i noticed wrongly reported free space when looking with cfdisk on
an USB drive prepared with the latest alpine *.iso[1].

Feel free to apply below patch, which fixed the issue for me.

Greetings
  Fabian

[1]: http://dl-cdn.alpinelinux.org/alpine/v3.9/releases/x86/alpine-extended-3.9.0-x86.iso

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agowall: remove unnecessary warning
Karel Zak [Thu, 14 Feb 2019 09:41:59 +0000 (10:41 +0100)] 
wall: remove unnecessary warning

wall(1) may be used in scripts or in pipe. In this case report failed
ttyname() does not make sense, especially if the code does not depend
on on this function.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1608176
Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agomount: Do not call mnt_pretty_path() on net file systems.
Stanislav Brabec [Tue, 5 Feb 2019 23:07:54 +0000 (00:07 +0100)] 
mount: Do not call mnt_pretty_path() on net file systems.

Calling mnt_pretty_path() on network file systems can cause mangling of
the output:
root# mount | grep nfs
nfs.example.com:/home on /home type nfs4 ...
root# mkdir -p nfs.example.com:/home
root# mount | grep nfs
/root/nfs.example.com:/home on /home type nfs4 ...

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
5 months agolibfdisk: (gpt) add HiFive Unleashed bootloader partition UUIDs
Icenowy Zheng [Thu, 24 Jan 2019 10:33:34 +0000 (18:33 +0800)] 
libfdisk: (gpt) add HiFive Unleashed bootloader partition UUIDs

The HiFive Unleashed SBC's bootloader seeks for GPT partitions with
specific UUID for loading the next stage bootloader (ZSBL loads FSBL,
and FSBL loads BBL).

Add these partition type UUIDs.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
5 months agoTypo in configuration help
edupont [Fri, 1 Feb 2019 21:57:34 +0000 (22:57 +0100)] 
Typo in configuration help

5 months agomount.8: clarify (no)suid behavior on file capabilities
Peter Wu [Fri, 1 Feb 2019 14:40:53 +0000 (15:40 +0100)] 
mount.8: clarify (no)suid behavior on file capabilities

Clarify that the nosuid option also affects file capabilities and that
it only limits execution of programs. (setgid on directories still
inherit the group regardless of the nosuid option.) The new text is
taken from the mount(2) manual page from the man-pages project.

Addresses: https://github.com/karelzak/util-linux/issues/482
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
5 months agosfdisk: fix logical partition resize when start specified
Karel Zak [Thu, 31 Jan 2019 13:16:42 +0000 (14:16 +0100)] 
sfdisk: fix logical partition resize when start specified

Addresses: https://github.com/karelzak/util-linux/issues/745
Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agologger: (man) make more obvious that --server/socket is required
Karel Zak [Tue, 29 Jan 2019 14:44:13 +0000 (15:44 +0100)] 
logger: (man) make more obvious that --server/socket is required

The options --tcp/udp specify only how, but no where.

Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agobuild-sys: fix crypt() detection without -lcrypt
Johannes Nixdorf [Tue, 22 Jan 2019 18:17:55 +0000 (19:17 +0100)] 
build-sys: fix crypt() detection without -lcrypt

The check tested whether code using crypt() links without -lcrypt, but
didn't set have_crypt to yes if it succeeded.

This fixes the check erroneously failing when compiling against musl
libc.

Signed-off-by: Johannes Nixdorf <mixi@shadowice.org>
5 months agosetarch: don't return address of automatic variable
Andreas Schwab [Sat, 19 Jan 2019 22:18:16 +0000 (23:18 +0100)] 
setarch: don't return address of automatic variable

On architectures without special personalities setarch uses the contents
of a local variable with automatic storage duration after return from
the function, causing it to report a spurious error.

$ setarch m68k
setarch: Kernel cannot set architecture to m68k

Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
5 months agolosetup: use offset in warn_size() calculation
Karel Zak [Fri, 18 Jan 2019 11:13:12 +0000 (12:13 +0100)] 
losetup: use offset in warn_size() calculation

 # dd if=/dev/urandom of=dummy bs=513 count=1 2>/dev/null

 # losetup -f --show --offset 1 dummy
 /dev/loop0
 losetup: dummy: Warning: file does not fit into a 512-byte sector; the end of the file will be ignore

The warning is bogus as with offset the size of the file fits into
512-byte sector. Simple test that all is right:

 # dd if=dummy bs=1 skip=1 2>/dev/null | sha256sum - /dev/loop0
 da2ed0ade6ea518a802cd8a7a3c01c408ad8699ef6856b0b01f92b867d4ba9b5  -
 da2ed0ade6ea518a802cd8a7a3c01c408ad8699ef6856b0b01f92b867d4ba9b5  /dev/loop0

Addresses: https://github.com/karelzak/util-linux/issues/722
Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agowhereis: search in /(s)bin before /usr/lib
Karel Zak [Thu, 17 Jan 2019 10:19:27 +0000 (11:19 +0100)] 
whereis: search in /(s)bin before /usr/lib

Addresses: https://github.com/karelzak/util-linux/issues/741
Signed-off-by: Karel Zak <kzak@redhat.com>
5 months agoreadprofile: check input file is not empty [asan]
Sami Kerola [Sun, 13 Jan 2019 19:59:40 +0000 (19:59 +0000)] 
readprofile: check input file is not empty [asan]

Addresses: https://github.com/karelzak/util-linux/issues/717
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
5 months agolast: fix wtmp user name buffer overflow [asan]
Sami Kerola [Sun, 13 Jan 2019 19:48:59 +0000 (19:48 +0000)] 
last: fix wtmp user name buffer overflow [asan]

Ensure utmp user name field is null terminated.  Without that getpwnam() can
buffer overflow, when wtmp file is malformed.

Addresses: https://github.com/karelzak/util-linux/issues/715
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
5 months agobash-completion: umount support relative path and ~ as home shorthands
Sami Kerola [Sat, 12 Jan 2019 11:14:15 +0000 (11:14 +0000)] 
bash-completion: umount support relative path and ~ as home shorthands

Addresses: https://github.com/karelzak/util-linux/issues/703
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
8 months agobuild-sys: release++ (v2.33.1) v2.33.1
Karel Zak [Wed, 9 Jan 2019 10:14:51 +0000 (11:14 +0100)] 
build-sys: release++ (v2.33.1)

Signed-off-by: Karel Zak <kzak@redhat.com>
8 months agodocs: update v2.33.1-ReleaseNotes
Karel Zak [Wed, 9 Jan 2019 10:13:20 +0000 (11:13 +0100)] 
docs: update v2.33.1-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
8 months agodocs: update AUTHORS file
Karel Zak [Wed, 9 Jan 2019 10:11:00 +0000 (11:11 +0100)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
8 months agopo: merge changes
Karel Zak [Wed, 9 Jan 2019 10:09:03 +0000 (11:09 +0100)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
8 months agopo: update sv.po (from translationproject.org)
Sebastian Rasmussen [Wed, 9 Jan 2019 10:04:30 +0000 (11:04 +0100)] 
po: update sv.po (from translationproject.org)

8 months agopo: update es.po (from translationproject.org)
Antonio Ceballos Roa [Wed, 9 Jan 2019 10:04:30 +0000 (11:04 +0100)] 
po: update es.po (from translationproject.org)

8 months agolibblkid: (ntfs) fix compiler warning [-Wpedantic]
Karel Zak [Wed, 2 Jan 2019 13:44:59 +0000 (14:44 +0100)] 
libblkid: (ntfs) fix compiler warning [-Wpedantic]

libblkid/src/superblocks/ntfs.c:80:2: warning: ISO C restricts enumerator
values to range of 'int' (4294967295 is too large) [-Wpedantic]

Addressed: https://github.com/karelzak/util-linux/pull/732
Signed-off-by: Karel Zak <kzak@redhat.com>
8 months agochmem: add initilizer [clang]
Sami Kerola [Thu, 13 Dec 2018 22:12:26 +0000 (22:12 +0000)] 
chmem: add initilizer [clang]

warning: use of GNU empty initializer extension [-Wgnu-empty-initializer]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
8 months agoRemove duplicate entry for reset-env from usage
John W Higgins [Tue, 18 Dec 2018 01:11:44 +0000 (17:11 -0800)] 
Remove duplicate entry for reset-env from usage

I assume the second entry was not desired in the original commit. Line 153-154 would appear to be a duplicate

8 months agodmesg: correct "-n, --console-level level" example in manual page
Jean-Philippe ROMAIN [Mon, 17 Dec 2018 08:30:54 +0000 (09:30 +0100)] 
dmesg: correct "-n, --console-level level" example in manual page

When providing an abbreviation of the level name with the option "-n, --console-level level",
it corresponds to the level (included) up to which messages are displayed on the console.
If a level number is given, this level is excluded.

So in the given example, "-n 1" is equivalent to "-n emerg".

Signed-off-by: Jean-Philippe Romain <jean-philippe.romain@st.com>
8 months agodocs: add link to mail list archive
Sami Kerola [Sat, 15 Dec 2018 16:05:40 +0000 (16:05 +0000)] 
docs: add link to mail list archive

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
8 months agolibblkid: stratis: correct byte order
Tony Asleson [Thu, 13 Dec 2018 15:03:28 +0000 (09:03 -0600)] 
libblkid: stratis: correct byte order

Stratis superblock is little endian, ensure we retrieve the
number of sectors and initialization time correctly.

Signed-off-by: Tony Asleson <tasleson@redhat.com>
8 months agomkswap: use dd(1) in example rather than fallocate(1)
Karel Zak [Wed, 12 Dec 2018 11:14:39 +0000 (12:14 +0100)] 
mkswap: use dd(1) in example rather than fallocate(1)

The man page warns against fallocate on some filesystems and recommends
dd(1) as the most portable solution. So, let's use dd(1) also in the
example used in the same man page.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1203378
Signed-off-by: Karel Zak <kzak@redhat.com>
8 months agotests: check for tar and {b,g}zip
Karel Zak [Tue, 11 Dec 2018 10:44:48 +0000 (11:44 +0100)] 
tests: check for tar and {b,g}zip

Signed-off-by: Karel Zak <kzak@redhat.com>
8 months agolibmount: (umount) make mnt_stat_mountpoin() usable for relative paths
Karel Zak [Mon, 10 Dec 2018 15:25:08 +0000 (16:25 +0100)] 
libmount: (umount) make mnt_stat_mountpoin() usable for relative paths

 # mount -o loop devicefile /mnt/test
 # umount devicefile
 umount: devicefile: not mounted.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1653781
Signed-off-by: Karel Zak <kzak@redhat.com>
8 months agoumount: fix --quiet
Karel Zak [Mon, 10 Dec 2018 13:34:12 +0000 (14:34 +0100)] 
umount: fix --quiet

Addresses: https://github.com/karelzak/util-linux/commit/d5fd9ac6b208c5acdb6c0023757a7e2827474482#commitcomment-31610748
Signed-off-by: Karel Zak <kzak@redhat.com>
8 months agochoom: fix negative adjust score usage
Karel Zak [Mon, 10 Dec 2018 13:26:04 +0000 (14:26 +0100)] 
choom: fix negative adjust score usage

It's really bad idea to use uint64_t (ul_path_write_u64(()) when write
signed number.

Addresses: https://github.com/karelzak/util-linux/issues/723
Signed-off-by: Karel Zak <kzak@redhat.com>
8 months agolibuuid: fix man page typos
Seth Girvan [Fri, 7 Dec 2018 10:02:00 +0000 (02:02 -0800)] 
libuuid: fix man page typos

Signed-off-by: Seth Girvan <snth@snthhacks.com>
8 months agofstrim: fix usage()
Karel Zak [Mon, 10 Dec 2018 11:03:18 +0000 (12:03 +0100)] 
fstrim: fix usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
8 months agobuild-sys: do not require crypt()
Karel Zak [Thu, 22 Nov 2018 11:53:00 +0000 (12:53 +0100)] 
build-sys: do not require crypt()

The function is necessary only for newgrp and sulogin.

Addresses: https://github.com/karelzak/util-linux/issues/584
Signed-off-by: Karel Zak <kzak@redhat.com>
8 months agobuild-sys: do not require dirfd()
Karel Zak [Wed, 24 Oct 2018 12:32:29 +0000 (14:32 +0200)] 
build-sys: do not require dirfd()

The dirfd() is required on many places, but it should not be required for
all utils by ./configure.ac.

Signed-off-by: Karel Zak <kzak@redhat.com>
8 months agoinclude/c: re-add type checking in container_of()
Ruediger Meier [Sun, 2 Dec 2018 18:23:45 +0000 (19:23 +0100)] 
include/c: re-add type checking in container_of()

This reverts parts of commit eb06d5d4, which seems to be based on
Linux kernel commit c7acec71. Unlike the original kernel patch we did
not add that even stronger type checking by using macro BUILD_BUG_ON_MSG.
So basically we removed a useful warning when compiling such
broken code:

      struct st {
            int a;
            char b;
      };
      struct st t = { .a = 1, .b = 2 };
      struct st *x = container_of(&t.a, struct st, b);
      printf("%p %p\n", (void *)&t, (void *)x);

Moreover we also introduced a new compiler warning for intel/icc:
   "arithmetic on pointer to void or function type"

Let's just revert the update of container_of() because adding a
kernel-like BUILD_BUG_ON_MSG would be too much noise and also
problematic (see kernel commit c03567a8). Also note that the original
problem addressed by the kernel commit seems to be only reproducible
with gcc 4.9, not with any later gcc nor clang,icc. Moreover, currently
we have no such use-case in the UL sources anyways.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
8 months agotests: make lsns-netnsid portable
Karel Zak [Fri, 30 Nov 2018 11:24:15 +0000 (12:24 +0100)] 
tests: make lsns-netnsid portable

It seems ip(8) link-show command does not provide link-netnsid in all
cases (versions ?). Let's try to use "ip netns list-id" as fallback.

This commit also add possibility to debug the script by $LOG variable.

Signed-off-by: Karel Zak <kzak@redhat.com>
8 months agotests: enlarge backing file for fstab-btrfs
Karel Zak [Fri, 30 Nov 2018 11:22:48 +0000 (12:22 +0100)] 
tests: enlarge backing file for fstab-btrfs

It seems the new limit for Btrfs is 47MiB.

Signed-off-by: Karel Zak <kzak@redhat.com>
8 months agomkswap: fix page size warning message
Noel Cragg [Thu, 29 Nov 2018 10:38:41 +0000 (11:38 +0100)] 
mkswap: fix page size warning message

Signed-off-by: Karel Zak <kzak@redhat.com>
8 months agobuild-sys: make fdisk, sfdisk, cfdisk optional (enabled by default)
Carlos Santos [Thu, 22 Nov 2018 15:05:49 +0000 (13:05 -0200)] 
build-sys: make fdisk, sfdisk, cfdisk optional (enabled by default)

Useful for embedded systems, on which only few utilities are required.

[kzak@redhat.com: - rename to --disable-fdisks
                  - use $enable_{c,s,}fdisk in code]

Signed-off-by: Carlos Santos <casantos@datacom.com.br>
Signed-off-by: Karel Zak <kzak@redhat.com>
8 months agosetarch: fix obscure sparc32bash use-case
Karel Zak [Thu, 22 Nov 2018 10:03:35 +0000 (11:03 +0100)] 
setarch: fix obscure sparc32bash use-case

Reported-by: Carlos Santos <casantos@datacom.com.br>
Signed-off-by: Karel Zak <kzak@redhat.com>
8 months agoagetty: Return old behavior with empty logname
Stanislav Brabec [Mon, 19 Nov 2018 23:38:14 +0000 (00:38 +0100)] 
agetty: Return old behavior with empty logname

c094fcd37 introduced a behavior change: When Return is entered with empty
logname, nothing happens. As it confuses users, return back the old
behavior: re-prompt.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
8 months agofstrim: Add Documentation key to fstrim.service
Andreas Henriksson [Mon, 12 Nov 2018 18:45:51 +0000 (19:45 +0100)] 
fstrim: Add Documentation key to fstrim.service

8 months agouuidd: Add Documentation key to uuidd.service
Andreas Henriksson [Mon, 12 Nov 2018 18:39:45 +0000 (19:39 +0100)] 
uuidd: Add Documentation key to uuidd.service

8 months agofix a bug where switch_root would erroneously try to parse initargs
Paul Asmuth [Fri, 9 Nov 2018 16:02:11 +0000 (17:02 +0100)] 
fix a bug where switch_root would erroneously try to parse initargs

before this change, switch_root would try to parse all arguments,
including 'initargs', using getopt, which would lead to an 'unrecognized
option' error when trying to pass a flag to the init program

8 months agoagetty: fix output of escaped characters
Christian Hesse [Wed, 7 Nov 2018 12:55:06 +0000 (13:55 +0100)] 
agetty: fix output of escaped characters

Signed-off-by: Christian Hesse <mail@eworm.de>
8 months agolibblkid: fix detection of dm-integrity superblock
Milan Broz [Wed, 7 Nov 2018 11:48:37 +0000 (12:48 +0100)] 
libblkid: fix detection of dm-integrity superblock

Some new features in Linux kernel 4.19 for dm-integrity use metadata
format version 2, patch adds it to detection.

Signed-off-by: Milan Broz <gmazyland@gmail.com>
8 months agoagetty: fix portability issues
Samuel Thibault [Mon, 12 Nov 2018 10:31:17 +0000 (11:31 +0100)] 
agetty: fix portability issues

Signed-off-by: Karel Zak <kzak@redhat.com>
8 months agotests: run oids test only when uuidgen tool was built
Thomas Deutschmann [Sun, 11 Nov 2018 01:17:55 +0000 (02:17 +0100)] 
tests: run oids test only when uuidgen tool was built

oids test did not check if uuidgen was available.

oids test was also calling uuidgen from PATH which could result
in wrong results if uuidgen from a previous util-linux installation
was used.

With this commit we will check if uuidgen was built and make sure
that we only call the uuidgen binary we just built. If uuidgen is
not available we will skip this test.

10 months agobuild-sys: release++ (v2.33) v2.33
Karel Zak [Tue, 6 Nov 2018 11:08:46 +0000 (12:08 +0100)] 
build-sys: release++ (v2.33)

Signed-off-by: Karel Zak <kzak@redhat.com>
10 months agodocs: update v2.33-ReleaseNotes
Karel Zak [Tue, 6 Nov 2018 11:06:56 +0000 (12:06 +0100)] 
docs: update v2.33-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
10 months agodocs: update AUTHORS file
Karel Zak [Tue, 6 Nov 2018 11:03:34 +0000 (12:03 +0100)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
10 months agopo: merge changes
Karel Zak [Tue, 6 Nov 2018 11:00:00 +0000 (12:00 +0100)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
10 months agopo: update uk.po (from translationproject.org)
Yuri Chornoivan [Tue, 6 Nov 2018 10:43:56 +0000 (11:43 +0100)] 
po: update uk.po (from translationproject.org)

10 months agopo: update pt_BR.po (from translationproject.org)
Rafael Fontenelle [Tue, 6 Nov 2018 10:43:56 +0000 (11:43 +0100)] 
po: update pt_BR.po (from translationproject.org)

10 months agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Tue, 6 Nov 2018 10:43:56 +0000 (11:43 +0100)] 
po: update pl.po (from translationproject.org)

10 months agopo: update ja.po (from translationproject.org)
Takeshi Hamasaki [Tue, 6 Nov 2018 10:43:56 +0000 (11:43 +0100)] 
po: update ja.po (from translationproject.org)

10 months agopo: update fr.po (from translationproject.org)
Frédéric Marchal [Tue, 6 Nov 2018 10:43:56 +0000 (11:43 +0100)] 
po: update fr.po (from translationproject.org)

10 months agopo: update es.po (from translationproject.org)
Antonio Ceballos Roa [Tue, 6 Nov 2018 10:43:56 +0000 (11:43 +0100)] 
po: update es.po (from translationproject.org)

10 months agopo: update cs.po (from translationproject.org)
Petr Písař [Tue, 6 Nov 2018 10:43:56 +0000 (11:43 +0100)] 
po: update cs.po (from translationproject.org)

10 months agoMerge branch 'spelling' of https://github.com/jwilk-forks/util-linux
Karel Zak [Tue, 6 Nov 2018 09:56:03 +0000 (10:56 +0100)] 
Merge branch 'spelling' of https://github.com/jwilk-forks/util-linux

10 months agoeject: use err() rather than abort()
Karel Zak [Mon, 5 Nov 2018 09:34:10 +0000 (10:34 +0100)] 
eject: use err() rather than abort()

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1645920
Signed-off-by: Karel Zak <kzak@redhat.com>
10 months agodocs: fix typos
Jakub Wilk [Sat, 3 Nov 2018 19:55:45 +0000 (20:55 +0100)] 
docs: fix typos

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
10 months agoagetty: when logname is erased, re-enable reloads
Stanislav Brabec [Fri, 26 Oct 2018 13:02:17 +0000 (15:02 +0200)] 
agetty: when logname is erased, re-enable reloads

When user starts to enter logname, 8b58ffdd blocks issue reloads.
Reloads remain blocked even if user deletes all typed characters.

Make things visually consistent: If no characters are entered,
re-enable reloads.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
Reviewed-by: Lubomir Rintel <lkundrak@v3.sk>
Tested-by: Lubomir Rintel <lkundrak@v3.sk>
10 months agodocs: add info about branches; update travis.yml
Karel Zak [Wed, 24 Oct 2018 11:02:59 +0000 (13:02 +0200)] 
docs: add info about branches; update travis.yml

Signed-off-by: Karel Zak <kzak@redhat.com>
10 months agoblkzone: fix report zones sector offset check
Masato Suzuki [Tue, 23 Oct 2018 09:31:35 +0000 (18:31 +0900)] 
blkzone: fix report zones sector offset check

To catch an offset error, an offset should be begger than or equal to
a device size in the condition.

Signed-off-by: Masato Suzuki <masato.suzuki@wdc.com>
10 months agoagetty: don't put the VC into canonical mode
Lubomir Rintel [Fri, 19 Oct 2018 20:08:17 +0000 (22:08 +0200)] 
agetty: don't put the VC into canonical mode

The wait_for_term_input()'s select() needs to be tripped when the user
starts typing. Otherwise the reloads can abort an already in-progress login.

Coupled with \4 and \6 expansions that happen to be there on Fedora Server,
this means reload on every netlink event. With a couple of IPv6 routers
announcing their networks and temporary addresses in use can make it
sometimes virtually impossible to log in.

Seems like zero lflags do the job just fine on a Linux VT. Reset it to
canonical mode before running login.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 months agobuild-sys: release++ (v2.33-rc2) v2.33-rc2
Karel Zak [Fri, 19 Oct 2018 10:19:32 +0000 (12:19 +0200)] 
build-sys: release++ (v2.33-rc2)

Signed-off-by: Karel Zak <kzak@redhat.com>
11 months agodocs: update v2.33-ReleaseNotes
Karel Zak [Fri, 19 Oct 2018 10:18:07 +0000 (12:18 +0200)] 
docs: update v2.33-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
11 months agodocs: update AUTHORS file
Karel Zak [Fri, 19 Oct 2018 10:16:45 +0000 (12:16 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
11 months agopo: merge changes
Karel Zak [Fri, 19 Oct 2018 10:14:52 +0000 (12:14 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
11 months agoagetty: don't use __u32
Karel Zak [Thu, 11 Oct 2018 12:22:08 +0000 (14:22 +0200)] 
agetty: don't use __u32

Signed-off-by: Karel Zak <kzak@redhat.com>
11 months agoagetty: make output more robust
Karel Zak [Thu, 11 Oct 2018 11:29:39 +0000 (13:29 +0200)] 
agetty: make output more robust

Signed-off-by: Karel Zak <kzak@redhat.com>
11 months agoagetty: cleanup issue output change, remove bool
Karel Zak [Thu, 11 Oct 2018 11:21:23 +0000 (13:21 +0200)] 
agetty: cleanup issue output change, remove bool

Signed-off-by: Karel Zak <kzak@redhat.com>
11 months agoagetty: move all issue variables to struct
Karel Zak [Thu, 11 Oct 2018 11:12:02 +0000 (13:12 +0200)] 
agetty: move all issue variables to struct

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