]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
4 years agolsblk: fix SCSI_IDENT_SERIAL
Karel Zak [Thu, 24 Sep 2020 07:56:03 +0000 (09:56 +0200)] 
lsblk: fix SCSI_IDENT_SERIAL

It seems sg3_utils does not use ID_ prefix like other udev stuff.

Addresses: https://github.com/karelzak/util-linux/issues/1143
Signed-off-by: Karel Zak <kzak@redhat.com>
4 years agolsblk: read ID_SCSI_IDENT_SERIAL if available
Karel Zak [Wed, 23 Sep 2020 13:41:05 +0000 (15:41 +0200)] 
lsblk: read ID_SCSI_IDENT_SERIAL if available

This SERIAL comes from sg3_utils.

Addresses: https://github.com/karelzak/util-linux/issues/1143
Signed-off-by: Karel Zak <kzak@redhat.com>
4 years agolibfdisk: add "Linux /usr" and "Linux /usr verity" GPT partition types
nl6720 [Mon, 21 Sep 2020 15:20:16 +0000 (18:20 +0300)] 
libfdisk: add "Linux /usr" and "Linux /usr verity" GPT partition types

See https://systemd.io/DISCOVERABLE_PARTITIONS/ and https://github.com/systemd/systemd/pull/17101 .

Move ARM after x86-64, so that x86 and x86-64 are next to one another.

Signed-off-by: nl6720 <nl6720@gmail.com>
4 years agofallocate: fix --dig-holes at end of files
Gero Treuner [Thu, 10 Sep 2020 19:43:03 +0000 (21:43 +0200)] 
fallocate: fix --dig-holes at end of files

I discovered that making a file sparse with "fallocate -d filename"
fails on the last block of a file, because - usually being partial -
the system call only zeroes that part instead of deallocating the
block. See man fallocate(2) - section "Deallocating file space".

The expected call is punching the whole block beyond eof, which
doesn't change the file length because of flag FALLOC_FL_KEEP_SIZE.

Signed-off-by: Karel Zak <kzak@redhat.com>
4 years agoadd Carmel from NVIDIA
Tomoaki Teshima [Fri, 11 Sep 2020 13:45:54 +0000 (22:45 +0900)] 
add Carmel from NVIDIA

4 years agolsblk: print zero rather than empty SIZE
Karel Zak [Wed, 9 Sep 2020 10:00:10 +0000 (12:00 +0200)] 
lsblk: print zero rather than empty SIZE

Addresses: https://github.com/karelzak/util-linux/issues/1118
Signed-off-by: Karel Zak <kzak@redhat.com>
4 years agolibfdisk: reset context FD on error
yangzz-97 [Sun, 6 Sep 2020 10:30:48 +0000 (18:30 +0800)] 
libfdisk: reset context FD on error

When the query disk fails, reset cxt->dev_fd.

Addresses: https://github.com/karelzak/util-linux/pull/1137
Addresses: https://github.com/karelzak/util-linux/issues/1131
Signed-off-by: Karel Zak <kzak@redhat.com>
4 years agolibsmartcols: don't print empty output on empty table in JSON
Karel Zak [Mon, 7 Sep 2020 09:52:13 +0000 (11:52 +0200)] 
libsmartcols: don't print empty output on empty table in JSON

old version:
 $ findmnt --json --type foo
 $

new version:
 $ findmnt --json --type foo
 {
    "filesystems": [
    ]
 }

Addresses: https://github.com/karelzak/util-linux/issues/1136
Signed-off-by: Karel Zak <kzak@redhat.com>
4 years agomount: Add support for "nosymfollow" mount option.
Mattias Nissler [Thu, 17 Nov 2016 13:47:51 +0000 (14:47 +0100)] 
mount: Add support for "nosymfollow" mount option.

This adds support for the "nosymfollow" mount option, which indicates
that symlinks should not be traversed on the mount this option is
applied to.  Also update the mount(8) man page with information about
this option.

Signed-off-by: Mattias Nissler <mnissler@chromium.org>
Signed-off-by: Ross Zwisler <zwisler@google.com>
4 years agolibmount: do not use pointer as an integer value
Sami Kerola [Fri, 28 Aug 2020 19:59:57 +0000 (20:59 +0100)] 
libmount: do not use pointer as an integer value

Fix couple "initialization of ‘long int’ from ‘void *’ makes integer from
pointer without a cast" warnings.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
4 years agolsblk: fix -T optional argument
Karel Zak [Wed, 2 Sep 2020 09:10:18 +0000 (11:10 +0200)] 
lsblk: fix -T optional argument

