]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
13 years agodocs: update v2.21-ReleaseNotes
Karel Zak [Fri, 24 Feb 2012 10:52:12 +0000 (11:52 +0100)] 
docs: update v2.21-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: update AUTHORS file
Karel Zak [Fri, 24 Feb 2012 10:44:38 +0000 (11:44 +0100)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopo: merge changes
Karel Zak [Fri, 24 Feb 2012 10:38:14 +0000 (11:38 +0100)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopo: update uk.po (from translationproject.org)
Yuri Chornoivan [Fri, 24 Feb 2012 10:32:59 +0000 (11:32 +0100)] 
po: update uk.po (from translationproject.org)

13 years agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Fri, 24 Feb 2012 10:32:59 +0000 (11:32 +0100)] 
po: update pl.po (from translationproject.org)

13 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Fri, 24 Feb 2012 10:32:59 +0000 (11:32 +0100)] 
po: update nl.po (from translationproject.org)

13 years agopo: update fr.po (from translationproject.org)
David Prévot [Fri, 24 Feb 2012 10:32:59 +0000 (11:32 +0100)] 
po: update fr.po (from translationproject.org)

13 years agopo: update cs.po (from translationproject.org)
Petr Písař [Fri, 24 Feb 2012 10:32:59 +0000 (11:32 +0100)] 
po: update cs.po (from translationproject.org)

13 years agoumount: respect fs search path
Mike Frysinger [Thu, 16 Feb 2012 19:59:26 +0000 (14:59 -0500)] 
umount: respect fs search path

This brings search path support to umount to match existing behavior
in fsck and mount.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
13 years agofdisk: update information about GNU Parted in fdisk.8
Petr Uzel [Thu, 23 Feb 2012 15:43:35 +0000 (16:43 +0100)] 
fdisk: update information about GNU Parted in fdisk.8

The support for resizing partitions and filesystems has been
removed from parted since version 3.0.

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
13 years agomount: distinguish between MS_COMMENT flags (netdev, nofail, ...)
Karel Zak [Thu, 23 Feb 2012 14:16:17 +0000 (15:16 +0100)] 
mount: distinguish between MS_COMMENT flags (netdev, nofail, ...)

Since util-linux 2.12h (year 2004) there is only one flag for all
dummy options like _netdev or nofail. Unfortunately it means that when
mount(8) composes the final mount options string for mtab (or for
mount.<type> helpers) the string is generated incorrectly.

Reported-by: Dave Reisner <d@falconindy.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: clear flags before options parsing
Karel Zak [Thu, 23 Feb 2012 13:53:14 +0000 (14:53 +0100)] 
mount: clear flags before options parsing

for example "mount -a" calls the mount options parser more than once

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: add wall to build-sys tests
Karel Zak [Thu, 23 Feb 2012 11:38:13 +0000 (12:38 +0100)] 
tests: add wall to build-sys tests

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: clean up context docs
Karel Zak [Thu, 23 Feb 2012 11:31:56 +0000 (12:31 +0100)] 
libmount: clean up context docs

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: add note about mount(8) options to TODO
Karel Zak [Thu, 23 Feb 2012 11:31:31 +0000 (12:31 +0100)] 
docs: add note about mount(8) options to TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolib/strutils: move array bounds check in string_to_idarray() to appropriate place.
Chandan B Rajenda [Thu, 23 Feb 2012 09:17:28 +0000 (10:17 +0100)] 
lib/strutils: move array bounds check in string_to_idarray() to appropriate place.

string_to_idarray() will incorrectly exit with an error when the last element
of the passed in array gets filled. However it should only exit with an error
if there is more input. To fix this move the array bounds check.

Signed-off-by: Chandan B Rajenda <chandan@linux.vnet.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
13 years agolibblkid: add BLKID_PARTS_MAGIC to blkid_do_wipe() docs
Karel Zak [Wed, 22 Feb 2012 12:10:21 +0000 (13:10 +0100)] 
libblkid: add BLKID_PARTS_MAGIC to blkid_do_wipe() docs

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: update copyright years
Karel Zak [Wed, 22 Feb 2012 12:07:14 +0000 (13:07 +0100)] 
docs: update copyright years

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: cleanup docs
Karel Zak [Wed, 22 Feb 2012 12:02:17 +0000 (13:02 +0100)] 
libmount: cleanup docs

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibblkid: update docs
Karel Zak [Wed, 22 Feb 2012 11:15:15 +0000 (12:15 +0100)] 
libblkid: update docs

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: remove teaser proto for mnt_table_get_name
Dave Reisner [Wed, 22 Feb 2012 04:16:34 +0000 (23:16 -0500)] 
libmount: remove teaser proto for mnt_table_get_name

