]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
10 years agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Tue, 22 Jul 2014 08:33:18 +0000 (10:33 +0200)] 
po: update pl.po (from translationproject.org)

10 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Tue, 22 Jul 2014 08:33:18 +0000 (10:33 +0200)] 
po: update nl.po (from translationproject.org)

10 years agopo: update ja.po (from translationproject.org)
Takeshi Hamasaki [Tue, 22 Jul 2014 08:33:18 +0000 (10:33 +0200)] 
po: update ja.po (from translationproject.org)

10 years agopo: update fr.po (from translationproject.org)
David Prévot [Tue, 22 Jul 2014 08:33:18 +0000 (10:33 +0200)] 
po: update fr.po (from translationproject.org)

10 years agopo: update fi.po (from translationproject.org)
Lauri Nurmi [Tue, 22 Jul 2014 08:33:18 +0000 (10:33 +0200)] 
po: update fi.po (from translationproject.org)

10 years agopo: update es.po (from translationproject.org)
Antonio Ceballos Roa [Tue, 22 Jul 2014 08:33:18 +0000 (10:33 +0200)] 
po: update es.po (from translationproject.org)

10 years agopo: update de.po (from translationproject.org)
Mario Blättermann [Tue, 22 Jul 2014 08:33:18 +0000 (10:33 +0200)] 
po: update de.po (from translationproject.org)

10 years agopo: update da.po (from translationproject.org)
Joe Hansen [Tue, 22 Jul 2014 08:33:17 +0000 (10:33 +0200)] 
po: update da.po (from translationproject.org)

10 years agopo: update cs.po (from translationproject.org)
Petr Písař [Tue, 22 Jul 2014 08:33:17 +0000 (10:33 +0200)] 
po: update cs.po (from translationproject.org)

10 years agoprlimit: remove repeating words from man page
Karel Zak [Mon, 21 Jul 2014 14:09:38 +0000 (16:09 +0200)] 
prlimit: remove repeating words from man page

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agocfdisk: actually translate the partition types in the menu
Benno Schulenberg [Mon, 21 Jul 2014 11:37:11 +0000 (13:37 +0200)] 
cfdisk: actually translate the partition types in the menu

[kzak@redhat.com: - translate also GPT types]

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agodocs: bring eight more man pages closer to standard formatting
Benno Schulenberg [Sun, 20 Jul 2014 21:15:47 +0000 (23:15 +0200)] 
docs: bring eight more man pages closer to standard formatting

Also, for chcpu, the options -c, -d, -e and -g are mutually exclusive,
and for the mode argument the option -p is not optional.  For ldattach,
use the standard options separator ", " instead of the unusual " | ".
And add the missing --version to several of the pages.  Besides, improve
the wording and the consistency of the spacing.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agodocs: bring five more man pages closer to standard formatting
Benno Schulenberg [Sun, 20 Jul 2014 21:15:46 +0000 (23:15 +0200)] 
docs: bring five more man pages closer to standard formatting

Also, for renice, adapt the descriptions to the behaviour: the -g,
-p and -u options do not actually need to be followed by any ID.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agomount: update info about mtab in mount.8
Karel Zak [Mon, 21 Jul 2014 08:27:25 +0000 (10:27 +0200)] 
mount: update info about mtab in mount.8

Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoprlimit: clean up columns[] usage
Karel Zak [Fri, 18 Jul 2014 11:22:52 +0000 (13:22 +0200)] 
prlimit: clean up columns[] usage

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoswapon: clean up columns[] usage
Karel Zak [Fri, 18 Jul 2014 11:22:52 +0000 (13:22 +0200)] 
swapon: clean up columns[] usage

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolosetup: clean up columns[] usage
Karel Zak [Fri, 18 Jul 2014 11:22:52 +0000 (13:22 +0200)] 
losetup: clean up columns[] usage

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolslogins: more robust usage of columns[]
Karel Zak [Fri, 18 Jul 2014 11:17:48 +0000 (13:17 +0200)] 
lslogins: more robust usage of columns[]

For more details see commit dcc8dbdc8137cb3da5100158639b565565b89875.

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agowdctl: clean up columns[] usage
Karel Zak [Fri, 18 Jul 2014 11:22:52 +0000 (13:22 +0200)] 
wdctl: clean up columns[] usage

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agofindmnt: more robust usage of columns[]
Karel Zak [Fri, 18 Jul 2014 11:17:48 +0000 (13:17 +0200)] 
findmnt: more robust usage of columns[]