Addresses: https://github.com/karelzak/util-linux/issues/1132
Signed-off-by: Karel Zak <kzak@redhat.com>
4 years agopg: fix wcstombs() use
Karel Zak [Tue, 1 Sep 2020 09:50:11 +0000 (11:50 +0200)] 
pg: fix wcstombs() use

The size (3rd) argument should be ignored if the 1st *dest is NULL, but it seems gcc & glibc headers
are more pedantic now:

ext-utils/pg.c:456:13: error: argument 1 is null but the corresponding size argument 3 value is 2048 [-Werror=nonnull]

Signed-off-by: Karel Zak <kzak@redhat.com>
4 years agohwclock: fix SYS_settimeofday fallback
Rosen Penev [Sun, 30 Aug 2020 04:55:58 +0000 (21:55 -0700)] 
hwclock: fix SYS_settimeofday fallback

turns out this is subtly broken. musl 1.2.x for 64-bit architectures defines __NR_settimeofday but not
for 32-bit ones. For 32-bit, it defines a _time32 variant.

4 years agoGenerate valid JSON if partition table is empty
Adriaan de Groot [Mon, 24 Aug 2020 21:30:35 +0000 (23:30 +0200)] 
Generate valid JSON if partition table is empty

When the partition table is present **but** empty, the existing code would output fields followed by a `,` , on the assumption that the list of partitions would follow. But if the list of partitions is empty, it is skipped, leading to output like this:

```
{
  "partitiontable": {
      "label":"gpt",
      "id":"1F9E80D9-DD78-024F-94A3-B61EC82B18C8",
      "device":"/dev/sdb",
      "unit":"sectors",
      "firstlba":2048,
      "lastlba":30949342,
      "sectorsize":512,
  }
}
```

Note the `512,` on the *sectorsize* line.

This is invalid JSON for some parsers, which choke on it.

Avoid this, by checking when outputting the last separator: if there's no table, or there is a table but it is empty, then just put a newline, otherwise use the old path of comma-newline and assume there's going to be a list of partitions after.

4 years agolibfdisk: add systemd-homed user's home GPT partition type
nl6720 [Sat, 22 Aug 2020 12:16:27 +0000 (15:16 +0300)] 
libfdisk: add systemd-homed user's home GPT partition type

See https://systemd.io/HOME_DIRECTORY/ .
Additionally update the URL of the Boot Loader Specification.

Signed-off-by: nl6720 <nl6720@gmail.com>
4 years agolibfdisk: (script) fix possible partno overflow
Karel Zak [Fri, 14 Aug 2020 09:13:50 +0000 (11:13 +0200)] 
libfdisk: (script) fix possible partno overflow

Addresses: https://oss-fuzz.com/testcase-detail/5740890480705536
Signed-off-by: Karel Zak <kzak@redhat.com>
4 years agolibfdisk: (script) fix possible memory leaks
Karel Zak [Thu, 13 Aug 2020 11:48:28 +0000 (13:48 +0200)] 
libfdisk: (script) fix possible memory leaks

Signed-off-by: Karel Zak <kzak@redhat.com>
4 years agolibfdisk: another parse_line_nameval() cleanup
Karel Zak [Thu, 13 Aug 2020 08:13:01 +0000 (10:13 +0200)] 
libfdisk: another parse_line_nameval() cleanup

4 years agolibfdisk: fix typo from 255f5f4c770ebd46a38b58975bd33e33ae87ed24
Karel Zak [Wed, 12 Aug 2020 17:48:47 +0000 (19:48 +0200)] 
libfdisk: fix typo from 255f5f4c770ebd46a38b58975bd33e33ae87ed24

Signed-off-by: Karel Zak <kzak@redhat.com>
4 years agolibfdisk: (script) make sure buffer is initialized
Karel Zak [Wed, 12 Aug 2020 17:36:51 +0000 (19:36 +0200)] 
libfdisk: (script) make sure buffer is initialized

Just to make static analyzers happy.

Signed-off-by: Karel Zak <kzak@redhat.com>
4 years agolibfdisk: (script) don't use sector size if not specified
Karel Zak [Wed, 12 Aug 2020 13:59:38 +0000 (15:59 +0200)] 
libfdisk: (script) don't use sector size if not specified

This is probably bad script API use, but better be safe than sorry.

