]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
6 years agobuild-sys: release++ (v2.30) v2.30
Karel Zak [Fri, 2 Jun 2017 10:22:29 +0000 (12:22 +0200)] 
build-sys: release++ (v2.30)

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agodocs: update v2.30-ReleaseNotes
Karel Zak [Fri, 2 Jun 2017 10:20:19 +0000 (12:20 +0200)] 
docs: update v2.30-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agodocs: update AUTHORS file
Karel Zak [Fri, 2 Jun 2017 10:16:08 +0000 (12:16 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agolib/pager: use xalloc
Karel Zak [Fri, 2 Jun 2017 10:07:36 +0000 (12:07 +0200)] 
lib/pager: use xalloc

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agotests: update build-sys test
Karel Zak [Fri, 2 Jun 2017 10:03:46 +0000 (12:03 +0200)] 
tests: update build-sys test

The libtinfo is enough (and libncurses optional for cal).

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agopo: merge changes
Karel Zak [Fri, 2 Jun 2017 09:30:19 +0000 (11:30 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agoMerge branch 'master' of https://github.com/yurchor/util-linux
Karel Zak [Fri, 2 Jun 2017 09:13:39 +0000 (11:13 +0200)] 
Merge branch 'master' of https://github.com/yurchor/util-linux

* 'master' of https://github.com/yurchor/util-linux:
  Fix minor typos

6 years agopo: update uk.po (from translationproject.org)
Yuri Chornoivan [Fri, 2 Jun 2017 09:08:30 +0000 (11:08 +0200)] 
po: update uk.po (from translationproject.org)

6 years agopo: update tr.po (from translationproject.org)
Mesutcan Kurt [Fri, 2 Jun 2017 09:08:30 +0000 (11:08 +0200)] 
po: update tr.po (from translationproject.org)

6 years agopo: update sv.po (from translationproject.org)
Sebastian Rasmussen [Fri, 2 Jun 2017 09:08:30 +0000 (11:08 +0200)] 
po: update sv.po (from translationproject.org)

6 years agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Fri, 2 Jun 2017 09:08:30 +0000 (11:08 +0200)] 
po: update pl.po (from translationproject.org)

6 years agopo: update ja.po (from translationproject.org)
Takeshi Hamasaki [Fri, 2 Jun 2017 09:08:30 +0000 (11:08 +0200)] 
po: update ja.po (from translationproject.org)

6 years agopo: update de.po (from translationproject.org)
Philipp Thomas [Fri, 2 Jun 2017 09:08:30 +0000 (11:08 +0200)] 
po: update de.po (from translationproject.org)

6 years agodocs: add information about mailing list rejection
J William Piggott [Thu, 1 Jun 2017 23:42:21 +0000 (19:42 -0400)] 
docs: add information about mailing list rejection

Signed-off-by: J William Piggott <elseifthen@gmx.com>
6 years agolib/pager: don't use pager if command not available
Karel Zak [Thu, 1 Jun 2017 12:20:20 +0000 (14:20 +0200)] 
lib/pager: don't use pager if command not available

for example:
 # PAGER=foo dmesg -H
 sh: foo: command not found

the same problem is we have with fdisk 'l' command:

 # PAGER=foo fdisk /dev/sda
 Welcome to fdisk (util-linux 2.30-rc2-33-41b71).
 ...
 Command (m for help): l
 sh: foo: command not found

It seems better to don't use pager at all if not available.

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agoMerge branch 'travis-test' of https://github.com/rudimeier/util-linux
Karel Zak [Thu, 1 Jun 2017 10:30:14 +0000 (12:30 +0200)] 
Merge branch 'travis-test' of https://github.com/rudimeier/util-linux

* 'travis-test' of https://github.com/rudimeier/util-linux:
  tests: check for timeout command
  Revert "tests: use stdbuf when stderr and stdout is randomly ordered"

6 years agolscpu: make min/max freq arrays usage more robust
Karel Zak [Thu, 1 Jun 2017 10:15:23 +0000 (12:15 +0200)] 
lscpu: make min/max freq arrays usage more robust

The array members may be NULL on some architectures (e.g. AMD). Let's
be paranoid and check for the NULL independently on present/online
masks.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1457744
Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agotests: check for timeout command
Ruediger Meier [Thu, 1 Jun 2017 09:23:26 +0000 (11:23 +0200)] 
tests: check for timeout command

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
6 years agoRevert "tests: use stdbuf when stderr and stdout is randomly ordered"
Ruediger Meier [Thu, 1 Jun 2017 09:20:02 +0000 (11:20 +0200)] 
Revert "tests: use stdbuf when stderr and stdout is randomly ordered"

stdbuf does not seem to work reliable. Failed on travis/OSX

This reverts commit 398b3148bedee936ee0b012b3b6e82b20547f218.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
6 years agocolumn: add missed semicolons in case of !HAVE_WIDECHAR
Alexander Kuleshov [Mon, 29 May 2017 18:49:17 +0000 (00:49 +0600)] 
column: add missed semicolons in case of !HAVE_WIDECHAR

In other case we will get:

  error: expected ‘;’ before ‘}’ token

error.

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
6 years agoMerge branch 'travis-test' of https://github.com/rudimeier/util-linux
Karel Zak [Thu, 1 Jun 2017 08:49:12 +0000 (10:49 +0200)] 
Merge branch 'travis-test' of https://github.com/rudimeier/util-linux

* 'travis-test' of https://github.com/rudimeier/util-linux:
  misc: fix some warnings
  tests: handle non glibc error message for fallocate
  tests: use stdbuf when stderr and stdout is randomly ordered
  build-sys: fix library order when linking
  tests: avoid diff of diffs
  tests: grep's short option -A is more portable

6 years agomisc: fix some warnings
Ruediger Meier [Wed, 31 May 2017 21:58:11 +0000 (23:58 +0200)] 
misc: fix some warnings

sys-utils/prlimit.c: In function 'do_prlimit':
sys-utils/prlimit.c:367:16: warning: format '%ju' expects argument of type 'uintmax_t', but argument 2 has type 'rlim_t {aka long long unsigned int}' [-Wformat=]
     printf("<%ju", new->rlim_cur);

lib/plymouth-ctrl.c: In function 'open_un_socket_and_connect':
lib/plymouth-ctrl.c:88:20: warning: passing argument 2 of 'connect' from incompatible pointer type [-Wincompatible-pointer-types]
  ret = connect(fd, &su, offsetof(struct sockaddr_un, sun_path) + 1 + strlen(su.sun_path+1));
                    ^
In file included from lib/plymouth-ctrl.c:35:0:
/usr/include/sys/socket.h:314:5: note: expected 'const struct sockaddr *' but argument is of type 'struct sockaddr_un *'
 int connect (int, const struct sockaddr *, socklen_t);

login-utils/last.c: In function 'list':
login-utils/last.c:506:54: warning: pointer targets in passing argument 4 of 'dns_lookup' differ in signedness [-Wpointer-sign]
   r = dns_lookup(domain, sizeof(domain), ctl->useip, p->ut_addr_v6);
                                                      ^
login-utils/last.c:291:12: note: expected 'int32_t * {aka int *}' but argument is of type 'unsigned int *'
 static int dns_lookup(char *result, int size, int useip, int32_t *a)
            ^~~~~~~~~~

In file included from sys-utils/hwclock-cmos.c:92:0:
sys-utils/hwclock.h:67:32: warning: 'struct timeval' declared inside parameter list will not be visible outside of this definition or declaration
 extern double time_diff(struct timeval subtrahend, struct timeval subtractor);

misc-utils/test_uuidd.c: In function 'create_nthreads':
misc-utils/test_uuidd.c:187:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
        proc->pid, (int) th->tid, th->index));

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
6 years agotests: handle non glibc error message for fallocate
Ruediger Meier [Wed, 31 May 2017 21:32:07 +0000 (23:32 +0200)] 
tests: handle non glibc error message for fallocate

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
6 years agotests: use stdbuf when stderr and stdout is randomly ordered
Ruediger Meier [Thu, 1 Jun 2017 01:17:25 +0000 (03:17 +0200)] 
tests: use stdbuf when stderr and stdout is randomly ordered