For more details see commit dcc8dbdc8137cb3da5100158639b565565b89875.

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolslocks: clean up columns[] usage
Karel Zak [Fri, 18 Jul 2014 11:08:45 +0000 (13:08 +0200)] 
lslocks: clean up columns[] usage

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolsblk: check number of used columns
Karel Zak [Thu, 17 Jul 2014 15:17:46 +0000 (17:17 +0200)] 
lsblk: check number of used columns

The current code does not check size of the columns[] array when add
the next on command line specified column. We check the array size for
"-o <columns>" but not for another options.

Old version:

   $ for x in $(seq 0 100); do echo "-t"; done | xargs lsblk
   xargs: lsblk: terminated by signal 11

new version:

  $ for x in $(seq 0 100); do echo "-t"; done | xargs lsblk
  lsblk: too many columns specified, the limit is 83 columns.

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolsblk: differentiate between infos[] and columns[]
Karel Zak [Thu, 17 Jul 2014 13:35:52 +0000 (15:35 +0200)] 
lsblk: differentiate between infos[] and columns[]

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoMerge branch 'patch-1' of https://github.com/bneijt/util-linux
Karel Zak [Fri, 18 Jul 2014 10:59:46 +0000 (12:59 +0200)] 
Merge branch 'patch-1' of https://github.com/bneijt/util-linux

10 years agocfdisk: use /dev/sda by default
Karel Zak [Fri, 18 Jul 2014 10:54:40 +0000 (12:54 +0200)] 
cfdisk: use /dev/sda by default