Signed-off-by: Karel Zak <kzak@redhat.com>
4 years agolibfdisk: (script) make sure label is specified
Karel Zak [Wed, 12 Aug 2020 13:52:53 +0000 (15:52 +0200)] 
libfdisk: (script) make sure label is specified

and unref type if already specified (unlikely, but be paranoid)

Signed-off-by: Karel Zak <kzak@redhat.com>
4 years agohwclock: add fallback if SYS_settimeofday does not exist
Karel Zak [Tue, 11 Aug 2020 09:02:31 +0000 (11:02 +0200)] 
hwclock: add fallback if SYS_settimeofday does not exist

It seems Musl-C removes SYS_settimeofday macro at all.

Addresses: https://github.com/karelzak/util-linux/commit/9c6139a72017cecb9145e46102152cb4f456ada6#commitcomment-41290951
Signed-off-by: Karel Zak <kzak@redhat.com>
4 years agodocs: fix typo in v2.36-ReleaseNotes
Karel Zak [Fri, 7 Aug 2020 11:49:19 +0000 (13:49 +0200)] 
docs: fix typo in v2.36-ReleaseNotes

Reported-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
4 years agobuild-system: stop looking for %ms and %as
Evgeny Vereshchagin [Thu, 6 Aug 2020 13:59:35 +0000 (13:59 +0000)] 
build-system: stop looking for %ms and %as

Looks like those specifiers haven't been used since 6c9ab254aefb6ce7e0e
(where sscanf was removed) was merged. This should help to get
util-linux to compile with MSan. Currently it's failing with
```
...
configure: error: libmount selected, but required scanf string alloc modifier not available
...
configure:20240: ./conftest
==116617==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x496fd6 in main /home/vagrant/util-linux/conftest.c:171:6
    #1 0x7f5eb85ea1a2 in __libc_start_main (/lib64/libc.so.6+0x271a2)
    #2 0x41c2cd in _start (/home/vagrant/util-linux/conftest+0x41c2cd)

SUMMARY: MemorySanitizer: use-of-uninitialized-value /home/vagrant/util-linux/conftest.c:171:6 in main
Exiting
configure:20240: $? = 77
...
configure:20265: $? = 0
configure:20265: ./conftest
MemorySanitizer: bad pointer 0x000000496e60
==116627==MemorySanitizer CHECK failed: /builddir/build/BUILD/compiler-rt-9.0.1.src/lib/msan/../sanitizer_common/sanitizer_allocator_secondary.h:177 "((IsAligned(reinterpret_cast<uptr>(p), page_size_))) != (0)" (0x0, 0x0)
    #0 0x41d1d8 in MsanCheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/home/vagrant/util-linux/conftest+0x41d1d8)
    #1 0x484e1e in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/home/vagrant/util-linux/conftest+0x484e1e)
    #2 0x42066c in __msan::MsanDeallocate(__sanitizer::StackTrace*, void*) (/home/vagrant/util-linux/conftest+0x42066c)
    #3 0x424bc9 in free (/home/vagrant/util-linux/conftest+0x424bc9)
    #4 0x496fae in main /home/vagrant/util-linux/conftest.c:173:2
    #5 0x7f2245f311a2 in __libc_start_main (/lib64/libc.so.6+0x271a2)
    #6 0x41c2cd in _start (/home/vagrant/util-linux/conftest+0x41c2cd)

configure:20265: $? = 77
configure: program exited with status 77
...
| }
configure:22568: result: no
configure:22926: error: libmount selected, but required scanf string alloc modifier not available
```

Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
4 years agolibfdisk: fix fdisk_reread_changes() for extended partitions
Karel Zak [Thu, 6 Aug 2020 09:32:33 +0000 (11:32 +0200)] 
libfdisk: fix fdisk_reread_changes() for extended partitions

Linux kernel assumes only 1KiB extended partition to avoid overlapping
with nested logical partitions. We need to follow this rule for
BLKPG_ADD_PARTITION.

Addresses: https://github.com/karelzak/util-linux/issues/1112
Signed-off-by: Karel Zak <kzak@redhat.com>
4 years agofdisk: fix expected test output on alpha
Chris Hofstaedtler [Fri, 24 Jul 2020 00:35:09 +0000 (00:35 +0000)] 
fdisk: fix expected test output on alpha

The last test output update inadvertedly replaced "ext2" with "MS-DOS"
in the alpha-specific data.