glibc seems to flush stdout before stderr.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
6 years agobuild-sys: fix library order when linking
Ruediger Meier [Wed, 31 May 2017 19:02:12 +0000 (21:02 +0200)] 
build-sys: fix library order when linking

We got some errors on Alpine Linux where $LTLIBINTL is non-empty:

./.libs/libcommon.a(libcommon_la-blkdev.o): In function `open_blkdev_or_file':
lib/blkdev.c:282: undefined reference to `libintl_gettext
collect2: error: ld returned 1 exit status

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
6 years agotests: avoid diff of diffs
Ruediger Meier [Wed, 31 May 2017 20:21:46 +0000 (22:21 +0200)] 
tests: avoid diff of diffs

Certain diff implementations do not produce comparable output.

Noticed on Alpine Linux/busybox.

CC: Sami Kerola <kerolasa@iki.fi>
Reported-by: Assaf Gordon <assafgordon@gmail.com>
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
6 years agotests: grep's short option -A is more portable
Ruediger Meier [Wed, 31 May 2017 18:59:04 +0000 (20:59 +0200)] 
tests: grep's short option -A is more portable

Noticed on Alpine Linux/busybox.

Reported-by: Assaf Gordon <assafgordon@gmail.com>
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
6 years agodocs: move source-code-management.txt to README
J William Piggott [Tue, 30 May 2017 00:47:34 +0000 (20:47 -0400)] 
docs: move source-code-management.txt to README