This function was never implemented, but the proto has existed since the
inception of the library. As the libmnt_table struct doesn't include a
member necessary to carry the name of the table, simply discard this
prototype. If ever a need to break ABI comes up, perhaps this could be
revisited.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
13 years agodocs: trivial documentation fixes and improvements
Petr Uzel [Tue, 21 Feb 2012 20:19:25 +0000 (21:19 +0100)] 
docs: trivial documentation fixes and improvements

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
13 years agocytune.8: fix formatting
Petr Uzel [Tue, 21 Feb 2012 15:21:21 +0000 (16:21 +0100)] 
cytune.8: fix formatting

W: manual-page-warning /usr/share/man/man8/cytune.8.gz 178: warning:
macro `chars',' not defined (possibly missing space after `ch')

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
13 years agobuild-sys: fix building of wall
Petr Uzel [Tue, 21 Feb 2012 15:03:25 +0000 (16:03 +0100)] 
build-sys: fix building of wall

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
13 years agomkfs.bfs: add setlocale
Davidlohr Bueso [Tue, 14 Feb 2012 11:13:19 +0000 (12:13 +0100)] 
mkfs.bfs: add setlocale

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agodocs: add note about losetup to TODO
Karel Zak [Tue, 21 Feb 2012 19:31:40 +0000 (20:31 +0100)] 
docs: add note about losetup to TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: add note about fdisk to TODO
Karel Zak [Tue, 21 Feb 2012 17:59:50 +0000 (18:59 +0100)] 
docs: add note about fdisk to TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: make minix tests more robust
Karel Zak [Tue, 21 Feb 2012 15:14:08 +0000 (16:14 +0100)] 
tests: make minix tests more robust

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agounshare: add note about MS_SHARED to unshare.1
Karel Zak [Tue, 21 Feb 2012 14:32:50 +0000 (15:32 +0100)] 
unshare: add note about MS_SHARED to unshare.1

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: add tools/ to EXTRA_DIST
Karel Zak [Tue, 21 Feb 2012 11:12:09 +0000 (12:12 +0100)] 
build-sys: add tools/ to EXTRA_DIST

Reported-by: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolib/fsprobe: mar this internal API as deprecated
Karel Zak [Mon, 13 Feb 2012 14:10:55 +0000 (15:10 +0100)] 
lib/fsprobe: mar this internal API as deprecated

The fsprobe has been added many years ago to provide unified API for

- built-in libblkid
- e2fsprogs libblkid
- udev libvolume_id

these all is unnecessary as we strictly depends on built-in libblkid.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agologin: add LOGIN_RETRIES, cleanup retries check code
Karel Zak [Fri, 10 Feb 2012 13:47:59 +0000 (14:47 +0100)] 
login: add LOGIN_RETRIES, cleanup retries check code

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agosetsid: add "+" to getopt_long()
Harald Hoyer [Thu, 9 Feb 2012 13:46:26 +0000 (14:46 +0100)] 
setsid: add "+" to getopt_long()

otherwise setsid wants to interpret <program> arguments

$ setsid sh -i
setsid: invalid option -- 'i'

Usage:
 setsid [options] <program> [arguments ...]

Signed-off-by: Harald Hoyer <harald@redhat.com>
13 years agotunelp: free allocation, use xalloc
Sami Kerola [Tue, 7 Feb 2012 22:03:55 +0000 (23:03 +0100)] 
tunelp: free allocation, use xalloc

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoswitch_root: close open file after usage [cppcheck]
Sami Kerola [Tue, 7 Feb 2012 22:01:14 +0000 (23:01 +0100)] 
switch_root: close open file after usage [cppcheck]

[sys-utils/switch_root.c:159]: (error) Resource leak: cfd

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agochcpu: use appropriate variable type [cppcheck]
Sami Kerola [Tue, 7 Feb 2012 21:55:56 +0000 (22:55 +0100)] 
chcpu: use appropriate variable type [cppcheck]

[sys-utils/chcpu.c:251]: (style) Checking if unsigned variable 'maxcpus' is less than zero.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agotaskset: use appropriate variable type [cppcheck]
Sami Kerola [Tue, 7 Feb 2012 21:51:22 +0000 (22:51 +0100)] 
taskset: use appropriate variable type [cppcheck]