Fixes: 3c36438f0
Broken build log: https://buildd.debian.org/status/fetch.php?pkg=util-linux&arch=alpha&ver=2.36-1&stamp=1595550493&raw=0
Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
4 years agomanpages: fix "The example command" in AVAILABILITY section
Chris Hofstaedtler [Thu, 23 Jul 2020 22:31:41 +0000 (22:31 +0000)] 
manpages: fix "The example command" in AVAILABILITY section

Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
4 years agohexdump: automatically use -C when called as hd
Chris Hofstaedtler [Tue, 23 Jun 2020 00:14:30 +0000 (00:14 +0000)] 
hexdump: automatically use -C when called as hd

When invoking hexdump as hd enable the "Canonical" format to by
default, implying the -C option.

This is historic behaviour on Debian and apparently also on FreeBSD.
Some Debian users have asked for this to be restored, after Debian
switched to util-linux' hexdump and hd.

Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
4 years agolibfdisk: fix last free sector detection if partition size specified
Karel Zak [Mon, 10 Aug 2020 09:37:32 +0000 (11:37 +0200)] 
libfdisk: fix last free sector detection if partition size specified

We need to skip useless gaps between partition if the gap is no large
enough for a new partition. Unfortunately, the current code checks
size of the gap, but does not care for location of the gap -- this is
good enough for dialog driven partitioning, but it's pretty bad if
start of the partition is explicitly specified (e.g. sfdisk).

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1860461
Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agobuild-sys: release++ (v2.36) v2.36
Karel Zak [Thu, 23 Jul 2020 09:26:04 +0000 (11:26 +0200)] 
build-sys: release++ (v2.36)

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agopo: update fr.po (from translationproject.org)
Frédéric Marchal [Thu, 23 Jul 2020 09:25:41 +0000 (11:25 +0200)] 
po: update fr.po (from translationproject.org)