source-code-management.txt and README had similar content so combine
them in README.

Change Documentation/source-code-management.txt references to README.

Remove Documentation/source-code-management.txt.

Move IRC Channel information to README

Expand information about git branches and tags in README.

Add workflow to README; written by Karel Zak <kzak@redhat.com>

Signed-off-by: J William Piggott <elseifthen@gmx.com>
6 years agodocs: update howto-contribute.txt
J William Piggott [Sun, 28 May 2017 22:30:11 +0000 (18:30 -0400)] 
docs: update howto-contribute.txt

This patch does not change any wording or grammar. It
only shuffles the order of things and adds a table of
contents. For example: it moves coding related bullet
points into the Coding Style Chapter; it groups email
related Chapters together, and so fourth.

Signed-off-by: J William Piggott <elseifthen@gmx.com>
6 years agodocs: update howto-contribute.txt
J William Piggott [Sun, 28 May 2017 19:49:09 +0000 (15:49 -0400)] 
docs: update howto-contribute.txt

Grammar fixes and some clarification changes.

Signed-off-by: J William Piggott <elseifthen@gmx.com>
6 years agodocs: update v2.30-ReleaseNotes
J William Piggott [Fri, 26 May 2017 17:53:26 +0000 (13:53 -0400)] 
docs: update v2.30-ReleaseNotes

Signed-off-by: J William Piggott <elseifthen@gmx.com>
6 years agobuild-sys: ncurses headers cleanup
Karel Zak [Wed, 31 May 2017 09:01:46 +0000 (11:01 +0200)] 
build-sys: ncurses headers cleanup

* assume ncursesw headers in ncursesw/ directory only
* prefer long paths, <term.h> and <ncurses.h> should be last
  possibility
* fix typos

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agocfdisk: fix compiler warning
Karel Zak [Wed, 31 May 2017 08:58:17 +0000 (10:58 +0200)] 
cfdisk: fix compiler warning

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agobuild-sys: prefer ncurses-config rather than pkg-config
Karel Zak [Wed, 31 May 2017 08:52:44 +0000 (10:52 +0200)] 
build-sys: prefer ncurses-config rather than pkg-config

If you have installed:

 ii  libncurses5:i386      5.9+20140913-1+b1  i386   shared libraries for terminal handling
 ii  libncurses5-dev:i386  5.9+20140913-1+b1  i386   developer's libraries for ncurses
 ii  libncursesw5:i386     5.9+20140913-1+b1  i386   shared libraries for terminal handling (wide character support)