.. this all is for backward compatibility.

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agowall: add fallback for failed sysconf()
Karel Zak [Thu, 17 Jul 2014 13:19:34 +0000 (15:19 +0200)] 
wall: add fallback for failed sysconf()

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoumount: fix memory leak [coverity scan]
Karel Zak [Thu, 17 Jul 2014 13:12:35 +0000 (15:12 +0200)] 
umount: fix memory leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agofstrim: fix memory leak [coverity scan]
Karel Zak [Thu, 17 Jul 2014 13:07:49 +0000 (15:07 +0200)] 
fstrim: fix memory leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agofindmnt: fix memory leak [coverity scan]
Karel Zak [Thu, 17 Jul 2014 13:00:17 +0000 (15:00 +0200)] 
findmnt: fix memory leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agosulogin: don't use uninitialized struct sigaction [coverity scan]
Karel Zak [Thu, 17 Jul 2014 12:47:20 +0000 (14:47 +0200)] 
sulogin: don't use uninitialized struct sigaction [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agosulogin: check result of the open() [coverity scan]
Karel Zak [Thu, 17 Jul 2014 12:42:00 +0000 (14:42 +0200)] 
sulogin: check result of the open() [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolast: fix is_phantom() logic [coverity scan]
Karel Zak [Thu, 17 Jul 2014 12:39:11 +0000 (14:39 +0200)] 
last: fix is_phantom() logic [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibmount: add missing assert()
Karel Zak [Thu, 17 Jul 2014 12:31:05 +0000 (14:31 +0200)] 
libmount: add missing assert()

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibblkid: comparing an array to null is not useful [coverity scan]
Karel Zak [Thu, 17 Jul 2014 12:20:03 +0000 (14:20 +0200)] 
libblkid: comparing an array to null is not useful [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolib/procutils: check fgets() return value [coverity scan]
Karel Zak [Thu, 17 Jul 2014 12:11:28 +0000 (14:11 +0200)] 
lib/procutils: check fgets() return value [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolib/loopdev: comparing an array to null is not useful [coverity scan]
Karel Zak [Thu, 17 Jul 2014 12:08:18 +0000 (14:08 +0200)] 
lib/loopdev: comparing an array to null is not useful [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agodocs: bring four more man pages closer to standard formatting
Benno Schulenberg [Wed, 16 Jul 2014 21:09:50 +0000 (23:09 +0200)] 
docs: bring four more man pages closer to standard formatting

In the IPC man pages strictly adhere to the memory, queue, semaphore
order, to reduce disorientation.  And for 'ipcmk', the arguments for
-M and -S and -p are not optional.  Add --version for 'mountpoint'.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agofstrim: avoid TOCTOU race
Sami Kerola [Wed, 16 Jul 2014 20:54:58 +0000 (21:54 +0100)] 
fstrim: avoid TOCTOU race

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agofallocate: avoid unnecessary computation
Sami Kerola [Wed, 16 Jul 2014 20:54:57 +0000 (21:54 +0100)] 
fallocate: avoid unnecessary computation

Where POSIX_FADV_SEQUENTIAL and HAVE_POSIX_FADVISE are not available it
is waste of resources to have variables that are meaningful only for
posix_fadvise().  Also initialize the variables immediately to correct
values, and since cachesz is never changed mark it read only.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agolib/colors: remove memory leak
Sami Kerola [Wed, 16 Jul 2014 20:54:56 +0000 (21:54 +0100)] 
lib/colors: remove memory leak

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agobuild-sys: harmonize some indentation
Benno Schulenberg [Wed, 16 Jul 2014 11:09:53 +0000 (13:09 +0200)] 
build-sys: harmonize some indentation

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agodocs: improve the wording and conventions in the man-page howto
Benno Schulenberg [Wed, 16 Jul 2014 11:09:52 +0000 (13:09 +0200)] 
docs: improve the wording and conventions in the man-page howto

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agodocs: improve the formatting and wording of two man pages
Benno Schulenberg [Wed, 16 Jul 2014 11:09:51 +0000 (13:09 +0200)] 
docs: improve the formatting and wording of two man pages

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agocfdisk: make code more readable for analyzers [coverity scan]
Karel Zak [Thu, 17 Jul 2014 11:59:01 +0000 (13:59 +0200)] 
cfdisk: make code more readable for analyzers [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agocfdisk: fix possible memory leak [coverity scan]
Karel Zak [Thu, 17 Jul 2014 11:46:27 +0000 (13:46 +0200)] 
cfdisk: fix possible memory leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoAdd missing paragraph mark before -f
A. Bram Neijt [Wed, 16 Jul 2014 19:07:04 +0000 (21:07 +0200)] 
Add missing paragraph mark before -f

the sections on -P and -f where glued together.

10 years agodocs: bring some more man pages closer to standard formatting
Benno Schulenberg [Tue, 15 Jul 2014 21:07:38 +0000 (23:07 +0200)] 
docs: bring some more man pages closer to standard formatting

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agodocs: bring a few more man pages closer to standard formatting
Benno Schulenberg [Tue, 15 Jul 2014 21:07:37 +0000 (23:07 +0200)] 
docs: bring a few more man pages closer to standard formatting

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agodocs: bring several man pages closer to standard formatting
Benno Schulenberg [Tue, 15 Jul 2014 21:07:36 +0000 (23:07 +0200)] 
docs: bring several man pages closer to standard formatting

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agolslogins: make --notruncate more robust
Karel Zak [Wed, 16 Jul 2014 09:25:03 +0000 (11:25 +0200)] 
lslogins: make --notruncate more robust

 - keep coldescs[] read-only
 - don't expect that only COL_GECOS uses truncate flag

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolslogins: add --noheadings
Karel Zak [Wed, 16 Jul 2014 09:19:09 +0000 (11:19 +0200)] 
lslogins: add --noheadings

That's fatal mistake that this option which is required for script
is missing.

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolslogins: use bit-array, cleanup SELinux code
Karel Zak [Wed, 16 Jul 2014 09:04:53 +0000 (11:04 +0200)] 
lslogins: use bit-array, cleanup SELinux code

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agocfdisk: restore the license that was lost in January
Benno Schulenberg [Mon, 14 Jul 2014 20:53:36 +0000 (22:53 +0200)] 
cfdisk: restore the license that was lost in January

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agodocs: mount -o nouser is not useful, be clearer about that
Benno Schulenberg [Mon, 14 Jul 2014 20:53:35 +0000 (22:53 +0200)] 
docs: mount -o nouser is not useful, be clearer about that

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agodocs: improve wording and formatting of the man page of cfdisk
Benno Schulenberg [Mon, 14 Jul 2014 20:53:34 +0000 (22:53 +0200)] 
docs: improve wording and formatting of the man page of cfdisk

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agotests: add kill --queue check
Sami Kerola [Mon, 14 Jul 2014 17:52:05 +0000 (18:52 +0100)] 
tests: add kill --queue check

Correction.  The final failure to catch signal exit should not use
exiter() function.

--->8----
From: Sami Kerola <kerolasa@iki.fi>
Date: Mon, 14 Jul 2014 18:35:56 +0100
Subject: [PATCH] tests: add kill --queue check

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agocfdisk: fix warning usage, improve 's' help
Karel Zak [Tue, 15 Jul 2014 11:12:23 +0000 (13:12 +0200)] 
cfdisk: fix warning usage, improve 's' help

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agocfdisk: accept 's' as well as 'S' for sectors
Karel Zak [Tue, 15 Jul 2014 11:01:56 +0000 (13:01 +0200)] 
cfdisk: accept 's' as well as 'S' for sectors

Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agocfdisk: make menus sensitive to ESC
Karel Zak [Tue, 15 Jul 2014 10:41:30 +0000 (12:41 +0200)] 
cfdisk: make menus sensitive to ESC

Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agocfdisk: use \n for messages on stdout and stderr
Karel Zak [Tue, 15 Jul 2014 10:32:38 +0000 (12:32 +0200)] 
cfdisk: use \n for messages on stdout and stderr

Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: make disk sync() optional
Karel Zak [Tue, 15 Jul 2014 10:28:16 +0000 (12:28 +0200)] 
libfdisk: make disk sync() optional

 ... this allows to avoid unnecessary sync() from cfdisk.

Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agodocs: fix name and URL of 2.25-rc1
Benno Schulenberg [Mon, 14 Jul 2014 09:03:01 +0000 (11:03 +0200)] 
docs: fix name and URL of 2.25-rc1

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agolibmount: adjust the ordering of a #define and tweak some comments
Benno Schulenberg [Mon, 14 Jul 2014 09:03:00 +0000 (11:03 +0200)] 
libmount: adjust the ordering of a #define and tweak some comments

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agodocs: many tiny formatting and wording improvements to man page of mount
Benno Schulenberg [Mon, 14 Jul 2014 09:02:59 +0000 (11:02 +0200)] 
docs: many tiny formatting and wording improvements to man page of mount

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agodocs: improve formatting and wording of a few man pages
Benno Schulenberg [Mon, 14 Jul 2014 09:02:58 +0000 (11:02 +0200)] 
docs: improve formatting and wording of a few man pages

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agobuild-sys: exclude Documentation/ from looking for translatable strings
Benno Schulenberg [Mon, 14 Jul 2014 09:02:57 +0000 (11:02 +0200)] 
build-sys: exclude Documentation/ from looking for translatable strings

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agotextual: fix the usage message of kill
Benno Schulenberg [Wed, 9 Jul 2014 13:29:09 +0000 (15:29 +0200)] 
textual: fix the usage message of kill

Using angular brackets around each individual argument, indenting a
continuation line, not using a space before =, improving some wordings,
and the argument of --queue is a value (a piece of data), not a signal.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agoMerge branch 'minor-fixes' of git://github.com/kerolasa/lelux-utiliteetit
Karel Zak [Mon, 14 Jul 2014 14:03:48 +0000 (16:03 +0200)] 
Merge branch 'minor-fixes' of git://github.com/kerolasa/lelux-utiliteetit

* 'minor-fixes' of git://github.com/kerolasa/lelux-utiliteetit:
  lscpu: avoid double free
  libsmartcols: avoid variable dereference after release
  libfdisk: do not do the same thing twice in single if statement
  whereis: avoid printing uninitialized string
  setpriv: avoid alloca() use xmalloc() instead
  dmesg: avoid unnecessary variable assignment
  fdisk: avoid code duplication
  mkfs.cramfs: use defined failure name rather than magic value
  fdformat: match variable and print format types
  cfdisk: add braces to ensure operation order
  lscpu: avoid use of bzero() in favor of memset()
  setterm: remove unnecessary variable
  cal: remove unnused structure and definition
  textual: fix some typos

10 years agouuidd.rc: Requires remote_fs
Andreas Henriksson [Fri, 11 Jul 2014 13:08:41 +0000 (15:08 +0200)] 
uuidd.rc: Requires remote_fs

The Debian package checking tool lintian thinks that the script is
missing Requires on $remote_fs because it pokes at stuff under /usr
and it's probably right.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
10 years agouuidd.rc: drop on-demand mode from script
Andreas Henriksson [Fri, 11 Jul 2014 13:08:40 +0000 (15:08 +0200)] 
uuidd.rc: drop on-demand mode from script

The on-demand mode was dropped from libuuid in
commit ea4f8845f0241c7 "libuuid: don't exec uuidd"

You now need systemd (socket activation) to use
uuidd on demand.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
10 years agokill: use --queue option argument as sigval integer value
Sami Kerola [Wed, 9 Jul 2014 20:49:03 +0000 (21:49 +0100)] 
kill: use --queue option argument as sigval integer value

The sigqueue(3) takes two values, signal and sigval.  Contents of the
signal can be altered with --signal option argument, so the --queue
argument should be reserved to affect sigval_int.

This is regression fix introduced by commit
9e8dffd5cd29f03029b1ac99eecb129532ca5c0f.

Reference: http://man7.org/linux/man-pages/man3/sigqueue.3.html
Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agobuild-sys: improve the informative message when not building some util
Benno Schulenberg [Wed, 9 Jul 2014 15:20:10 +0000 (17:20 +0200)] 
build-sys: improve the informative message when not building some util

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agodocs: fix many wording and some formatting issues in the man page of kill
Benno Schulenberg [Wed, 9 Jul 2014 13:29:10 +0000 (15:29 +0200)] 
docs: fix many wording and some formatting issues in the man page of kill

Also, add the most-used form of '-signal' to the synopsis.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agowhereis: fix missing newline on empty results
Andreas Henriksson [Wed, 9 Jul 2014 12:09:34 +0000 (14:09 +0200)] 
whereis: fix missing newline on empty results

Running "whereis foo.bar.quux" previously resulted in
printing the "foo.bar:" pattern prefix without any
newline following it.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
10 years agolibfdisk: make first sector buffer usage more robust
Karel Zak [Mon, 14 Jul 2014 12:53:41 +0000 (14:53 +0200)] 
libfdisk: make first sector buffer usage more robust

$ ~/util-linux/fdisk -b 4096 xxx
..
Segmentation fault

The buffer has to be reinitialized always when we apply a new
device properties (e.g. sector size).

Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolscpu: avoid double free
Sami Kerola [Sun, 13 Jul 2014 17:30:32 +0000 (18:30 +0100)] 
lscpu: avoid double free

The double free was possible for architectures other than x86_64 or i386.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agolibsmartcols: avoid variable dereference after release
Sami Kerola [Sun, 13 Jul 2014 17:23:44 +0000 (18:23 +0100)] 
libsmartcols: avoid variable dereference after release

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agolibfdisk: do not do the same thing twice in single if statement
Sami Kerola [Sun, 13 Jul 2014 17:16:35 +0000 (18:16 +0100)] 
libfdisk: do not do the same thing twice in single if statement

The second argument was very likely meant to be 'be->offset'.
Maintainers review & sign-off will further verify this change being
correct.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agowhereis: avoid printing uninitialized string
Sami Kerola [Sun, 13 Jul 2014 17:13:38 +0000 (18:13 +0100)] 
whereis: avoid printing uninitialized string

The patbuf[] needs to be filled before print out.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agosetpriv: avoid alloca() use xmalloc() instead
Sami Kerola [Sun, 13 Jul 2014 16:58:36 +0000 (17:58 +0100)] 
setpriv: avoid alloca() use xmalloc() instead

The getgroups() can return up to NGROUPS_MAX supplementary groups, that
is (since kernel 2.6.3) 65536 in total.  The git_t is 4 bytes, so maximum
request is 256 kilobytes.  When a system happen to have memory preasure
alloca() may not be able to allocate enough memory, making debugging
unnecessarily difficult.  IMHO 64 pages is significant enough amount of
memory to be properly error checked at a time of allocation.

Reference: http://www.gnu.org/software/libc/manual/html_node/Disadvantages-of-Alloca.html
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agodmesg: avoid unnecessary variable assignment
Sami Kerola [Sun, 13 Jul 2014 16:42:08 +0000 (17:42 +0100)] 
dmesg: avoid unnecessary variable assignment

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agofdisk: avoid code duplication
Sami Kerola [Sun, 13 Jul 2014 16:40:31 +0000 (17:40 +0100)] 
fdisk: avoid code duplication

To me having call to close() twice is less readable than one new
variable.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agomkfs.cramfs: use defined failure name rather than magic value
Sami Kerola [Sun, 13 Jul 2014 16:36:33 +0000 (17:36 +0100)] 
mkfs.cramfs: use defined failure name rather than magic value

From manual page; 'On error, the value MAP_FAILED is returned, and errno
is set appropriately'.

Reference: http://man7.org/linux/man-pages/man2/mmap.2.html
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agofdformat: match variable and print format types
Sami Kerola [Sun, 13 Jul 2014 16:34:25 +0000 (17:34 +0100)] 
fdformat: match variable and print format types

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agocfdisk: add braces to ensure operation order
Sami Kerola [Sun, 13 Jul 2014 16:31:11 +0000 (17:31 +0100)] 
cfdisk: add braces to ensure operation order

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agolscpu: avoid use of bzero() in favor of memset()
Sami Kerola [Sun, 13 Jul 2014 16:27:54 +0000 (17:27 +0100)] 
lscpu: avoid use of bzero() in favor of memset()

The bzero() is marked as LEGACY in POSIX.1-2001.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agosetterm: remove unnecessary variable
Sami Kerola [Sun, 13 Jul 2014 16:27:10 +0000 (17:27 +0100)] 
setterm: remove unnecessary variable

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agocal: remove unnused structure and definition
Sami Kerola [Sun, 13 Jul 2014 16:25:14 +0000 (17:25 +0100)] 
cal: remove unnused structure and definition

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agotextual: fix some typos
Sami Kerola [Sun, 13 Jul 2014 16:17:51 +0000 (17:17 +0100)] 
textual: fix some typos

Found with misspell-check version 2.0d.

Reference: https://github.com/lyda/misspell-check
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agobuild-sys: release++ (v2.25-rc2) v2.25-rc2
Karel Zak [Wed, 2 Jul 2014 09:40:19 +0000 (11:40 +0200)] 
build-sys: release++ (v2.25-rc2)

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agodocs: update v2.25-ReleaseNotes
Karel Zak [Wed, 2 Jul 2014 09:38:19 +0000 (11:38 +0200)] 
docs: update v2.25-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agodocs: update AUTHORS file
Karel Zak [Wed, 2 Jul 2014 09:35:53 +0000 (11:35 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agopo: merge changes
Karel Zak [Wed, 2 Jul 2014 09:33:31 +0000 (11:33 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolib/ismounted: more robust buffer usage [clang-analyze]
Karel Zak [Tue, 1 Jul 2014 11:51:32 +0000 (13:51 +0200)] 
lib/ismounted: more robust buffer usage [clang-analyze]

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agofsck: uninitialized argument value [clang-analyze]
Karel Zak [Tue, 1 Jul 2014 11:48:01 +0000 (13:48 +0200)] 
fsck: uninitialized argument value [clang-analyze]

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: fix possible memory leak [clang-analyze]
Karel Zak [Tue, 1 Jul 2014 11:36:37 +0000 (13:36 +0200)] 
libfdisk: fix possible memory leak [clang-analyze]

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agocfdisk: fix division by zero [clang-analyze]
Karel Zak [Tue, 1 Jul 2014 11:25:46 +0000 (13:25 +0200)] 
cfdisk: fix division by zero [clang-analyze]

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibblkid: fix probe_ddf() [clang-analyze]
Karel Zak [Tue, 1 Jul 2014 10:32:25 +0000 (12:32 +0200)] 
libblkid: fix probe_ddf() [clang-analyze]

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agofindmnt: simplify cache_set_targets()
Karel Zak [Tue, 1 Jul 2014 08:36:40 +0000 (10:36 +0200)] 
findmnt: simplify cache_set_targets()

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibmount: always use mnt_resolve_target() in mnt_fs_match_target()
Karel Zak [Tue, 1 Jul 2014 08:34:09 +0000 (10:34 +0200)] 
libmount: always use mnt_resolve_target() in mnt_fs_match_target()

The requested path is also target mountpoint, so let's optimize
realpath() usage as well.

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