Karel Zak
193b3239c1
lsblk: use errtryhelp()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-12-19 13:30:56 +01:00
Karel Zak
677ec86cef
Use --help suggestion on invalid option
...
The current default is to print all usage() output. This is overkill
in many case.
Addresses: https://github.com/karelzak/util-linux/issues/338
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-12-19 13:13:34 +01:00
Sébastien Helleu
d673b74e9d
docs: replace FTP by HTTPS in kernel.org URLs
...
The links to ftp://ftp.kernel.org/ are replaced by
https://www.kernel.org/ .
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-12-19 11:22:26 +01:00
Michael Kerrisk
9a1f476c7c
docs: namei(1): SEE ALSO: add symlink(7)
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-12-09 13:45:09 +01:00
Michael Kerrisk
8419465d2d
docs: kill(1): Wording fix
...
Fix a wording error introduced in one of my recent commits.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-12-09 13:45:09 +01:00
Michael Kerrisk
a72fa61a77
docs: various pages: Use 'UID" and "GID", not "uid" and "gid" in man pages
...
Signed-off-by: Michael Kerrisk <mtk.man-pages@gmail.com>
2016-12-09 13:45:09 +01:00
Michael Kerrisk
2085ba6cf6
docs: various pages: Use "PID" not "pid" in man-pages
...
Signed-off-by: Michael Kerrisk <mtk.man-pages@gmail.com>
2016-12-09 13:45:09 +01:00
Michael Kerrisk
9184323a59
docs: various pages: Use "ID" not "id" in man pages
...
The correct abbreviation of identifier is is "ID" (as used in
many pages), not "id" (as used in a few pages).
Signed-off-by: Michael Kerrisk <mtk.man-pages@gmail.com>
2016-12-09 13:45:09 +01:00
Michael Kerrisk
46f057ed37
docs: various pages: Format pathnames as italic (.I)
...
In the majority of pages, pathnames are formatted as Italic,
which is the norm. However, there are several cases where they
are formatted as bold. This patch fixes a number of those
exceptions.
Signed-off-by: Michael Kerrisk <mtk.man-pages@gmail.com>
2016-12-09 13:45:09 +01:00
Karel Zak
3ebe5477db
findmnt: add --tree to allow to enable tree output for --mtab
...
The --mtab output is merge from kernel and utab on all modern systems
(without classic /etc/mtab). It means we have all necessary information
to generate tree output.
For the backward compatibility --mtab is the list by default, the new
option --tree allows to override the default and enable tree always
when the table contains child-parent relations.
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-12-08 14:24:41 +01:00
Karel Zak
de22cb2b12
findmnt: add note about mount options
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-12-08 14:11:02 +01:00
Michael Kerrisk
85c928caed
docs: kill(1): Wording fix
...
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-12-05 16:51:16 +01:00
Michael Kerrisk
d9818c9b79
docs: kill(1): Formatting fixes
...
Formatting fixes for constants and structure/field names, as
per man-pages(7).
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-12-05 16:51:16 +01:00
Michael Kerrisk
f793f8bc91
docs: kill(1): Rework notes on thread groups
...
The points in the NOTES can be expressed more compactly
(there is some redundancy in the two existing paragraphs).
Also, add a reference to signal(7), since this provides
much more detail on the topic.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-12-05 16:51:15 +01:00
Michael Kerrisk
3d463c677e
docs: kill(1): Add more detail on use of SIGTERM vs SIGKILL
...
It's worth adding a recommendation here to use SIGTERM
rather than SIGKILL, and explain why.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-12-05 16:51:15 +01:00
Michael Kerrisk
b79cc53b43
docs: kill(1): Fix section reference for sigqueue(3) and add to SEE ALSO
...
Signed-off-by: Michael Kerrisk <mtk.man-pages@gmail.com>
2016-12-05 16:51:15 +01:00
Michael Kerrisk
3be5d9772f
docs: various pages: Use "system call" not "syscall"
...
A minor wording fix...
Signed-off-by: Michael Kerrisk <mtk.man-pages@gmail.com>
2016-12-05 16:51:07 +01:00
Ruediger Meier
12f17a23df
misc: fix typos using codespell
...
# command used was:
$ ~/src/codespell/codespell \
-w -D /home/rudi/src/codespell/build/lib/codespell_lib/data/dictionary.txt \
$(git ls-files | grep -v "^po/\|\.xz$\|\.gz$\|\.bz2$\|\.img$\|^Documentation/releases/")
BTW some manually grammer fixes:
s/uses/used/
s/begin/beginning/
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2016-12-01 00:01:43 +01:00
Ruediger Meier
223939d95b
misc: spelling, always use "cannot" instead of "can not"
...
Just to be consistent ...
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2016-11-30 14:56:50 +01:00
Michael Kerrisk (man-pages)
f76c7478a0
Replace reference to sigvec(2) with sigaction(2)
...
The sigvec(3) (not sigvec(2)) page documents ancient BSD APIs.
The right page to cross reference here is sigaction(2),
which documents the modern POSIX APIs.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-11-29 10:44:19 +01:00
Michael Kerrisk (man-pages)
b2cc2a7fc6
Fix formatting errors in page cross references
...
These pages had errors such as
.BR page (x) .
which should be
.BR page (x).
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-11-29 10:44:19 +01:00
Michael Kerrisk (man-pages)
f00218ffb8
Fix section number in lockf() page xref
...
lockf() is in section 3, not 2.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-11-29 10:44:19 +01:00
Michael Kerrisk (man-pages)
f053ff1e3a
Place SEE ALSO entries in order
...
This patch does only the following:
* Order SEE ALSO entries first by section name, then alphabetically
within section
* Adds one or two missing commas in SEE ALSO lists
* Removes one or two periods that were (inconsistently) used
at the end of SEE ALSO lists.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2016-11-29 10:44:19 +01:00
Karel Zak
e76e6747cb
lsblk: add note about --sort and --list relation
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-11-02 14:47:37 +01:00
Karel Zak
5e2305ca5c
lsblk: sort by MAJ:MIN by default
...
Since Linux kernel 4.8 /sys entries are no more sorted and all is
in the native order. It makes lsblk output messy.
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-11-02 14:40:31 +01:00
Karel Zak
bae57b5a3c
misc: fix unsigned int usage for ctype.h functions
...
Reported-by: "Yuriy M. Kaminskiy" <yumkam@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-26 10:13:47 +02:00
Karel Zak
42b02524de
Merge branch 'master' of https://github.com/yurchor/util-linux
...
* 'master' of https://github.com/yurchor/util-linux :
Fix minor typos
2016-10-24 15:05:56 +02:00
Karel Zak
e1164591f7
getopt: be sure that options array is terminated
...
Reported-by: Anders Kaseorg <andersk@mit.edu>
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-21 13:51:48 +02:00
Yuri Chornoivan
31fb945332
Fix minor typos
2016-10-20 19:08:57 +03:00
Karel Zak
c880563200
cal: support abbreviated month names
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-07 16:10:28 +02:00
Karel Zak
535fd6d2b6
cal: support alone month name parameter
...
For example 'cal August' to print August for the current year.
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-07 16:02:36 +02:00
Karel Zak
e5927d5411
cal: cleanup man page
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-07 15:44:18 +02:00
Karel Zak
c49fb9cacd
cal: remove err message from monthname_to_number()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-07 15:24:32 +02:00
Karel Zak
12fbe36f0f
findmnt: (verify) fix mem leak [coverity scan]
2016-10-05 10:52:24 +02:00
Karel Zak
3255314721
findmnt: remove duplicate include
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-09-30 10:30:07 +02:00
Karel Zak
302419e8da
findmnt: (verify) add docs
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-09-23 13:21:02 +02:00
Karel Zak
a766fafef3
findmnt: (verify) minor changes in strings
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-09-23 13:21:02 +02:00
Karel Zak
5f1608e068
findmnt: (verify) check filesystem type
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-09-23 13:21:02 +02:00
Karel Zak
a1c95432f8
findmnt: (verify) add swaparea verification
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-09-23 13:21:02 +02:00
Karel Zak
67260dc468
findmnt: (verify) add options verification
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-09-23 13:21:02 +02:00
Karel Zak
169b4a8cd5
findmnt: (verify) add source verification
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-09-23 13:21:02 +02:00
Karel Zak
c768892f4c
findmnt: add --verify and --verbose
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-09-23 13:21:02 +02:00
Karel Zak
37948503c9
libsmartcols: support LIBSMARTCOLS_DEBUG_PADDING=on
...
This env.variable forces libsmartcols to use visible padding chars.
The standard debug has to be enabled (to minimize overhead for
non-debug execution).
For example:
$ LIBSMARTCOLS_DEBUG=all LIBSMARTCOLS_DEBUG_PADDING=on findmnt 2> ~/log
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-09-07 12:25:06 +02:00
Karel Zak
090d8c763a
include/closestream: define exit codes
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-08-16 13:35:06 +02:00
Sami Kerola
0be3ad70ad
kill: remove pid command-name to option alias
...
Removal was promised to happen in March 2016 and the time has come to get
rid of this unexpected feature.
Reference: c5b057b342
Reviewed-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2016-08-14 13:30:16 +01:00
Sami Kerola
b7a245e27a
uuidd: remove unnecessary pidpile path variable
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-08-08 12:33:16 +02:00
Karel Zak
2b1df916e1
Merge branch 'getopt' of git://github.com/kerolasa/lelux-utiliteetit
...
* 'getopt' of git://github.com/kerolasa/lelux-utiliteetit:
getops: improve getopt-parse.bash example
2016-08-02 16:08:31 +02:00
Sami Kerola
d27f5fe770
getops: improve getopt-parse.bash example
...
Use correct names of example scripts in the script. Remove use of
backticks, they require quoting that makes the example harder to follow.
Split one-liners to one-command-at-a-time expressions. Add continue keyword
to avoid additional case statement matching. Be strict with quoting.
Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2016-07-27 16:08:43 +01:00
Sami Kerola
eb2306e675
misc: fix declarations shadowing variables in the global scope [oclint]
...
Fixes multiple occurences of 'optarg' overwrites.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2016-07-21 21:14:33 +01:00
Sami Kerola
445e9ca2d4
libmount, look: remove dead code [oclint]
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2016-07-21 21:14:33 +01:00