[schedutils/taskset.c:182]: (style) Checking if unsigned variable 'ncpus' is less than zero.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agolibblkid: verify arroy bound before reference [cppcheck]
Sami Kerola [Tue, 7 Feb 2012 21:31:03 +0000 (22:31 +0100)] 
libblkid: verify arroy bound before reference [cppcheck]

[libblkid/src/read.c:428]: (style) Array index end is used before limits check

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agolibblkid: allow return value to indicate error [cppcheck]
Sami Kerola [Tue, 7 Feb 2012 21:27:24 +0000 (22:27 +0100)] 
libblkid: allow return value to indicate error [cppcheck]

[libblkid/src/probe.c:1207]: (style) Checking if unsigned variable 'len' is less than zero.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agolibblkid: clarify operation order [cppcheck]
Sami Kerola [Tue, 7 Feb 2012 21:14:34 +0000 (22:14 +0100)] 
libblkid: clarify operation order [cppcheck]

[libblkid/src/cache.c:265]: (style) Suspicious condition (assignment+comparison), it can be clarified with parentheses

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agosfdisk: free variable which got the allocation [cppcheck]
Sami Kerola [Tue, 7 Feb 2012 21:01:28 +0000 (22:01 +0100)] 
sfdisk: free variable which got the allocation [cppcheck]

[fdisk/sfdisk.c:358]: (error) Memory leak: ss

[kzak@redhat.com: - free after error]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: remove redundant declaration [cppcheck]
Sami Kerola [Tue, 7 Feb 2012 20:52:21 +0000 (21:52 +0100)] 
fdisk: remove redundant declaration [cppcheck]

fdisk.h:116:12: warning: redundant redeclaration of 'valid_part_table_flag' [-Wredundant-decls]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agoraw: remove unnecessary return [cppcheck]
Sami Kerola [Tue, 7 Feb 2012 20:26:06 +0000 (21:26 +0100)] 
raw: remove unnecessary return [cppcheck]

[disk-utils/raw.c:171]: (style) Consecutive return, break, continue, goto or throw statements are unnecessary.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agomkfs.cramfs: check blocksize user input [cppcheck]
Sami Kerola [Tue, 7 Feb 2012 20:10:33 +0000 (21:10 +0100)] 
mkfs.cramfs: check blocksize user input [cppcheck]

Enhance user input checking and error messaging, while fixing
cppcheck warning.

[disk-utils/mkfs.cramfs.c:729]: (style) Checking if unsigned variable 'blksize' is less than zero.

[kzak@redhat.com: fix coding style]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomkfs.cramfs: close open file after usage [cppcheck]
Sami Kerola [Tue, 7 Feb 2012 20:10:01 +0000 (21:10 +0100)] 
mkfs.cramfs: close open file after usage [cppcheck]

[disk-utils/mkfs.cramfs.c:913]: (error) Resource leak: fd

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agolibblkid: improve reiserfs and btrfs min. size limits
Karel Zak [Wed, 8 Feb 2012 10:56:38 +0000 (11:56 +0100)] 
libblkid: improve reiserfs and btrfs min. size limits

Reported-by: Rogier Goossens <goossens.rogier@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoflock: add missing word »be« to flock.1
Paul Menzel [Fri, 3 Feb 2012 18:19:39 +0000 (19:19 +0100)] 
flock: add missing word »be« to flock.1

13 years agoflock: fix flock.1 grammar by removing »s«
Paul Menzel [Fri, 3 Feb 2012 18:18:17 +0000 (19:18 +0100)] 
flock: fix flock.1 grammar by removing »s«