then pkg-config blindly follows ncursesw although there are not header
files for this library. It seems better to use pkg-config as fallback
solution only.

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agobuild-sys: require kernel headers on Linux
Karel Zak [Wed, 31 May 2017 07:35:32 +0000 (09:35 +0200)] 
build-sys: require kernel headers on Linux

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agodmesg: remove unnecessary header
Karel Zak [Wed, 31 May 2017 07:18:10 +0000 (09:18 +0200)] 
dmesg: remove unnecessary header

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agolib/colors: fix test compilation
Karel Zak [Tue, 30 May 2017 23:29:25 +0000 (01:29 +0200)] 
lib/colors: fix test compilation

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agotext-utils: use proper paths to term.h
Karel Zak [Tue, 30 May 2017 15:15:37 +0000 (17:15 +0200)] 
text-utils: use proper paths to term.h

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agocal: ncurses cleanup
Karel Zak [Tue, 30 May 2017 15:10:40 +0000 (17:10 +0200)] 
cal: ncurses cleanup

* use proper paths to term.h
* keep ncurses support optional
* link with TINFO_LIBS (-ltinfo), or fallback to NCURSES_LIBS (-ltinfo -lncurses)
* don't include unnecessary ncurses.h (term.h is enough)

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agolib/colors: ncurses cleanup
Karel Zak [Tue, 30 May 2017 15:10:40 +0000 (17:10 +0200)] 
lib/colors: ncurses cleanup

* use proper paths to term.h
* keep ncurses support optional
* link with TINFO_LIBS (-ltinfo), or fallback to NCURSES_LIBS (-ltinfo -lncurses)
* don't include unnecessary ncurses.h (term.h is enough)

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agobuild-sys: make ncurses detection more robust
Karel Zak [Tue, 30 May 2017 15:01:00 +0000 (17:01 +0200)] 
build-sys: make ncurses detection more robust

It seems Debina 8 is a little bit incompatible with us:

* ncurses-config is packaged in ncurses-bin where is *no* any
  development files! It means the script returns paths to not installed
  files (IMHO packaging bug)

  Fixed, we need to check for header files too.

* term.h is "everywhere" on Fedora:

<term.h>
<ncurses/term.h>
<ncursesw/term.h>

  Debian is more strict and uses <ncurses[w]/term.h> only.

  Fixed, we need #ifdef storm to use the correct path

 * libtinfo-dev does not contains any header files

 Fixed, we have to always require installed ncurses devel stuff to compile,
 but we can link with -ltinfo only (cal, ul, more, ...)

 * we don't use termcap for more(1)

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agotests: check for ps --ppid
Karel Zak [Tue, 30 May 2017 08:47:06 +0000 (10:47 +0200)] 
tests: check for ps --ppid

Reported-by: Assaf Gordon <assafgordon@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agotests: make /proc optional
Karel Zak [Tue, 30 May 2017 08:47:06 +0000 (10:47 +0200)] 
tests: make /proc optional

Reported-by: Assaf Gordon <assafgordon@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agolib/loopdev: remove unnecessary header
Karel Zak [Tue, 30 May 2017 08:47:06 +0000 (10:47 +0200)] 
lib/loopdev: remove unnecessary header

Reported-by: Assaf Gordon <assafgordon@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agotest_uuidd: don't use error.h
Karel Zak [Tue, 30 May 2017 08:26:17 +0000 (10:26 +0200)] 
test_uuidd: don't use error.h

The header file is not provided by musl-libc.

Reported-by: Assaf Gordon <assafgordon@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agowall: make sure with not referencing a null pointer
Karel Zak [Mon, 29 May 2017 11:25:36 +0000 (13:25 +0200)] 
wall: make sure with not referencing a null pointer

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agolibfdisk: fix variable shadowing
Sami Kerola [Sat, 27 May 2017 09:03:55 +0000 (10:03 +0100)] 
libfdisk: fix variable shadowing

libfdisk/src/context.c: In function 'fdisk_assign_device':
libfdisk/src/context.c:549:7: warning: declaration of 'rc' shadows a previous local [-Wshadow]
libfdisk/src/context.c:542:10: note: shadowed declaration is here

[kzak@redhat.com: - add rc to debug message]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agolib/colors: Fix bug where help text was not being translated.
Sebastian Rasmussen [Sat, 27 May 2017 20:50:57 +0000 (04:50 +0800)] 
lib/colors: Fix bug where help text was not being translated.

This affected cfdisk, fdisk, sfdisk, cal, dmesg and hexdump.

