]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Karel Zak [Mon, 5 Mar 2012 15:48:38 +0000 (16:48 +0100)]
login: fix LOGIN_CHOWN_VCS code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 2 Mar 2012 14:59:10 +0000 (15:59 +0100)]
tests: search for "none" by findmnt
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 2 Mar 2012 14:53:55 +0000 (15:53 +0100)]
libmount: add mnt_fs_streq_target() and export all mnt_fs_streq_*
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 2 Mar 2012 13:05:26 +0000 (14:05 +0100)]
blkid: add DEVNAME= to export output format
Reported-by: Balamurugan Arumugam <barumuga@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 2 Mar 2012 12:33:46 +0000 (13:33 +0100)]
tests: wait a moment between mount and umount
It seems that without sleep between mount and umount are the test
unstable, because kernel is not able to provide updated
/proc/self/mountinfo so quickly (really?).
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 2 Mar 2012 12:29:39 +0000 (13:29 +0100)]
libmount: add mnt_fs_streq_srcpath()
We have to be careful with "none" or another dummy sources for pseudo
filesystems. These strings should be canonicalized or compared as a
paths.
The function is not exported by library API.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 2 Mar 2012 10:23:34 +0000 (11:23 +0100)]
libmount: cosmetic changes around "none"
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 2 Mar 2012 08:57:49 +0000 (09:57 +0100)]
tests: update libmount tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Dave Reisner [Fri, 2 Mar 2012 03:47:00 +0000 (22:47 -0500)]
libmount: don't treat "none" differently
This causes more problems than it solves. In the latest edition:
# mount -t proc none foo
mount: foo: mount failed: Invalid argument
A check for source and target fails in mnt_context_apply_fstab()
because, even though they were indeed specified on the cmdline,
__mnt_fs_set_source_ptr() altered this and NULL'd out the source.
If you're able to mount this device via other means, other tools start
reporting oddities, such as mount's output:
(null) on /foo type proc (rw,relatime)
or findmnt:
TARGET SOURCE FSTYPE OPTIONS
/foo proc rw,relatime
Simply treat "none" like any other source when passed in.
[kzak@redhat.com: - don't translate NULL to "none" in mnt_fs_set_source()]
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Dave Reisner [Fri, 2 Mar 2012 03:46:59 +0000 (22:46 -0500)]
mountpoint: account for error from in mnt_fs_get_target
commit
04f087ec didn't take into consideration that mnt_fs_get_target()
could return an error, and would therefore show false positives, such
as:
$ mkdir foo; mountpoint foo
foo is a mountpoint
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Karel Zak [Thu, 1 Mar 2012 14:44:04 +0000 (15:44 +0100)]
wipefs: always print devname
It seems too smart to print devname according to number of devices.
Signed-off-by: Karel Zak <kzak@redhat.com>
Milan Broz [Wed, 29 Feb 2012 16:16:42 +0000 (17:16 +0100)]
wipefs: support more device arguments for wipefs
[kzak@redhat.com: - print devname only if more devices specified]
Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Milan Broz [Wed, 29 Feb 2012 16:16:41 +0000 (17:16 +0100)]
wipefs: add quiet flag (-q)
Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 1 Mar 2012 13:24:04 +0000 (14:24 +0100)]
libblkid: properly reset chain in probe_do_wipe()
The command wipefs is not able to remove all signatures from the
device if the first detected signature is linux raid. The another
superblock signatures are ignored. For example:
# pvcreate /dev/sdb1
# mdadm --create md8 --metadata=0.90 --chunk=64 --level=0 \
--raid-devices=2 /dev/sdb1 /dev/sdb2
# wipefs -a /dev/sdb1
will delete the linux raid signature only.
Reported-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 1 Mar 2012 11:30:14 +0000 (12:30 +0100)]
tests: add tests for mount --make-* stuff
Signed-off-by: Karel Zak <kzak@redhat.com>
Zhi Li [Wed, 29 Feb 2012 08:28:49 +0000 (16:28 +0800)]
mountpoint: fix a minor bug with 0:0 devno
zhi@debian-lizhi:~$ mountpoint /sys
/sys is not a mountpoint
zhi@debian-lizhi:~$
The problem is in mountpoint.c, function dir_to_device(), which uses 0 as an
error return value, but for sysfs 0 is its device number:
zhi@debian-lizhi:~$ cat /proc/self/mountinfo
14 19 0:0 / /sys rw,nosuid,nodev,noexec,relatime - sysfs none rw
15 19 0:3 / /proc rw,nosuid,nodev,noexec,relatime - proc none rw
My change is on dir_to_device, seperating device number from return value.
Signed-off-by: Zhi Li <lizhi1215@gmail.com>
Karel Zak [Wed, 29 Feb 2012 13:26:46 +0000 (14:26 +0100)]
lslocks: add --notruncate, minor fixes in man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Davidlohr Bueso [Wed, 29 Feb 2012 13:15:01 +0000 (14:15 +0100)]
lslocks: add lslocks.8 man page
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Davidlohr Bueso [Mon, 27 Feb 2012 17:26:40 +0000 (18:26 +0100)]
lslocks: new command
The new lslocks(8) program is meant to replace the deprecated lslk(8). It is
designed for simplicity and removes unnecessary Unix legacy outputs and
options:
- Don't output inode number, whence and maj:min device numbers.
- Don't provide nonblocking syscall options stat(2) and readlink(2)
- Remove lslk's alternate default kernel name list file path (-k)
The option to use nonblocking calls was previously intended for NFS partitions;
however this should be transparent to utility programs considering that
timeouts can occur generically (fuse - sshfs, NFS, netdevs, etc).
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Davidlohr Bueso [Wed, 29 Feb 2012 11:27:41 +0000 (12:27 +0100)]
include: add /proc/locks path to pathnames
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 28 Feb 2012 17:11:23 +0000 (18:11 +0100)]
build-sys: s/ruman/ruman1/
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Sun, 26 Feb 2012 21:45:40 +0000 (22:45 +0100)]
docs: do not overwrite ddate.1 manual
The following warning meant either english manual page overwrote ru
version, or otherway around. Neither way that not intented. This
patch will change ru version of the manual page to be installed to
<prefix><mandir>/ru/man1 directory.
man/ru/Makefile.am:4: warning: mandir was already defined in condition TRUE, which includes condition BUILD_DDATE ...
configure.ac:1: ... `mandir' previously defined here
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Raghavendra D Prabhu [Sun, 26 Feb 2012 11:06:42 +0000 (16:36 +0530)]
mount: (new) add 'internal-only(i)' to non-root allowed options
Commit
ce433404 introduced the change, which causes something like mount -i
<user-mount-path> to break which worked well before util-linux-2.21, now it
gives message 'mount: only root can use "--internal-only" option' when that
shouldn't be the case when it is already in fstab.
Signed-off-by: Raghavendra D Prabhu <rprabhu@wnohang.net>
Sebastian Andrzej Siewior [Fri, 24 Feb 2012 17:16:07 +0000 (18:16 +0100)]
build-sys: add a crosscompile path for scanf_cv_alloc_modifier
This allows to building the package cross again. Since the return value
is not used I guess there is little loss.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Karel Zak [Tue, 28 Feb 2012 13:37:45 +0000 (14:37 +0100)]
tests: make output and diff dirs usage more robust
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Wed, 8 Feb 2012 08:51:34 +0000 (09:51 +0100)]
build-sys: enhance readability of the autotools files
Several horizontal lists are turned to vertical, and sorted to
alphabetical order. Additionally spaces are converted to tabs where
ever possible.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 8 Feb 2012 08:32:55 +0000 (09:32 +0100)]
build-sys: remove unused function and header checks
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Tue, 28 Feb 2012 10:16:16 +0000 (11:16 +0100)]
login: support crazy shadow-utils syntax in login.defs
standard syntax for FOO=data:
ENV_FOO data
additional syntax:
ENV_FOO FOO=data
Reported-by: Colin Guthrie colin@mageia.org
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 27 Feb 2012 23:21:48 +0000 (00:21 +0100)]
test: test 'none' source for mount(8)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 27 Feb 2012 23:02:30 +0000 (00:02 +0100)]
libmount: allow empty source for mount(2) syscall
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=797438
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 27 Feb 2012 15:43:12 +0000 (16:43 +0100)]
libmount: use mount.<type> -s for NFS only
Unfortunately, it seems that for example mount.cifs don't care about
the API, so we need exception like the original mount(8).
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 24 Feb 2012 22:03:22 +0000 (23:03 +0100)]
mount: (new) cleanup mount -a return codes
New return codes:
0 : all mounted (or all ignored)
64 : some mounted, some failed
32 : all failed
Note that already mounted or ignored (filtered out by -t or -O)
filesystems don't affect the final return code.
The original mount(8) returns 0 instead of 64, so the situation
"some mounted, some failed" cannot be detected.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 24 Feb 2012 21:52:45 +0000 (22:52 +0100)]
libmount: canonicalize targets from fstab on mount -a
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 24 Feb 2012 20:30:22 +0000 (21:30 +0100)]
libmount: optimize for paths with tailing slash
mnt_table_find_target() canonicalizes paths by libmnt cache, but it's
overkill if the difference between paths is tailing slash only.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 24 Feb 2012 20:26:11 +0000 (21:26 +0100)]
lib/canonicalize: always remove tailing slash
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 24 Feb 2012 20:05:09 +0000 (21:05 +0100)]
tests: test non-canonical paths in fstab
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 24 Feb 2012 19:25:43 +0000 (20:25 +0100)]
libmount: canonicalize all paths from (fs)tab
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=797216
Signed-off-by: Karel Zak <kzak@redhat.com>
Davidlohr Bueso [Tue, 14 Feb 2012 11:13:16 +0000 (12:13 +0100)]
more: fix typos
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Davidlohr Bueso [Tue, 14 Feb 2012 11:13:14 +0000 (12:13 +0100)]
sys-utils: fix typos
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Davidlohr Bueso [Tue, 14 Feb 2012 11:13:12 +0000 (12:13 +0100)]
misc-utils: fix typos
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Petr Uzel [Fri, 24 Feb 2012 10:51:53 +0000 (11:51 +0100)]
losetup: add --detach-all to the list of options
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Sami Kerola [Wed, 22 Feb 2012 21:28:48 +0000 (22:28 +0100)]
docs: corrections to FSF license files, and postal address
The COPYING and Documentation/licenses/COPYING* files are being
replaced by files from GNU web site.
http://www.gnu.org/licenses/gpl-2.0.txt
http://www.gnu.org/licenses/lgpl-2.1.txt
Postal addresses to FSF in other files are updated to match with the
address in license files.
Reference: http://lists.gnu.org/archive/html/freefont-announce/2005-04/msg00001.html
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Fri, 24 Feb 2012 13:09:27 +0000 (14:09 +0100)]
build-sys: don't create empty man/ru directory
Reported-by: Tom Gundersen <teg@jklm.no>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 24 Feb 2012 10:53:46 +0000 (11:53 +0100)]
build-sys: release++ (v2.21)
Signed-off-by: Karel Zak <kzak@redhat.com>
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>
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>
Karel Zak [Fri, 24 Feb 2012 10:38:14 +0000 (11:38 +0100)]
po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
Yuri Chornoivan [Fri, 24 Feb 2012 10:32:59 +0000 (11:32 +0100)]
po: update uk.po (from translationproject.org)
Jakub Bogusz [Fri, 24 Feb 2012 10:32:59 +0000 (11:32 +0100)]
po: update pl.po (from translationproject.org)
Benno Schulenberg [Fri, 24 Feb 2012 10:32:59 +0000 (11:32 +0100)]
po: update nl.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)
Petr Písař [Fri, 24 Feb 2012 10:32:59 +0000 (11:32 +0100)]
po: update cs.po (from translationproject.org)
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Karel Zak [Wed, 22 Feb 2012 12:02:17 +0000 (13:02 +0100)]
libmount: cleanup docs
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 22 Feb 2012 11:15:15 +0000 (12:15 +0100)]
libblkid: update docs
Signed-off-by: Karel Zak <kzak@redhat.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Paul Menzel [Fri, 3 Feb 2012 18:19:39 +0000 (19:19 +0100)]
flock: add missing word »be« to flock.1
Paul Menzel [Fri, 3 Feb 2012 18:18:17 +0000 (19:18 +0100)]
flock: fix flock.1 grammar by removing »s«
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>
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>
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>
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>
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>
Karel Zak [Mon, 6 Feb 2012 15:57:05 +0000 (16:57 +0100)]
po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
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>
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>