]>
git.ipfire.org Git - thirdparty/util-linux.git/log
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Karel Zak [Wed, 2 Jul 2014 09:33:31 +0000 (11:33 +0200)]
po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
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>
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>
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>
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>
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>
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>
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>
Eric Rannaud [Fri, 27 Jun 2014 05:18:48 +0000 (22:18 -0700)]
findmnt: use mnt_cache_set_targets() for non-kernel table
findmnt compares the user-supplied path <target> with each entry in the
parsed table. To do this comparison, libmount attempts to canonicalize
the target path of each table entry, when the entry does not originate
from the kernel (kernel supplied target paths are already
canonicalized). However, if one of these entries is an active mount
point, stat(2) or readlink(2) on the mount target path can hang (e.g.
unreachable NFS server).
If the main table is not a kernel table, we parse /proc/self/mountinfo
into a secondary table and call mnt_cache_set_targets(). This allows
libmount to check that the target path of each entry in the main table
is not an active mount point, so it can avoid canonicalizing it.
Signed-off-by: Eric Rannaud <e@nanocritical.com>
Eric Rannaud [Fri, 27 Jun 2014 05:17:18 +0000 (22:17 -0700)]
libmount: mnt_resolve_target: tiptoe around active mount points
Current code in mnt_fs_match_target() and mnt_table_find_target()
already does not canonicalize active mount points (when read from
mountinfo), because they are already canonicalized by the kernel.
Calling realpath(fs->target) on a mount point can hang -- e.g. if the
NFS server is unreachable.
This patch optionally extends this strategy to the general case, that is
when @fs does not directly come from the kernel through mountinfo (for
instance, it may have been parsed from /etc/fstab).
Given @mtab parsed from mountinfo, and if mnt_cache_set_targets(cache,
mtab) is used, then mnt_fs_match_target() and mnt_table_find_target()
check whether @fs->target is a known mount point in the cached
mountinfo, before attempting to canonicalize @fs->target, no matter
where @fs itself comes from. If found in the cached mountinfo,
@fs->target is not canonicalized.
[kzak@redhat.com: - don't allocate libmnt_iter,
- add docs for mnt_cache_set_targets(),
- fallback to mnt_resolve_path() if no cache->mtab specified,
- use streq_except_trailing_slash() to compare paths]
Signed-off-by: Eric Rannaud <e@nanocritical.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Eric Rannaud [Fri, 27 Jun 2014 05:17:17 +0000 (22:17 -0700)]
libmount: mnt_resolve_path: don't canonicalize fs->target for swap
This is how mnt_table_find_target() does it. It makes sense because
@fs->target is "none" for swap and is never a sensible match for a
user-specified target.
Signed-off-by: Eric Rannaud <e@nanocritical.com>
Eric Rannaud [Fri, 27 Jun 2014 05:17:16 +0000 (22:17 -0700)]
libmount: mnt_resolve_path: use strcmp() only if both are canonical
Signed-off-by: Eric Rannaud <e@nanocritical.com>
Karel Zak [Mon, 30 Jun 2014 13:10:29 +0000 (15:10 +0200)]
fdisk: don't use --geom-* prefix for CHS options
We already use --cylinders, --heads and --sectors for sfdisk, let's
make new fdisk option compatible.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 30 Jun 2014 12:14:34 +0000 (14:14 +0200)]
libsmartcols: add note about deallocations
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 30 Jun 2014 09:03:12 +0000 (11:03 +0200)]
swapon: mark --sumarry as deprecated
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Sun, 29 Jun 2014 18:12:13 +0000 (19:12 +0100)]
swapon: align --summary fields
This commit makes partitions and files to have remaining three columns
aligned. Below print out demonstrates earlier misalignment.
$ swapon -s
Filename Type Size Used Priority
/dev/sda2 partition
4194300 0 3
/home/src/util-linux/newswap file 496 0 -1
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Benno Schulenberg [Sun, 29 Jun 2014 15:49:43 +0000 (17:49 +0200)]
umount: slightly improve the man page
Remove some stray words from option arguments.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Sun, 29 Jun 2014 15:49:42 +0000 (17:49 +0200)]
findmnt: minimally improve wording of usage text
Also sort the options better and tweak whitespace.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Sun, 29 Jun 2014 15:49:41 +0000 (17:49 +0200)]
findmnt: slightly improve wording and formatting in man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Benno Schulenberg [Sun, 29 Jun 2014 15:49:40 +0000 (17:49 +0200)]
lslogins: improve the columns information
Some fixes for typos, whitespace and wordings.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Sun, 29 Jun 2014 15:49:39 +0000 (17:49 +0200)]
lslogins: improve wording and formatting of the man page
Some typos, spacing, line breaks, and missing optional arguments.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Sun, 29 Jun 2014 15:49:38 +0000 (17:49 +0200)]
setterm: improve formatting and wording of usage text
Mainly: showing that the word color is a placeholder by writing
<color>, showing some numbers as optional, and message levels
and colors as not optional.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Sun, 29 Jun 2014 15:49:37 +0000 (17:49 +0200)]
setterm: improve wording and formatting of the man page
The main changes are: showing the arguments of boolean options
as optional, improving the alphabetization, and restoring the
--half-bright option that went missing in 2011.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Karel Zak [Thu, 26 Jun 2014 12:45:02 +0000 (14:45 +0200)]
fallocate: use O_CREAT only for the default behavior
Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Bernhard Voelker [Thu, 26 Jun 2014 12:14:01 +0000 (14:14 +0200)]
fallocate: fix check of number of arguments
Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
Pádraig Brady [Thu, 26 Jun 2014 11:05:16 +0000 (13:05 +0200)]
fallocate: clarify usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Jun 2014 10:38:04 +0000 (12:38 +0200)]
fallocate: use err_exclusive_options(), cleanup getopt_long() stuff
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Jun 2014 10:01:59 +0000 (12:01 +0200)]
fallocate: make man page readable for humans
Well, let's copy & past from fallocate(2) syscall man page rather than
try to be creative with another description for the flags.
Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Jun 2014 10:01:13 +0000 (12:01 +0200)]
fallocate: fix FALLOC_FL_ZERO_RANGE flag check
Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 25 Jun 2014 12:04:20 +0000 (14:04 +0200)]
docs: add note about lsblk
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 25 Jun 2014 11:55:56 +0000 (13:55 +0200)]
bash-completion: update fallocate, fstrim and lsblk
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 25 Jun 2014 11:44:08 +0000 (13:44 +0200)]
bash-completion: update cfdisk
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 25 Jun 2014 11:41:27 +0000 (13:41 +0200)]
bash-completion: update fdisk
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 25 Jun 2014 11:21:35 +0000 (13:21 +0200)]
fdisk: add long options, cleanup man page and usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 25 Jun 2014 11:21:15 +0000 (13:21 +0200)]
docs: fix minor things in man-page howto
Signed-off-by: Karel Zak <kzak@redhat.com>