6 years agoFix minor typos
Yuri Chornoivan [Tue, 23 May 2017 21:22:20 +0000 (00:22 +0300)] 
Fix minor typos

6 years agolibblkid: (docs) add missing 'since' tags
Karel Zak [Tue, 23 May 2017 12:27:06 +0000 (14:27 +0200)] 
libblkid: (docs) add missing 'since' tags

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agolibfdisk: update docs
Karel Zak [Tue, 23 May 2017 12:22:04 +0000 (14:22 +0200)] 
libfdisk: update docs

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agolibfdisk: (docs) add missing 'since' tags
Karel Zak [Tue, 23 May 2017 12:02:14 +0000 (14:02 +0200)] 
libfdisk: (docs) add missing 'since' tags

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agolibmount: (docs) add missing 'since' tags
Karel Zak [Tue, 23 May 2017 11:32:45 +0000 (13:32 +0200)] 
libmount: (docs) add missing 'since' tags

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agolibsmartcols: (docs) add missing 'since' tags
Karel Zak [Tue, 23 May 2017 11:27:29 +0000 (13:27 +0200)] 
libsmartcols: (docs) add missing 'since' tags

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agobuild-sys: release++ (v2.30-rc2) v2.30-rc2
Karel Zak [Tue, 23 May 2017 10:20:27 +0000 (12:20 +0200)] 
build-sys: release++ (v2.30-rc2)

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agodocs: update v2.30-ReleaseNotes
Karel Zak [Tue, 23 May 2017 10:19:21 +0000 (12:19 +0200)] 
docs: update v2.30-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agotests: check for TS_HELPER_SYSINFO in fincore test
Karel Zak [Tue, 23 May 2017 10:10:15 +0000 (12:10 +0200)] 
tests: check for TS_HELPER_SYSINFO in fincore test

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agodocs: update AUTHORS file
Karel Zak [Tue, 23 May 2017 09:47:17 +0000 (11:47 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agopo: merge changes
Karel Zak [Tue, 23 May 2017 09:45:07 +0000 (11:45 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agotests: update build-sys due to readline
Karel Zak [Tue, 23 May 2017 09:39:58 +0000 (11:39 +0200)] 
tests: update build-sys due to readline

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agosfdisk: disambiguate units of --show-size
Chris Morin [Fri, 19 May 2017 00:07:19 +0000 (20:07 -0400)] 
sfdisk: disambiguate units of --show-size

[kzak@redhat.com: - use optutils.h]

Signed-off-by: Chris Morin <chris.morin2@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agochfn: disable tab completion
Sami Kerola [Thu, 18 May 2017 21:19:35 +0000 (22:19 +0100)] 
chfn: disable tab completion

The default readline tab completion that offers file listing from current
directory does not make any sense in this context.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agorename: make --no-act to imply --verbose
Sami Kerola [Thu, 18 May 2017 21:19:34 +0000 (22:19 +0100)] 
rename: make --no-act to imply --verbose

It is reasonable to assume use of --no-act means one wants to always see
what would have happen if rename is done.  To say same slightly differently,
if there is sn use case for silent rename --no-act run I cannot think one.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agodocs: update source-code-management.txt
Karel Zak [Thu, 18 May 2017 19:55:36 +0000 (21:55 +0200)] 
docs: update source-code-management.txt

Reported-by: J William Piggott <elseifthen@gmx.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agolslocks: remove dead code
Karel Zak [Thu, 18 May 2017 13:10:51 +0000 (15:10 +0200)] 
lslocks: remove dead code

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agozramctl: add mising line terminator
Karel Zak [Thu, 18 May 2017 13:10:04 +0000 (15:10 +0200)] 
zramctl: add mising line terminator

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agomisc: consolidate smartcols error messages
Karel Zak [Thu, 18 May 2017 09:39:34 +0000 (11:39 +0200)] 
misc: consolidate smartcols error messages

... just to keep translators happy

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agotests: Fix UDF test output after changing UUID algorithm
Pali Rohár [Wed, 17 May 2017 18:36:51 +0000 (20:36 +0200)] 
tests: Fix UDF test output after changing UUID algorithm

6 years agolibblkid: udf: Change algorithm for reporting UUID
Pali Rohár [Wed, 17 May 2017 18:36:40 +0000 (20:36 +0200)] 
libblkid: udf: Change algorithm for reporting UUID

Ensure that reported UUID always contains only lowercase hexadecimal digits
and is always 16 characters length, padded with zero digits.

Volume Set Identifier is converted to UTF-8 before generating UUID from it.
As it could potentially contain any Unicode character. So correctly handle
both 8bit and 16bit OSTA Compressed Unicode encodings.

Disks which have only lowercase hexadecimal digits in Volume Set Identifier
would have same UUID as before this patch.

6 years agofincore: check rc from smartcols stuff [coverity scan]
Karel Zak [Wed, 17 May 2017 11:08:33 +0000 (13:08 +0200)] 
fincore: check rc from smartcols stuff [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agonologin: don't call fstat() after failed open() [coverity scan]
Karel Zak [Wed, 17 May 2017 10:59:33 +0000 (12:59 +0200)] 
nologin: don't call fstat() after failed open() [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agolibsmartcols: check scols_table_set_default_symbols() return code [coverity scan]
Karel Zak [Wed, 17 May 2017 10:50:36 +0000 (12:50 +0200)] 
libsmartcols: check scols_table_set_default_symbols() return code [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agolibmount: don't pass -1 to close() [coverity scan]
Karel Zak [Wed, 17 May 2017 10:45:30 +0000 (12:45 +0200)] 
libmount: don't pass -1 to close() [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agolibfdisk: don't use errno after close()
Karel Zak [Wed, 17 May 2017 10:43:48 +0000 (12:43 +0200)] 
libfdisk: don't use errno after close()

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agolibmount: fix memory leak [coverity scan]
Karel Zak [Wed, 17 May 2017 10:38:16 +0000 (12:38 +0200)] 
libmount: fix memory leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agolibfdisk: use memcpy() for non-terminated string [coverity scan]
Karel Zak [Wed, 17 May 2017 10:29:50 +0000 (12:29 +0200)] 
libfdisk: use memcpy() for non-terminated string [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agolibfdisk: initialize partno variable [coverity scan]
Karel Zak [Wed, 17 May 2017 10:24:07 +0000 (12:24 +0200)] 
libfdisk: initialize partno variable [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agolibmount: check fstat() return code [coverity scan]
Karel Zak [Wed, 17 May 2017 10:20:18 +0000 (12:20 +0200)] 
libmount: check fstat() return code [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agolibfdisk: don't print uninitialized variable [coverity scan]
Karel Zak [Wed, 17 May 2017 10:15:38 +0000 (12:15 +0200)] 
libfdisk: don't print uninitialized variable [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agosfdisk: add hints for scanners [coverity scan]
Karel Zak [Wed, 17 May 2017 09:57:44 +0000 (11:57 +0200)] 
sfdisk: add hints for scanners [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agomkswap: use memcpy() for non-terminated string [coverity scan]
Karel Zak [Wed, 17 May 2017 09:48:36 +0000 (11:48 +0200)] 
mkswap: use memcpy() for non-terminated string [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agofsck.minix: add hint for scanners [coverity scan]
Karel Zak [Wed, 17 May 2017 09:38:54 +0000 (11:38 +0200)] 
fsck.minix: add hint for scanners [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agofdisk: check scols_line_refer_data() return code [coverity scan]
Karel Zak [Wed, 17 May 2017 09:32:50 +0000 (11:32 +0200)] 
fdisk: check scols_line_refer_data() return code [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agotests: (libmount) parse version from command line
Karel Zak [Wed, 17 May 2017 09:28:19 +0000 (11:28 +0200)] 
tests: (libmount) parse version from command line

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agocfdisk: add hints for scanners [coverity scan]
Karel Zak [Wed, 17 May 2017 09:26:54 +0000 (11:26 +0200)] 
cfdisk: add hints for scanners [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agotests: Fix UDF test output for 8bit OSTA Compressed Unicode
Pali Rohár [Tue, 16 May 2017 21:52:39 +0000 (23:52 +0200)] 
tests: Fix UDF test output for 8bit OSTA Compressed Unicode

6 years agotests: Add UDF hdd image with non ASCII 8bit label created by Linux mkudffs 1.3
Pali Rohár [Tue, 16 May 2017 21:52:24 +0000 (23:52 +0200)] 
tests: Add UDF hdd image with non ASCII 8bit label created by Linux mkudffs 1.3

$ dd if=/dev/zero of=udf-hdd-mkudffs-1.3-3.img bs=1M count=10
$ mkudffs -l 'ÿ' -b 2048 /tmp/udf-hdd-mkudffs-1.3-3.img

6 years agolibblkid: udf: Correctly handle UDF strings encoded in 8bit OSTA Compressed Unicode
Pali Rohár [Tue, 16 May 2017 21:52:05 +0000 (23:52 +0200)] 
libblkid: udf: Correctly handle UDF strings encoded in 8bit OSTA Compressed Unicode

String encoded in 8bit OSTA Compressed Unicode contains one Unicode
codepoint per 8bits. Maximal Unicode codepoint is U+FF. Which effectively
means that it is equivalent to Latin1 encoding.

Before this patch libblkid copied raw 8bit OSTA Compressed Unicode from
disk and treated it as UTF-8. It worked fine just for UTF-8 invariants,
other characters were incorrectly encoded. This patch fixes this problem.

Note that processing UUID is not fixed in this patch.

6 years agolibblkid: Add support for Latin1 encoding in blkid_encode_to_utf8()
Pali Rohár [Tue, 16 May 2017 21:51:50 +0000 (23:51 +0200)] 
libblkid: Add support for Latin1 encoding in blkid_encode_to_utf8()

6 years agosu: remove duplicate const declaration
Sami Kerola [Tue, 16 May 2017 08:25:57 +0000 (09:25 +0100)] 
su: remove duplicate const declaration

login-utils/su-common.c:619:14: warning: duplicate 'const' declaration
specifier [-Wduplicate-decl-specifier]
   const char const **args = xcalloc (n_args, sizeof *args);

Regression-from: 71f207a5f598623a539ba825b97a503072c4a1b4
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agogetops: make --a-long option work again
Sami Kerola [Tue, 16 May 2017 07:37:41 +0000 (08:37 +0100)] 
getops: make --a-long option work again

Add back a character lost in earlier change.

Regression-from: d27f5fe770025e456fbd33b87a96968f34c455ed
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agofsck.minix: fix crash
Sami Kerola [Mon, 15 May 2017 10:54:43 +0000 (11:54 +0100)] 
fsck.minix: fix crash

disk-utils/fsck.minix.c:421:30: runtime error: index 513 out of bounds for
type 'unsigned short [512]'

Addresses: https://github.com/karelzak/util-linux/issues/373
Reported-by: Hanno Bock <hanno@gentoo.org>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agodocs: update TODO, add mount(8) noauto,auto
Karel Zak [Tue, 16 May 2017 11:15:11 +0000 (13:15 +0200)] 
docs: update TODO, add mount(8) noauto,auto

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agodocs: update v2.30-ReleaseNotes
J William Piggott [Mon, 15 May 2017 09:44:02 +0000 (11:44 +0200)] 
docs: update v2.30-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agobuild-sys: release++ (v2.30-rc1) v2.30-rc1
Karel Zak [Fri, 12 May 2017 11:02:05 +0000 (13:02 +0200)] 
build-sys: release++ (v2.30-rc1)

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agodocs: add chmem and tailf to ReleaseNotes
Karel Zak [Fri, 12 May 2017 11:32:14 +0000 (13:32 +0200)] 
docs: add chmem and tailf to ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agodocs: update v2.30-ReleaseNotes
Karel Zak [Fri, 12 May 2017 11:00:36 +0000 (13:00 +0200)] 
docs: update v2.30-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agodocs: update AUTHORS file
Karel Zak [Fri, 12 May 2017 09:32:06 +0000 (11:32 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agopo: merge changes
Karel Zak [Fri, 12 May 2017 09:27:52 +0000 (11:27 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
6 years agopo: update zh_CN.po (from translationproject.org)
Wylmer Wang [Fri, 12 May 2017 09:21:06 +0000 (11:21 +0200)] 
po: update zh_CN.po (from translationproject.org)