13 years agotools: use gpg-aggent in ko-release-gen
Karel Zak [Tue, 7 Feb 2012 10:30:56 +0000 (11:30 +0100)] 
tools: use gpg-aggent in ko-release-gen

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: release++ (v2.21-rc2) v2.21-rc2
Karel Zak [Mon, 6 Feb 2012 17:28:42 +0000 (18:28 +0100)] 
build-sys: release++ (v2.21-rc2)

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: update v2.21-ReleaseNotes
Karel Zak [Mon, 6 Feb 2012 17:27:05 +0000 (18:27 +0100)] 
docs: update v2.21-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibblkid: remove >> 9 from GPT code
Karel Zak [Mon, 6 Feb 2012 16:34:18 +0000 (17:34 +0100)] 
libblkid: remove >> 9 from GPT code

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: update AUTHORS file
Karel Zak [Mon, 6 Feb 2012 16:00:08 +0000 (17:00 +0100)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopo: merge changes
Karel Zak [Mon, 6 Feb 2012 15:57:05 +0000 (16:57 +0100)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: add --memcheck to
Karel Zak [Mon, 6 Feb 2012 15:32:29 +0000 (16:32 +0100)] 
tests: add --memcheck to

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoagetty: check localtime() result
Karel Zak [Mon, 6 Feb 2012 15:02:28 +0000 (16:02 +0100)] 
agetty: check localtime() result

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agologin: fix leak, improve strtok usage
Karel Zak [Mon, 6 Feb 2012 11:51:55 +0000 (12:51 +0100)] 
login: fix leak, improve strtok usage

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agovipw: use xalloc.h
Karel Zak [Mon, 6 Feb 2012 10:22:54 +0000 (11:22 +0100)] 
vipw: use xalloc.h

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: use #ifdef fr selinux specific variables
Karel Zak [Fri, 3 Feb 2012 11:35:36 +0000 (12:35 +0100)] 
libmount: use #ifdef fr selinux specific variables

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: remove uneecessary code
Karel Zak [Fri, 3 Feb 2012 11:35:10 +0000 (12:35 +0100)] 
fdisk: remove uneecessary code

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolsblk: check stat() return code
Karel Zak [Thu, 2 Feb 2012 23:01:32 +0000 (00:01 +0100)] 
lsblk: check stat() return code

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agologin: allocate buffer with shell name
Karel Zak [Thu, 2 Feb 2012 14:43:29 +0000 (15:43 +0100)] 
login: allocate buffer with shell name

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agohexdump: make code more robust
Karel Zak [Thu, 2 Feb 2012 14:34:08 +0000 (15:34 +0100)] 
hexdump: make code more robust

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolib/loopdev: remove dead assigment and null deference
Karel Zak [Thu, 2 Feb 2012 13:48:03 +0000 (14:48 +0100)] 
lib/loopdev: remove dead assigment and null deference

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agosfdisk: remove dead assigment
Karel Zak [Thu, 2 Feb 2012 13:43:07 +0000 (14:43 +0100)] 
sfdisk: remove dead assigment

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: don't ignore chmod/own errors
Karel Zak [Thu, 2 Feb 2012 13:39:02 +0000 (14:39 +0100)] 
libmount: don't ignore chmod/own errors

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoblkid: remove dead assigment
Karel Zak [Thu, 2 Feb 2012 13:33:18 +0000 (14:33 +0100)] 
blkid: remove dead assigment

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolib/loopdev: fix part scan detection code
Karel Zak [Thu, 2 Feb 2012 13:29:22 +0000 (14:29 +0100)] 
lib/loopdev: fix part scan detection code

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: remove dead assigment
Karel Zak [Thu, 2 Feb 2012 13:27:48 +0000 (14:27 +0100)] 
libmount: remove dead assigment

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agohwclock: remove never read value
Karel Zak [Thu, 2 Feb 2012 13:26:04 +0000 (14:26 +0100)] 
hwclock: remove never read value

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agohwclock: clean usage, remove redundat code
Karel Zak [Thu, 2 Feb 2012 13:23:49 +0000 (14:23 +0100)] 
hwclock: clean usage, remove redundat code

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agologin: (and chsh) make pw_shell usage more robust
Karel Zak [Thu, 2 Feb 2012 13:13:45 +0000 (14:13 +0100)] 
login: (and chsh) make pw_shell usage more robust

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofindmnt: initialize rc variable
Karel Zak [Thu, 2 Feb 2012 11:50:44 +0000 (12:50 +0100)] 
findmnt: initialize rc variable

13 years agoblockdev: make the code more readable for static analysers
Karel Zak [Thu, 2 Feb 2012 11:49:13 +0000 (12:49 +0100)] 
blockdev: make the code more readable for static analysers

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agosfdisk: cleanup fd usage
Karel Zak [Thu, 2 Feb 2012 11:44:27 +0000 (12:44 +0100)] 
sfdisk: cleanup fd usage

13 years agosfdisk: fix typo in cdrom detection
Karel Zak [Thu, 2 Feb 2012 11:34:53 +0000 (12:34 +0100)] 
sfdisk: fix typo in cdrom detection

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolscpu: fix fd leak
Karel Zak [Thu, 2 Feb 2012 11:32:45 +0000 (12:32 +0100)] 
lscpu: fix fd leak

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agosfdisk: fix fd leak
Karel Zak [Thu, 2 Feb 2012 11:28:54 +0000 (12:28 +0100)] 
sfdisk: fix fd leak

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofindmnt: make --poll more robust
Karel Zak [Wed, 1 Feb 2012 23:05:24 +0000 (00:05 +0100)] 
findmnt: make --poll more robust

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolib/sysfs: fix handle leak
Karel Zak [Wed, 1 Feb 2012 22:02:21 +0000 (23:02 +0100)] 
lib/sysfs: fix handle leak

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agokill: fix fd leak
Karel Zak [Wed, 1 Feb 2012 13:03:20 +0000 (14:03 +0100)] 
kill: fix fd leak

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: fix cdrom detection
Karel Zak [Wed, 1 Feb 2012 12:42:08 +0000 (13:42 +0100)] 
fdisk: fix cdrom detection

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agonewgrp: fix possible FILE leak on error
Karel Zak [Wed, 1 Feb 2012 12:37:57 +0000 (13:37 +0100)] 
newgrp: fix possible FILE leak on error

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolib/loopdev: fix possible dir leak on error
Karel Zak [Wed, 1 Feb 2012 12:06:34 +0000 (13:06 +0100)] 
lib/loopdev: fix possible dir leak on error

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolib/sysfs: fix possible fd leak on error
Karel Zak [Wed, 1 Feb 2012 12:03:58 +0000 (13:03 +0100)] 
lib/sysfs: fix possible fd leak on error

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agovipw: don't modify environment, check strtok() return value
Karel Zak [Wed, 1 Feb 2012 11:41:25 +0000 (12:41 +0100)] 
vipw: don't modify environment, check strtok() return value

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agochcpu: check get_max_number_of_cpus() result properly
Karel Zak [Wed, 1 Feb 2012 11:26:20 +0000 (12:26 +0100)] 
chcpu: check get_max_number_of_cpus() result properly

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agocfdisk: wctomb() returns -1 on error
Karel Zak [Wed, 1 Feb 2012 11:05:31 +0000 (12:05 +0100)] 
cfdisk: wctomb() returns -1 on error

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: don't swap unsigned char
Karel Zak [Wed, 1 Feb 2012 10:53:45 +0000 (11:53 +0100)] 
fdisk: don't swap unsigned char

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopartx: fix small leak
Karel Zak [Wed, 1 Feb 2012 08:13:55 +0000 (09:13 +0100)] 
partx: fix small leak

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofsck.cramfs: mark usage() as noreturn
Karel Zak [Tue, 31 Jan 2012 20:20:55 +0000 (21:20 +0100)] 
fsck.cramfs: mark usage() as noreturn

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agochrt: add comment to keep static analysers happy
Karel Zak [Tue, 31 Jan 2012 20:14:40 +0000 (21:14 +0100)] 
chrt: add comment to keep static analysers happy

13 years agoblkid: add comment to keep static analysers happy
Karel Zak [Tue, 31 Jan 2012 20:10:13 +0000 (21:10 +0100)] 
blkid: add comment to keep static analysers happy

13 years agosfdisk: add comment to keep static analysers happy
Karel Zak [Tue, 31 Jan 2012 20:07:11 +0000 (21:07 +0100)] 
sfdisk: add comment to keep static analysers happy

13 years agofdisk: add missing break
Karel Zak [Tue, 31 Jan 2012 20:06:42 +0000 (21:06 +0100)] 
fdisk: add missing break

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomore: add comment
Karel Zak [Tue, 31 Jan 2012 20:02:51 +0000 (21:02 +0100)] 
more: add comment

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoswapon: add break to keep static analysers happy
Karel Zak [Tue, 31 Jan 2012 19:59:54 +0000 (20:59 +0100)] 
swapon: add break to keep static analysers happy

13 years agoumount: add missing break
Karel Zak [Tue, 31 Jan 2012 19:58:30 +0000 (20:58 +0100)] 
umount: add missing break

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibblkid: fix suspicious implicit sign extension [coverity scan]
Karel Zak [Tue, 31 Jan 2012 14:11:38 +0000 (15:11 +0100)] 
libblkid: fix suspicious implicit sign extension [coverity scan]

... thanks to "value preserving rules".

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibblkid: more robust idx usage [coverity scan]
Karel Zak [Tue, 31 Jan 2012 14:03:27 +0000 (15:03 +0100)] 
libblkid: more robust idx usage [coverity scan]

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