summaryrefslogtreecommitdiffstats
path: root/misc-utils
Commit message (Collapse)AuthorAgeFilesLines
* Fix formatting errors in page cross referencesMichael Kerrisk (man-pages)2016-11-291-1/+1
| | | | | | | | | | | | These pages had errors such as .BR page (x) . which should be .BR page (x). Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* Fix section number in lockf() page xrefMichael Kerrisk (man-pages)2016-11-291-1/+1
| | | | | | lockf() is in section 3, not 2. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* Place SEE ALSO entries in orderMichael Kerrisk (man-pages)2016-11-297-10/+10
| | | | | | | | | | | | 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>
* lsblk: add note about --sort and --list relationKarel Zak2016-11-021-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: sort by MAJ:MIN by defaultKarel Zak2016-11-021-0/+5
| | | | | | | 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>
* misc: fix unsigned int usage for ctype.h functionsKarel Zak2016-10-261-1/+1
| | | | | Reported-by: "Yuriy M. Kaminskiy" <yumkam@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'master' of https://github.com/yurchor/util-linuxKarel Zak2016-10-242-3/+3
|\ | | | | | | | | * 'master' of https://github.com/yurchor/util-linux: Fix minor typos
| * Fix minor typosYuri Chornoivan2016-10-202-3/+3
| |
* | getopt: be sure that options array is terminatedKarel Zak2016-10-211-8/+11
|/ | | | | Reported-by: Anders Kaseorg <andersk@mit.edu> Signed-off-by: Karel Zak <kzak@redhat.com>
* cal: support abbreviated month namesKarel Zak2016-10-072-4/+21
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cal: support alone month name parameterKarel Zak2016-10-072-7/+16
| | | | | | For example 'cal August' to print August for the current year. Signed-off-by: Karel Zak <kzak@redhat.com>
* cal: cleanup man pageKarel Zak2016-10-071-20/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cal: remove err message from monthname_to_number()Karel Zak2016-10-071-3/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: (verify) fix mem leak [coverity scan]Karel Zak2016-10-051-5/+6
|
* findmnt: remove duplicate includeKarel Zak2016-09-301-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: (verify) add docsKarel Zak2016-09-232-1/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: (verify) minor changes in stringsKarel Zak2016-09-231-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: (verify) check filesystem typeKarel Zak2016-09-231-0/+198
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: (verify) add swaparea verificationKarel Zak2016-09-231-2/+30
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: (verify) add options verificationKarel Zak2016-09-231-1/+23
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: (verify) add source verificationKarel Zak2016-09-232-8/+85
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: add --verify and --verboseKarel Zak2016-09-234-42/+283
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: support LIBSMARTCOLS_DEBUG_PADDING=onKarel Zak2016-09-072-0/+4
| | | | | | | | | | | | 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>
* include/closestream: define exit codesKarel Zak2016-08-162-1/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* kill: remove pid command-name to option aliasSami Kerola2016-08-142-9/+0Star
| | | | | | | | | Removal was promised to happen in March 2016 and the time has come to get rid of this unexpected feature. Reference: c5b057b3422504a671ee588fa66574ae876521f1 Reviewed-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* uuidd: remove unnecessary pidpile path variableSami Kerola2016-08-081-5/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'getopt' of git://github.com/kerolasa/lelux-utiliteetitKarel Zak2016-08-022-32/+60
|\ | | | | | | | | * 'getopt' of git://github.com/kerolasa/lelux-utiliteetit: getops: improve getopt-parse.bash example
| * getops: improve getopt-parse.bash exampleSami Kerola2016-07-272-32/+60
| | | | | | | | | | | | | | | | | | | | 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>
* | misc: fix declarations shadowing variables in the global scope [oclint]Sami Kerola2016-07-211-7/+7
| | | | | | | | | | | | Fixes multiple occurences of 'optarg' overwrites. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | libmount, look: remove dead code [oclint]Sami Kerola2016-07-211-2/+0Star
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | logger: simplify if clause [oclint]Sami Kerola2016-07-211-24/+24
| | | | | | | | | | | | | | This has effect of collapsing rather long indentation block, so commit separately. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | misc: simplify if clauses [oclint]Sami Kerola2016-07-213-11/+6Star
|/ | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* logger: remove trailing spaces when outputing to journalSami Kerola2016-07-191-5/+2Star
| | | | | | | | | | | | | | Issues: 1. Whitespace-ish \r is not stripped, while it should be. 2. In journal \r is considered unprintable. Lennart: "it is the duty of the client side to drop the trailing whitespace, which "logger" doesn't do". Reported-by: Ivan Babrou <ibobrik@gmail.com> Explained-by: Lennart Poettering <lennart@poettering.net> Reference: https://github.com/systemd/systemd/issues/3416 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* lslocks: add --noinaccessibleKarel Zak2016-07-012-27/+45
| | | | | | | | | | * add --noinaccessible to not print incomplete information * make incomplete paths more visible (append "...") * don't print 0B size if lock file inaccessible Signed-off-by: Karel Zak <kzak@redhat.com>
* logger: be more precise about --port descriptionKarel Zak2016-06-211-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cal: cleanup non-ncurses buildKarel Zak2016-06-091-12/+17
|
* lsblk: improve support for nvmeKarel Zak2016-06-021-1/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* misc: Fix various typosSebastian Rasmussen2016-05-319-19/+19
| | | | | | | Fix various typos in error messages, warnings, debug strings, comments and names of static functions. Signed-off-by: Sebastian Rasmussen <sebras@gmail.com>
* docs: Fix various typosSebastian Rasmussen2016-05-313-5/+5
| | | | Signed-off-by: Sebastian Rasmussen <sebras@gmail.com>
* cal: support timestampsKarel Zak2016-05-312-1/+28
| | | | | | | | For example $ cal '2 weeks ago' Signed-off-by: Karel Zak <kzak@redhat.com>
* cal: allow to specify month by nameKarel Zak2016-05-312-2/+34
| | | | | | | | For example: $ cal August 2016 Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: use ID_WWN_WITH_EXTENSION is possibleKarel Zak2016-05-251-1/+6
| | | | | Addresses: https://github.com/karelzak/util-linux/issues/321 Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'cal04'Karel Zak2016-05-201-4/+4
|\
| * cal: use %04d for yearKarel Zak2016-05-181-4/+4
| | | | | | | | | | | | | | | | | | | | It seems that people are crazy enough to assume that "cal 16" is the year 2016, rather than 16 (2000 years ago). This patch makes it more clear as the output is 0016. Addresses: https://github.com/karelzak/util-linux/issues/320 Signed-off-by: Karel Zak <kzak@redhat.com>
* | man pages: fix spacing between man page name & section numberMike Frysinger2016-05-202-2/+2
|/ | | | | | Most have standardized correctly, but fix a few latent ones. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* logger: add man page note about the default --tagKarel Zak2016-05-161-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* getopt: keep pointer to 'name' in control structKarel Zak2016-04-221-10/+7Star
| | | | | | It's seems more readable than call free(argv[0]). Signed-off-by: Karel Zak <kzak@redhat.com>
* getopt: fix memory leaks and integer overflows [ASAN & valgrind]Sami Kerola2016-04-201-7/+18
| | | | | | | | | | | The getopt(1) is short living command, and one could argue ensuring all allocations are freed at end of execution is waste of time. There is a point in that, but making test-suite runs to be less noisy with ASAN is also nice as it encourages reading the errors when/if they happen. Reviewed-by: Yuriy M. Kaminskiy <yumkam@gmail.com> Reviewed-by: Karel Zak <kzak@redhat.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* wipefs: force GPT detectionKarel Zak2016-04-131-2/+2
| | | | | | | | | | The library libblkid (as well as fdisks) requires protective MBR when probe for GPT by default. This is unnecessary for wipefs where we're more promiscuous and we want to delete as much as possible. This patch enables BLKID_PARTS_FORCE_GPT for wipefs. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1326474 Signed-off-by: Karel Zak <kzak@redhat.com>
* rename: add example to the man pageKaligule2016-04-061-0/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>