5 years agotools: remove changes merged by accident
Karel Zak [Thu, 23 Jul 2020 09:22:42 +0000 (11:22 +0200)] 
tools: remove changes merged by accident

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agodocs: update v2.36-ReleaseNotes
Karel Zak [Wed, 22 Jul 2020 12:40:18 +0000 (14:40 +0200)] 
docs: update v2.36-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agodocs: update AUTHORS file
Karel Zak [Wed, 22 Jul 2020 12:38:31 +0000 (14:38 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agopo: merge changes
Karel Zak [Wed, 22 Jul 2020 10:20:36 +0000 (12:20 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agopo: update zh_CN.po (from translationproject.org)
Boyuan Yang [Wed, 22 Jul 2020 10:04:53 +0000 (12:04 +0200)] 
po: update zh_CN.po (from translationproject.org)

5 years agopo: update uk.po (from translationproject.org)
Yuri Chornoivan [Wed, 22 Jul 2020 10:04:53 +0000 (12:04 +0200)] 
po: update uk.po (from translationproject.org)

5 years agopo: update pt.po (from translationproject.org)
Pedro Albuquerque [Wed, 22 Jul 2020 10:04:53 +0000 (12:04 +0200)] 
po: update pt.po (from translationproject.org)

5 years agopo: update pt_BR.po (from translationproject.org)
Rafael Fontenelle [Wed, 22 Jul 2020 10:04:53 +0000 (12:04 +0200)] 
po: update pt_BR.po (from translationproject.org)

5 years agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Wed, 22 Jul 2020 10:04:53 +0000 (12:04 +0200)] 
po: update pl.po (from translationproject.org)

5 years agopo: update ja.po (from translationproject.org)
Takeshi Hamasaki [Wed, 22 Jul 2020 10:04:53 +0000 (12:04 +0200)] 
po: update ja.po (from translationproject.org)

5 years agopo: update hr.po (from translationproject.org)
Božidar Putanec [Wed, 22 Jul 2020 10:04:53 +0000 (12:04 +0200)] 
po: update hr.po (from translationproject.org)

5 years agopo: update fr.po (from translationproject.org)
Frédéric Marchal [Wed, 22 Jul 2020 10:04:53 +0000 (12:04 +0200)] 
po: update fr.po (from translationproject.org)

5 years agopo: update es.po (from translationproject.org)
Antonio Ceballos Roa [Wed, 22 Jul 2020 10:04:53 +0000 (12:04 +0200)] 
po: update es.po (from translationproject.org)

5 years agopo: update de.po (from translationproject.org)
Mario Blättermann [Wed, 22 Jul 2020 10:04:53 +0000 (12:04 +0200)] 
po: update de.po (from translationproject.org)

5 years agopo: update cs.po (from translationproject.org)
Petr Písař [Wed, 22 Jul 2020 10:04:53 +0000 (12:04 +0200)] 
po: update cs.po (from translationproject.org)

5 years agodocs: add blkdiscard to ReleaseNotes
Karel Zak [Wed, 22 Jul 2020 09:23:18 +0000 (11:23 +0200)] 
docs: add blkdiscard to ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibsmartcols: (docs) fix reference
Karel Zak [Wed, 22 Jul 2020 09:22:51 +0000 (11:22 +0200)] 
libsmartcols: (docs) fix reference

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibfdisk: (docs) add missing comment
Karel Zak [Wed, 22 Jul 2020 08:44:47 +0000 (10:44 +0200)] 
libfdisk: (docs) add missing comment

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibmount: (docs) fix typo, remove unused reference
Karel Zak [Wed, 22 Jul 2020 08:44:33 +0000 (10:44 +0200)] 
libmount: (docs) fix typo, remove unused reference

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibsmartcols: (docs) add missing references
Karel Zak [Wed, 22 Jul 2020 08:34:14 +0000 (10:34 +0200)] 
libsmartcols: (docs) add missing references

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibmount: (docs) add missing references
Karel Zak [Wed, 22 Jul 2020 08:34:03 +0000 (10:34 +0200)] 
libmount: (docs) add missing references

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibfdisk: (docs) add missing references
Karel Zak [Wed, 22 Jul 2020 08:33:53 +0000 (10:33 +0200)] 
libfdisk: (docs) add missing references

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibblkid: (docs) add missing references
Karel Zak [Wed, 22 Jul 2020 08:33:44 +0000 (10:33 +0200)] 
libblkid: (docs) add missing references

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agoMerge branch 'documentation_typo' of https://github.com/8vasu/util-linux
Karel Zak [Mon, 20 Jul 2020 08:32:44 +0000 (10:32 +0200)] 
Merge branch 'documentation_typo' of https://github.com/8vasu/util-linux

* 'documentation_typo' of https://github.com/8vasu/util-linux:
  fix typo: yourbranch -> yourgit

5 years agoManual pages: scriptreplay.1: Miscellaneous wording, grammar, and formatting fixes
Michael Kerrisk (man-pages) [Wed, 15 Jul 2020 08:15:46 +0000 (10:15 +0200)] 
Manual pages: scriptreplay.1: Miscellaneous wording, grammar, and formatting fixes

Nothing too contentious here, I think, so I'm rolling all
of the edits into one patch.

Signed-off-by: Michael Kerrisk (man-pages) <mtk.manpages@gmail.com>
5 years agoManual pages: scriptlive.1: Miscellaneous wording, grammar, and formatting fixes
Michael Kerrisk (man-pages) [Wed, 15 Jul 2020 08:15:45 +0000 (10:15 +0200)] 
Manual pages: scriptlive.1: Miscellaneous wording, grammar, and formatting fixes

Nothing too contentious here, I think, so I'm rolling all
of the edits into one patch.

Signed-off-by: Michael Kerrisk (man-pages) <mtk.manpages@gmail.com>
5 years agoManual pages: script.1: Miscellaneous wording, grammar, and formatting fixes
Michael Kerrisk (man-pages) [Wed, 15 Jul 2020 08:15:44 +0000 (10:15 +0200)] 
Manual pages: script.1: Miscellaneous wording, grammar, and formatting fixes

Nothing too contentious here, I think, so I'm rolling all
of the edits into one patch.

Signed-off-by: Michael Kerrisk (man-pages) <mtk.manpages@gmail.com>
5 years agolibmount: fix condition for mountinfo filter
Karel Zak [Fri, 17 Jul 2020 08:45:40 +0000 (10:45 +0200)] 
libmount: fix condition for mountinfo filter

The filter has to be used for valid entries.

References: fe0d12d4f82269096f8d0cffc51ca9590814c284
Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agofix typo: yourbranch -> yourgit
Soumendra Ganguly [Fri, 17 Jul 2020 02:03:15 +0000 (21:03 -0500)] 
fix typo: yourbranch -> yourgit

5 years agorename: tests: add more symlink checks
Mauricio Faria de Oliveira [Tue, 14 Jul 2020 18:49:25 +0000 (15:49 -0300)] 
rename: tests: add more symlink checks

Add a few checks to the symlink test, including for the fix
in commit 477239ce0d60 ("rename: fix regression for symlink
with non-existing target").

Tested with './tests/run.sh rename/symlink' before/after that
commit with FAILED/OK results (and '--show-diff') as expected:

After:
       rename: symlink check                  ... OK

Before:
       rename: symlink check                  ... FAILED (rename/symlink)

With --show-diff:

    diff-{{{
    --- /home/mfo/git/util-linux/tests/expected/rename/symlink 2020-07-14 15:21:06.412792160 -0300
    +++ /home/mfo/git/util-linux/tests/output/rename/symlink 2020-07-14 15:45:10.980927233 -0300
    @@ -3,5 +3,3 @@
     rename_slink.3: `old' -> `new'
     `rename_slink.1' -> `rename_symlink.1'
     target
    -`rename_slink.2' -> `rename_symlink.2'
    -target
    }}}-diff

    diff-{{{
    --- /home/mfo/git/util-linux/tests/expected/rename/symlink.err 2020-07-14 15:37:42.466207786 -0300
    +++ /home/mfo/git/util-linux/tests/output/rename/symlink.err 2020-07-14 15:45:10.984927251 -0300
    @@ -1 +1,2 @@
    +rename: rename_slink.2: not accessible: No such file or directory
     rename: rename_slink.3: No such file or directory
    }}}-diff

Signed-off-by: Mauricio Faria de Oliveira <mfo@canonical.com>
5 years agoManual pages: runuser.1, su.1: miscellaneous wording and formatting fixes
Michael Kerrisk (man-pages) [Tue, 14 Jul 2020 12:20:00 +0000 (14:20 +0200)] 
Manual pages: runuser.1, su.1: miscellaneous wording and formatting fixes

Various wording and formatting fixes. Nothing too contentnious, I think,
so I rolled these changes into one patch.

Since there is much common text in su.1 and runuser.1, I've combined
the changes to both pages into one patch, and, as far as possible,
ensured that changes to the common pieces of text match across the
two pages.

Signed-off-by: Michael Kerrisk (man-pages) <mtk.manpages@gmail.com>
5 years agoManual pages: reword su.1 description
Karel Zak [Tue, 14 Jul 2020 12:33:49 +0000 (14:33 +0200)] 
Manual pages: reword su.1 description

Reported-by: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agodocs: reword others "allow to"
Karel Zak [Tue, 14 Jul 2020 12:31:29 +0000 (14:31 +0200)] 
docs: reword others "allow to"

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agoManual pages: various: reword "allow(s) to"
Michael Kerrisk (man-pages) [Tue, 14 Jul 2020 09:57:41 +0000 (11:57 +0200)] 
Manual pages: various: reword "allow(s) to"

The wording "allow(s) to" is not grammatical English. Reword various
pages to use a more correct form such "can be use to" or "allows
the [noun] of".

Aklong the way, fix a few nearby wording errors in some pages.

Signed-off-by: Michael Kerrisk (man-pages) <mtk.manpages@gmail.com>
5 years agoManual pages: login.1: various minor wording fixes
Michael Kerrisk (man-pages) [Tue, 14 Jul 2020 09:57:40 +0000 (11:57 +0200)] 
Manual pages: login.1: various minor wording fixes

Signed-off-by: Michael Kerrisk (man-pages) <mtk.manpages@gmail.com>
5 years agoManual pages: login.1: formatting fixes
Michael Kerrisk (man-pages) [Tue, 14 Jul 2020 09:57:39 +0000 (11:57 +0200)] 
Manual pages: login.1: formatting fixes

Bold for command names; italic for pathnames, etc.

Signed-off-by: Michael Kerrisk (man-pages) <mtk.manpages@gmail.com>
5 years agoManual pages: login.1: SEE ALSO: add utmp(5), lastlog(8)
Michael Kerrisk (man-pages) [Tue, 14 Jul 2020 09:57:38 +0000 (11:57 +0200)] 
Manual pages: login.1: SEE ALSO: add utmp(5), lastlog(8)

utmp and lastlog are referred to in the manual page, and thus deserve a
cross references in SEE ALSO.

Signed-off-by: Michael Kerrisk (man-pages) <mtk.manpages@gmail.com>
5 years agomanual pages: adjtime_config.5: format pathname with .I
Michael Kerrisk (man-pages) [Tue, 14 Jul 2020 09:57:37 +0000 (11:57 +0200)] 
manual pages: adjtime_config.5: format pathname with .I

Signed-off-by: Michael Kerrisk (man-pages) <mtk.manpages@gmail.com>
5 years agobuild-sys: add --enable-werror to devel build scenarios
Karel Zak [Tue, 14 Jul 2020 10:37:06 +0000 (12:37 +0200)] 
build-sys: add --enable-werror to devel build scenarios

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibsmartcols: (sample) remove unused variable
Karel Zak [Tue, 14 Jul 2020 10:32:56 +0000 (12:32 +0200)] 
libsmartcols: (sample) remove unused variable

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibsmartcols: (sample) remove unnecessary check [coverity scan]
Karel Zak [Tue, 14 Jul 2020 10:20:36 +0000 (12:20 +0200)] 
libsmartcols: (sample) remove unnecessary check [coverity scan]

@str cannot be NULL ...

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibsmartcols: (sample) check scols_line_refer_data() return code [coverity scan]
Karel Zak [Tue, 14 Jul 2020 10:18:01 +0000 (12:18 +0200)] 
libsmartcols: (sample) check scols_line_refer_data() return code [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibuuid: (test) make sure UUID is terminated [coverity scan]
Karel Zak [Tue, 14 Jul 2020 10:15:47 +0000 (12:15 +0200)] 
libuuid: (test) make sure UUID is terminated [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibsmartcols: (smaple) check scols_line_set_data() return code [coverity scan]
Karel Zak [Tue, 14 Jul 2020 10:03:11 +0000 (12:03 +0200)] 
libsmartcols: (smaple) check scols_line_set_data() return code [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibuuid: (test) cleanup unused memory [coverity scan]
Karel Zak [Tue, 14 Jul 2020 09:56:15 +0000 (11:56 +0200)] 
libuuid: (test) cleanup unused memory [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibuuid: (test) close fd [coverity scan]
Karel Zak [Tue, 14 Jul 2020 09:47:38 +0000 (11:47 +0200)] 
libuuid: (test) close fd [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agotest_tiocsti: check ioctl() return code [coverity scan]
Karel Zak [Tue, 14 Jul 2020 09:43:38 +0000 (11:43 +0200)] 
test_tiocsti: check ioctl() return code [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolibsmartcols: (sample) check scols_line_set_data() return code [coverity scan]
Karel Zak [Tue, 14 Jul 2020 09:36:23 +0000 (11:36 +0200)] 
libsmartcols: (sample) check scols_line_set_data() return code [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolsblk: Add SERIAL column to the SCSI output mode.
Milan Broz [Sun, 12 Jul 2020 10:40:48 +0000 (12:40 +0200)] 
lsblk: Add SERIAL column to the SCSI output mode.

If there are several identical disks, disk serial number can help
to distinguish exact drive.

This could be helpful in debugging RAID failures and similar problems.

Signed-off-by: Milan Broz <gmazyland@gmail.com>
5 years agodocs: misc-utils: change "allows to <verb>" to "allows <verb>ing"
Bjarni Ingi Gislason [Fri, 10 Jul 2020 01:53:41 +0000 (01:53 +0000)] 
docs: misc-utils: change "allows to <verb>" to "allows <verb>ing"

  The web site "lintian.debian.org" shows some examples of "allows to",
which are changed to "allows one to".

  I chose here to use gerund.

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
5 years agoSubject: docs: disk-utils: change "allows to <verb>" to "allows <verb>ing"
Bjarni Ingi Gislason [Fri, 10 Jul 2020 01:39:09 +0000 (01:39 +0000)] 
Subject: docs: disk-utils: change "allows to <verb>" to "allows <verb>ing"

  The web site "lintian.debian.org" shows some examples of "allows to",
which are changed to "allows one to".

  I chose here to use gerund.

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
5 years agoSubject: docs: remove unnecessary paragraph macros
Bjarni Ingi Gislason [Fri, 10 Jul 2020 00:12:44 +0000 (00:12 +0000)] 
Subject: docs: remove unnecessary paragraph macros

  Remove a second paragraph macro (.TP, .PP) as it does not change the
output (.SS/.PP) or it adds an extra empty line (.TP/.TP)

  Warning from "mandoc -Tlint":

mandoc: ./sys-utils/hwclock.8.in:299:2: WARNING: line scope broken: TP breaks TP
mandoc: ./sys-utils/hwclock.8.in:459:2: WARNING: skipping paragraph macro: PP after SS
mandoc: ./sys-utils/hwclock.8.in:543:2: WARNING: skipping paragraph macro: PP after SS
mandoc: ./sys-utils/hwclock.8.in:574:2: WARNING: skipping paragraph macro: PP after SS
mandoc: ./sys-utils/hwclock.8.in:673:2: WARNING: skipping paragraph macro: PP after SS
mandoc: ./sys-utils/hwclock.8.in:721:2: WARNING: skipping paragraph macro: PP after SS

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
5 years agoSubject: docs: change from nofill to fill mode
Bjarni Ingi Gislason [Thu, 9 Jul 2020 23:50:26 +0000 (23:50 +0000)] 
Subject: docs: change from nofill to fill mode

  Change request nofill mode to fill mode.

  Warning from "mandoc -Tlint":

mandoc: ./misc-utils/uuidd.8.in:81:2: STYLE: fill mode already disabled, skipping: nf

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
5 years agodocs: remove trailing space in strings
Bjarni Ingi Gislason [Thu, 9 Jul 2020 23:24:27 +0000 (23:24 +0000)] 
docs: remove trailing space in strings

  Trim trailing space in strings.

  There is no change in the output of "nroff" and "groff".

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
5 years agoMerge branch 'coverity' of https://github.com/evverx/util-linux
Karel Zak [Tue, 14 Jul 2020 08:26:44 +0000 (10:26 +0200)] 
Merge branch 'coverity' of https://github.com/evverx/util-linux

* 'coverity' of https://github.com/evverx/util-linux:
  docs: mention Coverity Scan and the Fossies codespell report
  travis: integrate util-linux with Coverity Scan

5 years agoMerge branch 'osx' of https://github.com/evverx/util-linux
Karel Zak [Tue, 14 Jul 2020 08:25:27 +0000 (10:25 +0200)] 
Merge branch 'osx' of https://github.com/evverx/util-linux

5 years agodocs: mention Coverity Scan and the Fossies codespell report
Evgeny Vereshchagin [Mon, 13 Jul 2020 19:49:19 +0000 (19:49 +0000)] 
docs: mention Coverity Scan and the Fossies codespell report

Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
5 years agotravis: integrate util-linux with Coverity Scan
Evgeny Vereshchagin [Mon, 13 Jul 2020 16:01:47 +0000 (16:01 +0000)] 
travis: integrate util-linux with Coverity Scan

For this to work, a daily cron job running on the master branch
should be added: https://docs.travis-ci.com/user/cron-jobs/

The report can found at https://scan.coverity.com/projects/karelzak-util-linux

Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
5 years agoMore typo fixes by fossies
Yuri Chornoivan [Mon, 13 Jul 2020 12:33:42 +0000 (15:33 +0300)] 
More typo fixes by fossies

5 years agotravis: switch to a newer version of macOS
Evgeny Vereshchagin [Fri, 10 Jul 2020 15:21:42 +0000 (15:21 +0000)] 
travis: switch to a newer version of macOS

Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
5 years agoFix minor typos
Yuri Chornoivan [Thu, 9 Jul 2020 17:14:32 +0000 (20:14 +0300)] 
Fix minor typos

5 years agobuild-sys: release++ (v2.36-rc2) v2.36-rc2
Karel Zak [Thu, 9 Jul 2020 10:20:57 +0000 (12:20 +0200)] 
build-sys: release++ (v2.36-rc2)

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agodocs: update v2.36-ReleaseNotes
Karel Zak [Thu, 9 Jul 2020 10:18:44 +0000 (12:18 +0200)] 
docs: update v2.36-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agodocs: update AUTHORS file
Karel Zak [Thu, 9 Jul 2020 10:15:33 +0000 (12:15 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agopo: merge changes
Karel Zak [Thu, 9 Jul 2020 10:13:54 +0000 (12:13 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agodocs: update ReleaseNotes
Karel Zak [Thu, 9 Jul 2020 09:55:05 +0000 (11:55 +0200)] 
docs: update ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agolast: fix use of non-terminated utmp->ut_line
Karel Zak [Thu, 9 Jul 2020 08:10:58 +0000 (10:10 +0200)] 
last: fix use of non-terminated utmp->ut_line

Addresses: https://github.com/karelzak/util-linux/pull/1097
Signed-off-by: Karel Zak <kzak@redhat.com>
5 years agodocs: add terminal hyperlinks to TODO
Karel Zak [Thu, 9 Jul 2020 07:34:30 +0000 (09:34 +0200)] 
docs: add terminal hyperlinks to TODO

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