aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2015-03-12cal: care about setuprterm() resultHEADmasterKarel Zak1-21/+38
References: https://bugzilla.suse.com/show_bug.cgi?id=903440 Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-11libmount: mark overlay as pseudo-FSKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-11libmount: add mnt_table_get_fs_root() to header fileKarel Zak1-0/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-11Merge branch 'master-silence-format-printf-warning' of ↵Karel Zak1-1/+2
https://github.com/rgerhards/util-linux
2015-03-11tests: update sfdisk --dump testKarel Zak1-0/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-11logger: small change in usage()Karel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-10logger man page: fix typoRainer Gerhards1-1/+1
2015-03-10logger: add --msgid option, permits to set RFC5424 MSGID fieldRainer Gerhards2-4/+19
2015-03-10logger: fix multiple format bugs in rfc5424 formatterRainer Gerhards1-21/+57
This is more or less a complete rewrite of the formatter. It had multiple issue, e.g. a missing field (MSGID?) and invalid handling of nil values.
2015-03-10silence compiler warningRainer Gerhards1-1/+2
This is primarily cosmetic, albeit it also provides an only very slight improvement in compile time error checking.
2015-03-10libmount: cleanup fs root detection codeKarel Zak7-60/+26
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-10findmnt: don't rely on st_dev for --targetKarel Zak3-10/+20
The overlay filesystem does not provide usable st_dev (in traditional UNIX way). It's necessary to search in /proc/self/mountinfo to detect which path element is mountpoint. $ findmnt --target /mnt/merged/dir-a/foo TARGET SOURCE FSTYPE OPTIONS /mnt/merged overlay overlay rw,relatime,lowerdir=/mnt/low,upperdir=/mnt/high/data,workdir=/mnt/high/work Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-10logger: check for ntp_gettime() rather than for timex.hKarel Zak2-4/+4
It seems that musl libc and uClibc without UCLIBC_NTP_LEGACY does not provide ntp_gettime and compile will fail. References: https://github.com/karelzak/util-linux/issues/174 Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-10logger: add --skip-empty-lines to prevent logging empty linesRainer Gerhards3-4/+20
Empty log messages are generally considered useless. This option enables to turn them off when processing files (including stdin). [kzak@redhat.com: - rename --skip-empty-lines to --skip-empty, - add the option to getopt_long(), - add the option to bash-completion] Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-10logger man page: update --size docRainer Gerhards1-4/+7
now we have strict sizes Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-10logger: bugfix: missing sanity checks with --prio-prefix optionRainer Gerhards1-37/+48
There were no apparent sanity checks other than applying the logmask when reading PRI values from files. As such, invalid PRIs (tested with values 192, 210, and 2100) are accepted. This in turn can trigger problems in various receivers, especially older versions. See here for details: http://www.rsyslog.com/remote-syslog-pri-vulnerability-cve-2014-3683/ Note that 2100 was changed to 52 as described in above link. This patch refactors PRI processing. Invalid PRIs are detected and in this case the message is sent with the default priority, with the invalid pri being part of the message to be sent. This is along the line of what 2.26 did when it detected the PRI was invalid. The refactoring now also enables pricese tracking of syslog header length in all cases, so --size is now strictly obeyed. [kzak@redhat.com: - fix compiler warning [-Wunused-variable]] Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-10logger: refactor message generationRainer Gerhards1-44/+47
Previously, the message format was generated in one big step. Now this is refactored to generate the header independently. This not only provides a better isolation of functionality, but enables to calculate the size of the header *before* generating the user part of the message. That in turn is needed in order to precisely enforce the message size limit. This is especially important while processing files, as here parts of the message may be lost if the receiver truncates the message. The file reader itself tries to guard against this by reading only the permitted number of bytes, but without knowing the header size, it would mis-guess here. Note that when --prio-prefix is given, we still do not know exactly the header length, because the PRI value is between 1 and 3 bytes. Unfortunately, we do not know the actual size before reading. With the current (simple) approach, we need to read the full line before getting the PRI, so this is a hen-egg problem. To solve this, a more complex reader would be required. It is questionable if this is necessary for a tool like logger. So currently, we still have a 2-byte window of uncertainty if --prio-prefix is given. [kzak@redhat.com: - fix compiler warnings [-Wunused-but-set-variable]] Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-10logger: permit to send messages larger than 1024 charactersRainer Gerhards3-8/+32
This is an important capability that has been specified in RFC5424. However, messages larger than 1024 chars are being accepted for years now by at least rsyslog and syslog-ng. This patch adds the option --size to permit setting a new max size, with 1024 being the default. Note that the size limit is only approximative, as we do not take the header size in account (RFC talks about total message length). [[kzak@redhat.com: - add 'S' to getopt_long(), - rename --message-size to --size - add the option to bash-completion] Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-09agetty: reload issue on --autologin --login-pause tooKarel Zak1-79/+92
The current "agetty --reload" implementation does not refresh issue file output on autologin. Let's support this use-case too. Reported-by: Sitsofe Wheeler <sitsofe@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-09agetty: make sure that reload file existsKarel Zak1-5/+16
agetty monitors /run/agetty.reload file, unfortunately if the file does not exist when agetty starts up then "agetty" --reload does not work. This patch forces agetty to create the file before inotify is enabled. Reported-by: Sitsofe Wheeler <sitsofe@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-06build-sys: fix typoKarel Zak1-1/+1
2015-03-06Revert "build-sys: remove static builds from make-check"Karel Zak1-0/+1
The problem should be fixed now. This reverts commit 948b87581e7f1a430f258e169282a1755bb68edd.
2015-03-06build-sys: cleanup realtime lib usageKarel Zak5-21/+22
* check for timer_create() * define dependence on timer_create() for flock * rename CLOCKGETTIME_LIBS to REALTIME_LIBS Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-06lib/timer: use separate file for timersKarel Zak7-60/+76
It seems that static builds require -lpthread for timer_* functions. It's better to keep it out of our libs (e.g. libmount) to avoid unnecessary dependence. Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-06Merge branch 'logger-man-syslog-routine' of ↵Karel Zak1-3/+3
https://github.com/rgerhards/util-linux * 'logger-man-syslog-routine' of https://github.com/rgerhards/util-linux: logger man page: bump man page date to current logger man page: fix some "syslog(3) routine" remnants
2015-03-06logger man page: bump man page date to currentRainer Gerhards1-1/+1
2015-03-06logger man page: fix some "syslog(3) routine" remnantsRainer Gerhards1-2/+2
2015-03-06Merge branch 'logger-fix-tcp-framing' of https://github.com/rgerhards/util-linuxKarel Zak1-13/+27
* 'logger-fix-tcp-framing' of https://github.com/rgerhards/util-linux: logger: bugfix: tcp syslog framing is broken, -T unusable logger: refactor the way output is written
2015-03-06logger: use username as the default tagKarel Zak1-1/+1
Reported-by: Rainer Gerhards <rgerhards@adiscon.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-06logger: bugfix: tcp syslog framing is broken, -T unusableRainer Gerhards1-0/+15
Logger can send via plain tcp syslog if -n -T options are given. However, the framing is broken so that a syslog receiver can not know where the first message ends and the next one starts. It actually looks like no framing at all is used. Plain TCP syslog framing is described in RFC6587. This patch adds RFC6587 octet-stuffed framing to TCP syslog. For local logging, this is always fine, for remote logging this is NOT recommended by the IETF (the RFC is historic). However, a full blown RFC5425 TLS sender seems to be out of scope for a tool like logger IMO. This patch also refactors the way output is written, seperating the message format generators from the output writer.
2015-03-06logger: refactor the way output is writtenRainer Gerhards1-13/+12
Previously, output was written in exactly the same way in three different places. This is now combined into a single function. This hopefully makes it easier to adapt to changing output needs.
2015-03-06logger: remove "interface to syslog(3)" from man pageKarel Zak1-5/+1
since v2.26 logger does not use syslog(3) anymore Reported-by: Rainer Gerhards <rgerhards@adiscon.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-06Merge branch 'logger-kernel-regression' of ↵Karel Zak1-1/+3
https://github.com/rgerhards/util-linux * 'logger-kernel-regression' of https://github.com/rgerhards/util-linux: logger: fix -p kern.* priority is accepted regression logger: messages are logged with kern.* priority by default
2015-03-06logger: fix whitespace and compiler warning [-Wunused-variable]Karel Zak1-2/+1
misc-utils/logger.c: In function ‘syslog_rfc3164’: misc-utils/logger.c:336:9: warning: unused variable ‘now’ [-Wunused-variable] Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-06Merge branch 'logger-fix-local-timestamp' of ↵Karel Zak1-13/+29
https://github.com/rgerhards/util-linux * 'logger-fix-local-timestamp' of https://github.com/rgerhards/util-linux: logger: fix invalid timestamp regression in local format
2015-03-06logger: add commentKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-06Merge branch 'logger-format-fix' of https://github.com/rgerhards/util-linuxKarel Zak1-8/+6
* 'logger-format-fix' of https://github.com/rgerhards/util-linux: logger: fix inconsistent format regression when logging locally
2015-03-06libblkid: fix compiler warning [-Wunused-variable]Karel Zak1-1/+0
libblkid/src/superblocks/zfs.c: In function 'probe_zfs': libblkid/src/superblocks/zfs.c:199:11: warning: unused variable 'swab_magic' [-Wunused-variable] Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-06Merge branch 'zfs' of https://github.com/mihu/util-linuxKarel Zak1-29/+62
* 'zfs' of https://github.com/mihu/util-linux: zfs: make less syscalls blkid: make zfs detection more robust
2015-03-05logger: fix -p kern.* priority is accepted regressionRainer Gerhards1-0/+2
Pre 2.26, syslog(3) was used for local logging, and it did not accept kern.* priorities. This is re-enabled by the patch.
2015-03-05logger: messages are logged with kern.* priority by defaultRainer Gerhards1-1/+1
The default should be user.notice and kern.* should never be used (syslog(3) forbids this). This is a severe regression, as messages are now logged to the wrong bin or not at all. So they get lost and may confuse readers of the kernel bin. regression from 2.25.2 to 2.26
2015-03-05build-sys: remove static builds from make-checkKarel Zak1-1/+0
.. temporary, the final solution has to cleanup timer_* functions usage. The function are unnecessary for libmount, but we use lib/monotme.c in the library and it probably requires -lrt and *also* -lpthread for static builds. Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-05logger: fix invalid timestamp regression in local formatRainer Gerhards1-13/+29
Since 1d57503378bdcd838365d625f6d2d0a09da9c29d logger no longer uses the syslog(3) call. The way the local timestamp is generated did not match the syslog(3) format. Most importantly, the month name is formatted based on the user's local. For example: $ ./logger --stderr test with logger 2.26.39-eb651-dirty <5>Mär 5 14:17:47 logger: test with logger 2.26.39-eb651-dirty "Mär" like in German "März" for "March". previously: $ logger --stderr test with logger 2.25.2 rger: test with logger 2.25.2 In the system log file, this results to the following: Mar 5 14:17:47 host Mär 5 14:17:47 logger: test with logger 2.26.39-eb651-dirty Mar 5 14:18:01 host rger: test with logger 2.25.2 This local naming is invalid as of RFC3164. One may argue that the local log socket traditionally does not have RFC3164 format, but the timestamp always was as defined in RFC3164 (and along the lines of the ctime() call). Anything else would also be impractical, as a syslog parser would otherwise need to know about all potential locale-specific representations of month names. This patch corrects the problem and also refactors the timestamp handling a bit. The same timestamp is needed in local and rfc3164 processing, so there now is a new function to create that stamp.
2015-03-05logger: fix inconsistent format regression when logging locallyRainer Gerhards1-8/+6
The message format when writing to local sockets is inconsistent. Example: $ ./logger --stderr test <5>Mär 4 11:03:30 logger: test $ ./logger -u /dev/log --stderr test <5>1 2015-03-04T11:03:31.699841+0100 ubuntu1404esp rger - [timeQuality tzKnown="1" isSynced="1" syncAccuracy="29000"] test The regression was introduced with 4de2e8a03859aaab2c25dc98f33409cd28de6acc As far as the commit comments and man page indicates, this was meant to affect remote system logging only, but it also affects local logging when the -u option is given. This causes problems with receivers who do not expect full-blown RFC format on the log socket, like rsyslog. In consequence, this can also affect log analysis programs and invalidate some of their results. The patch corrects the behaviour so that the same old-style format is used for any type of local logging. New-style can always be selected by command line-options. RFC5424 is still the default for remote logging, as intended in the orignal commit. Result with the patch: $ ./logger --stderr test <5>Mär 4 11:15:35 logger: test $ ./logger -u /dev/log --stderr test <5>Mär 4 11:15:40 logger: test $ ./logger -u /dev/log --rfc5424 --stderr test <5>1 2015-03-04T11:21:28.796170+0100 ubuntu1404esp rger - [timeQuality tzKnown="1" isSynced="1" syncAccuracy="27500"] test
2015-03-05lib/monotonic: fix compiler warningsKarel Zak1-0/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-05agetty: support /usr/lib/os-release tooKarel Zak3-7/+13
http://www.freedesktop.org/software/systemd/man/os-release.html The file /etc/os-release takes precedence over /usr/lib/os-release. Applications should check for the former, and exclusively use its data if it exists, and only fall back to /usr/lib/os-release if it is missing. Reported-by: Dimitri John Ledkov <dimitri.j.ledkov@intel.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-05Merge branch 'logger-fix-rfc5424-timestamp' of ↵Karel Zak1-2/+6
https://github.com/rgerhards/util-linux * 'logger-fix-rfc5424-timestamp' of https://github.com/rgerhards/util-linux: logger: fix invalid timestamp in rfc5425 format
2015-03-05tailf: use size_t and fwrite()Karel Zak1-18/+14
Let's use size_t for number of output lines and use fwrite() rather than while() { putchar() }; Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-05flock: fix timeout handler pointer usageKarel Zak2-3/+5
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-05whereis: make "-BMS <dir> -f" more obvious in usage()Karel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-05logger: fix -i argument parsing regressionSami Kerola2-5/+13
With earlier logger it's possible to combine the option -i with other options, such as -s. But currently: $:~> logger -is logger: failed to parse id: 's' The changed behaviour breaks existing scripts like dhcpcd-run-hooks from dhcpcd. Broken-since: aab5b44405b9a6ada92e419e5a84cc0d1d4afee9 Reference: http://comments.gmane.org/gmane.linux.utilities.util-linux-ng/9683 Reported-by: Juergen Daubert <jue@jue.li> Reviewed-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-03-05tailf: ensure file argument really is a fileSami Kerola1-1/+2
The tailf(1) never worked very well with block or character devices, sockets, fifos and such. Now after mmap() is used to find last lines even the little command used to work for example pipes is broken, so test the tailf is asked to follow a file and when not fail. That said symlinks are OK, as long they point to a file. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-03-05tailf: do not allow minus signed last lines argumentSami Kerola1-11/+13
Before mmap() the command behavior was not completely correct, as demonstrated below, and after the mmap() it tried to print some eighteen quintillion lines. $ tailf -n-1 x tailf: cannot allocate 18446744073709543424 bytes: Cannot allocate memory Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-03-05tailf: count last lines correctly at initial print outSami Kerola1-41/+36
When last lines happen to be greater than string buffer size for fgets() the number of printed lines resulted to too few. To avoid miscounts due insufficient buffer size use mmap() to map the whole file and rewind until requested number of new lines is found. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-03-05tunelp: use parse_switch()Sami Kerola1-16/+5
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-03-05flock: improve timeout handlingSami Kerola7-44/+59
Signal ALRM raised by the timer, and the timer only, will be considered as a timeout criteria. Secondly time interval is made to use monotonic clock. Documentation of ITIMER_REAL is unclear whether that time is affected various sources of clock skew, or does it even tick when system is suspended. Reviewed-by: Karel Zak <kzak@redhat.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-03-04logger: fix invalid timestamp in rfc5425 formatRainer Gerhards1-2/+6
The timestamp is written as 2015-03-04T15:02:02.566782+0100 unfortunately, this is not an RFC3339 timestamp as demanded by rfc5424. The colon in the time offset field is missing. The correct timestamp is 2015-03-04T15:02:02.566782+01:00 (Note "+0100" vs. "+01:00")
2015-03-03flock: add --verbose optionSami Kerola3-4/+35
Jenkins script jobs using flock are a great example of a situation in which one may want an automation to be verbose, so that when unexpected events happen there is more hints in logs. Reviewed-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-03-03whereis: tell when mandatory option is missingSami Kerola1-1/+11
The <dirs> list is terminated by any arbitrary option, but to be simple when none is specified complain about -f being missing. Reviewed-by: Benno Schulenberg <bensberg@justemail.net> Reviewed-by: Karel Zak <kzak@redhat.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-03-03build-sys: add --enable-usrdir-pathKarel Zak2-2/+22
The directories /{sbin,bin} are symliks to /usr/{sbin,bin} on many systems. This patch add new ./configure option to remove the non-usr paths from the default $PATH environment variable. The default $PATH is hardcoded in login(1) and can be overwritten by /etc/login.defs. default: ./test_pathnames | grep DEFPATH _PATH_DEFPATH /usr/local/bin:/bin:/usr/bin _PATH_DEFPATH_ROOT /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin --enable-usrdir-path: ./test_pathnames | grep DEFPATH _PATH_DEFPATH /usr/local/bin:/usr/bin _PATH_DEFPATH_ROOT /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin This patch does not modify install paths, you still have to care about --{bin,lib}dir configure options. Signed-off-by: Karel Zak <kzak@redhat.com>
2015-03-02libfdisk: add {first,last}-lba header to sfdisk scritpsKarel Zak2-10/+94
The current sfdisk does not allow to create partition that starts before the default libfdisk First LBA (~1MiB). It means that # sfdisk --dump /dev/sda > foo # sfdisk /dev/sdb < foo does not work on systems where 1st partition does not start at offset 2048. This patch add new headers to scripts to inform libfdisk about different First/Last LBA ranges. For example: label: gpt first-lba: 34 allows to override the library default. Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-28zfs: make less syscallsMichal Humpula1-37/+58
2015-02-27docs: fstab(5) grammar / English fixes, and some other updatesPeter Cordes1-41/+58
I proofread the whole thing. I fixed everything that I thought could use improvement. various grammar and man page style-guide fixes (commas, word order, etc.). Reworded a couple things to hopefully make it clear to someone that didn't already know about fstab. Re-ordered the intro paragraphs for easier skimming. And added an example line. Expanded on a couple things other things. Tightened up the wording in some other places to get the point across faster and in less space. Thanks to Benno Schulenberg <bensberg@justemail.net> for several improvements. Signed-off-by: Peter Cordes <peter@cordes.ca>
2015-02-27docs: fix some spelling errors and typos in man pagesBill Pemberton8-8/+8
runuser.1: fix spelling implemenation -> implementation scriptreplay.1: fix spelling overide -> override unshare.1: fix spelling permamently -> permanently last.1: fix spelling preferrable -> preferable lslogins.1: fix spelling priviliges -> privileges hwclock.8.in: fix spelling transfered -> transferred prlimit.1: fix typo umlimited -> unlimited agetty.8: fix typo unnsupported -> unsupported Signed-off-by: Bill Pemberton <wfp5p@worldbroken.com>
2015-02-27docs: update TODOKarel Zak1-4/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-27lib/colors: use libtinfo to check terminal capabilityKarel Zak8-13/+57
The current implementation assumes that all terminals supports colors and users are forcet to use terminal-colors.d/ to disable colors for some terminals. This patch checks for maximal supported colors for the current terminal and colors are automatically disabled for terminals like vt100. The patch moves lib/colors.c from libcommon.la to libtcolors.la to avoid collisions with another utils. Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-26Merge branch 'fixes' of https://github.com/rudimeier/util-linuxKarel Zak1-2/+2
* 'fixes' of https://github.com/rudimeier/util-linux: logger: link libsystemd-daemon.so
2015-02-25blkid: make zfs detection more robustMichal Humpula1-15/+27
Try to use all the possible uberblock locations.
2015-02-25colors: cleanup man pages, add hint to usage()Karel Zak10-25/+35
cfdisk, fdisk, calm dmesg and hexdump Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-25sfdisk: add missing --colorKarel Zak2-3/+40
The util already support lib/colors.c stuff, but without command line option. Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-25lib/colors: add USAGE_COLORS_DEFAULTKarel Zak1-0/+7
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-25build-sys: add --disable-colors-defaultKarel Zak2-2/+21
The current util-linux is to have enabled colorized outputs by default, this default behavior is possible to change by new configure option --disable-colors-default. Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-24logger: link libsystemd-daemon.soRuediger Meier1-2/+2
Noticed on openSUSE 13.1: util-linux-2.26/misc-utils/logger.c:735: undefined reference to `sd_booted' Introduced in d77dc29e. CC: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2015-02-24logger: move /dev/log to pathnames.hSami Kerola2-1/+5
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-02-24rpmatch: use symbolic value when evaluation return codesSami Kerola6-9/+13
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-02-24eject: use parse_switch()Sami Kerola1-12/+4
[kzak@redhat.com: - use extended parse_switch()] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-24lib/strutils: extend parse_switch() to accept more optionsKarel Zak3-19/+49
* allow to specify more 0|1 pairs * allow to specify error message Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-24lib/strutils: move parse_switch() from setterm(1) to librarySami Kerola3-16/+10
To allow sharing the code with other utilities. Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-24tunelp: remove unnecessary preprocessor directivesSami Kerola1-8/+0
The lp.h included earlier in the tunelp.c has the definitions that were checked, so these statements could have not been false and such impossible conditions does not need to be checked. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-02-24tunelp: remove get_val() in favour of strtol_or_err()Sami Kerola2-14/+9
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-02-24prlimit: tell in --verbose output which pid got the new limitSami Kerola1-1/+2
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-02-24libblkid: cleanup names, don't copy probing resultsKarel Zak5-68/+100
* cleanup function and variable names (s/vals/values/) * in "safe probe" mode libblkid copies probing result from the first attempt, this is unnecessary, with values list we can just move values to another list rather than copy all. * add new debug messages Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-24libblkid: make probing data structures more dynamicOndrej Oprala5-190/+273
* replace static probing result array with list * use allocated buffers for probing result variables [kzak@redhat.com: - rename some functions - clean up \0 terminator usage in variables - remove never used code to convert UUID to lower-case - remove possible memory leaks on errors] Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-19docs: add terminal-colors requests to TODOKarel Zak1-0/+8
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-19tools: add libfdisk docs to kernel.org release generatorKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-19build-sys: release++ (v2.26)v2.26Karel Zak2-1/+5
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-19docs: update v2.26-ReleaseNotesKarel Zak1-1/+50
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-19docs: update AUTHORS fileKarel Zak1-0/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-19po: merge changesKarel Zak27-10970/+11267
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-19po: update vi.po (from translationproject.org)Trần Ngọc Quân1-939/+762
2015-02-19po: update uk.po (from translationproject.org)Yuri Chornoivan1-105/+65
2015-02-19po: update pl.po (from translationproject.org)Jakub Bogusz1-169/+70
2015-02-19po: update nl.po (from translationproject.org)Benno Schulenberg1-286/+212
2015-02-19po: update fr.po (from translationproject.org)David Prévot1-783/+638
2015-02-19po: update es.po (from translationproject.org)Antonio Ceballos Roa1-207/+152
2015-02-19po: update de.po (from translationproject.org)Mario Blättermann1-164/+80
2015-02-19po: update da.po (from translationproject.org)Joe Hansen1-3794/+1008
2015-02-19po: update cs.po (from translationproject.org)Petr Písař1-775/+641
2015-02-19libfdisk: fix fdisk_partition_get_parent() docsKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-19tests: scsi_debug workaroundKarel Zak1-0/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-19docs: add cfdisk auto-sort to TODO fileKarel Zak1-0/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-19libblkid: set SBMAGIC for nilfs2Karel Zak1-1/+11
Reported-by: Mike Fleetwood <mike.fleetwood@googlemail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-19setarch: print error when command runs without argumentsSami Kerola1-1/+1
$ ./setarch Segmentation fault (core dumped) $ coredumpctl gdb ... Program terminated with signal SIGSEGV, Segmentation fault. 301 if (*argv[1] != '-') { Reference: 5edb0ea6bbd57dd916417737f98c9109dc1ecb5b Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-02-19tests: improve some wordings of the outputBenno Schulenberg1-3/+3
For one, replace the puzzlingly stern imperative "IGNORE" with the simple and light-hearted and descriptive "SKIPPED". Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-19Merge branch 'hwman2' of https://github.com/jwpi/util-linuxKarel Zak0-0/+0
* 'hwman2' of https://github.com/jwpi/util-linux: hwclock: improve man-page language
2015-02-19hwclock: improve man-page languageJ William Piggott1-3/+4
Signed-off-by: J William Piggott <elseifthen@gmx.com>
2015-02-16libmount: remove assert(arg) from public functionsKarel Zak10-238/+28
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-16libsmartcols: remove assert(arg) from public functionsKarel Zak5-103/+3
Reported-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-16hwclock: improve man-page languageJ William Piggott1-3/+4
Signed-off-by: J William Piggott <elseifthen@gmx.com>
2015-02-16libmount: improve remount logicKarel Zak2-3/+5
* fix fs type detection for remount * parse mtab only for remount and umount Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-16libmount: add --enable-libmount-force-mountinfoKarel Zak3-1/+17
The default libmount mtab management depends on mtan symlink. If the symlink exists than libmount parses /proc/self/mountinfo, otherwise it parses regular classic /etc/mtab. This is backwardly compatible and transparent solution. Unfortunately, this is not robust enough because some broken init scripts or 3-party mount helpers may remove the symlink and create regular mtab file. This is pretty bad if initd (systemd) depends on libmount. Fortunately we known that mtab is absolutely unwanted on some distros, so it's fine too ignore mtab at all and don't care about the symlink. Reported-by: Martin Pitt <martin.pitt@ubuntu.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-16hwclock: man-page errataJ William Piggott1-5/+5
Professor Eggert, maintainer of the tz database, reviewed the new POSIX vs 'RIGHT' man-page section and suggested the following corrections. Correct the subdirectory names and remove IANA from the name of the Time Zone Database. Signed-off-by: J William Piggott <elseifthen@gmx.com>
2015-02-16logger: add --socket-errors compatibility optionSami Kerola2-12/+80
Hello, Depending viewpoint this change is either regression fix, or re-regression in context of none-systemd init. I ack the change is sent very late to be part of v2.26, but then again the excess noise was found only because of -rc1 was tested in sysvinit environment. IMHO it would contradict purpose of having rc's if faults will not lead to fixes. I also want to point out the sysvinit scripts are broken, not the logger(1), but getting them corrected is practically impossible. Assuming sysvinit script are further developed by various teams and distributions who maintain them they should use --socket-error=on in future, and write scripts that pass without noise. Meanwhile trying to be clever when to silence errors seems like a reasonable thing to do. --->8---- From: Sami Kerola <kerolasa@iki.fi> Date: Sat, 14 Feb 2015 19:05:55 +0000 Subject: [PATCH] logger: add --socket-errors compatibility option Now when logger(1) has stopped using openlog() for Unix sockets, in commit mentioned in reference, the lack of /dev/log detected will report error accordingly. According to Gabriele Balducci this makes sysvinit style boot scripts to print a lot of errors. So make the logger to detect whether it should be in compatibility mode, and not report errors if logging device is missing. That imitates behavior of glibc openlog(). To allow full control to users the /dev/log error messages can be forced to on or off. The automatic error messaging is explained in manual page. Reference: 1d57503378bdcd838365d625f6d2d0a09da9c29d Reported-by: Gabriele Balducci <balducci@units.it> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-02-16sfdisk: include rpmatch.hSami Kerola1-0/+1
Some libc's do not have rpmatch(), and they need the workaround in the header file. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-02-16fsck: fix compiler warning [-Wlogical-not-parentheses]Karel Zak1-3/+2
Reported-by: Ruediger Meier <sweet_f_a@gmx.de> Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-16script.1: Improve documentation of non-interactive behaviorStanislav Brabec1-1/+7
- use exit in .profile to avoid non-logged session after typing "exit" - document that script can read more from stdin than the command inside: echo -e 'script -c "read a b ; echo a=\$a b=\$b >defs.sh"\n1 2\necho Done' | sh Script started, file is typescript 1 2 echo Done Script done, file is typescript
2015-02-12script: no logging for non-interactive shellsStanislav Brabec1-0/+20
Karel Zak wrote: > Would be better to learn people to fix their shell initialization > files to not call script(1) for non-interactive sessions? It makes sense. From 8fff32e65399ae07f70e12568d4d5278725673a7 Mon Sep 17 00:00:00 2001 From: Stanislav Brabec <sbrabec@suse.cz> Date: Wed, 11 Feb 2015 15:02:10 +0100 Subject: [PATCH] script.1: Document behavior in non-interactive shells And discourage users from such use.
2015-02-12libmount: read utab always when read mtab from /procKarel Zak3-3/+21
Now libmount reads utab only when mtab filename is no explicitly specified, but for example: mnt_table_parse_mtab(tb, "/proc/self/mountinfo"); ignores utab because filename points to regular file. This is mistake, we wnat to read utab always when we read mount table from kernel. Reported-by: Martin Pitt <martin.pitt@ubuntu.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-12findmnt: don't parse mountinfo twiceKarel Zak1-0/+23
We parse /proc/self/mountinfo to initialize cache targets, this step is unnecessary if --mtab reads all from kernel. Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-11lscpu: add s-Par supportBenjamin Romer2-0/+4
Adds support for the s-Par firmware's hypervisor leaf. Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
2015-02-10sulogin, hwclock: use xusleep() instead of usleep()Sami Kerola2-2/+2
As said in include/c.h the usleep() is marked as obsolete, so do the same that most of the other util-linux calls do with this interface. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-02-10rename: use strrchr() instead of rindex()Sami Kerola1-1/+1
The rindex() is marked legacy in POSIX.1-2001, and apparently Androids bionic libc does not even have it so it is best not to use the legacy interface. Reference: https://lists.gnu.org/archive/html/weechat-dev/2014-02/msg00004.html Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-02-10libfdisk: add some docsKarel Zak2-9/+84
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-10libfdisk: ignore whole-disk partition when check orderKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-10libfdisk: add fdisk_partition_is_wholedisk()Karel Zak3-0/+8
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-10cfdisk: improve create-label UIKarel Zak1-11/+15
Reported-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-10textual: sort the options in the usage text of sfdisk alphabeticallyBenno Schulenberg1-7/+7
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-10docs: sort the options in the man page of sfdisk alphabeticallyBenno Schulenberg1-18/+18
Also fix some typos. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-10cfdisk: also recognize a lowercase 'l' for loading a script fileBenno Schulenberg1-0/+1
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-10cfdisk: do not startle the user with a false message when --zero is usedBenno Schulenberg1-2/+3
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-10Merge branch 'hwman' of github.com:jwpi/util-linuxKarel Zak1-1/+13
* 'hwman' of github.com:jwpi/util-linux: hwclock: add checking kernel vars to man-page hwclock: Add ntptime reference to man-page
2015-02-10Revert "libmount: MNT_OMODE_FORCE usage"Karel Zak1-3/+2
This reverts commit 6f41c5de40629c71a8f79e9be4b94f9a75f9ad21.
2015-02-10setarch: fix typo (missing braces) for ppcleRuediger Meier1-3/+3
Introduced in 77eb13b9, noticed on ppc64le. CC: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2015-02-10cal: use int64_t instead of longRuediger Meier1-1/+2
Followup 26f3a386, bigyear test was broken on ppc. CC: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2015-02-10Fix "Script started" buffering raceStanislav Brabec1-0/+1
script -c "echo Hallo World" </dev/null >script.log ; cat script.log Before: Hallo World Script started, file is typescript Script started, file is typescript Script done, file is typescript After: Script started, file is typescript Hallo World Script done, file is typescript
2015-02-10libmount: MNT_OMODE_FORCE usageFridolin Pokorny1-2/+3
Hi, I have found out that libmount does not respect MNT_OMODE_FORCE mode. I don't see any usage in sources and libmount does not respect this mode when calling library functions. I'm proposing a patch to fix this. Have a nice day! Fridolin Pokorny
2015-02-10docs: fix two paths of the v2.20-ReleaseNotesBenno Schulenberg1-2/+2
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-10docs: improve the grammar of the "see the changelog" phraseBenno Schulenberg1-45/+45
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-10docs: retrofit the dates on some old release announcementsBenno Schulenberg1-11/+7
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-10docs: fix the link to the rc1 changelogBenno Schulenberg1-1/+1
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-10fsck: use monotonic time to fsck run time measurementSami Kerola2-9/+9
Earlier use of gettimeofday() resulted to wrong measurement if system administrator did manual time changes, or NTP or adjtime(3) adjusment happen during fsck run. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-02-09lscpu: fix typos in ppc codeKarel Zak1-3/+3
Reported-by: David Gibson <dgibson@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-08hwclock: add checking kernel vars to man-pageJ William Piggott1-0/+5
How to check kernel clock variables with either adjtimex or ntptime added to man-page. Signed-off-by: J William Piggott <elseifthen@gmx.com>
2015-02-07hwclock: Add ntptime reference to man-pageJ William Piggott1-1/+8
Some distros do not have an adjtimex package; ntptime can be used as an alternate. Signed-off-by: J William Piggott <elseifthen@gmx.com>
2015-02-06lscpu: cleanup ppc virtualization detectionKarel Zak1-20/+13
References: https://bugzilla.redhat.com/show_bug.cgi?id=1151604 Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-06libfdisk: fix compiler warningKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-06lscpu: fix compiler error [-Werror=format-security]Karel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-06libfdisk: make code more readableKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-05lscpu: detect also QEMU emulation on ppcKarel Zak1-19/+37
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-04build-sys: release++ (v2.26-rc2)v2.26-rc2Karel Zak2-2/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-04docs: update v2.26-ReleaseNotesKarel Zak1-2/+102
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-04docs: update AUTHORS fileKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-04po: merge changesKarel Zak27-23627/+24156
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-04po: update uk.po (from translationproject.org)Yuri Chornoivan1-674/+533
2015-02-04po: update pl.po (from translationproject.org)Jakub Bogusz1-1600/+534
2015-02-04po: update nl.po (from translationproject.org)Benno Schulenberg1-483/+339
2015-02-04po: update ja.po (from translationproject.org)Takeshi Hamasaki1-206/+550
2015-02-04po: update es.po (from translationproject.org)Antonio Ceballos Roa1-915/+864
2015-02-04po: update de.po (from translationproject.org)Mario Blättermann1-5544/+715
2015-02-04tests: update build-sys testsKarel Zak18-50/+50
The systemd libs are merged into one shared library only. Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03tests: don't hardcode devnamesKarel Zak3-80/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03libmount: fix type pointer usageKarel Zak1-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03libfdisk: grain is in bytes, fix previous patchesKarel Zak2-2/+5
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03tests: update MBR sort testKarel Zak1-0/+2
Now libfdisk writes empty disk labels too. See commit 3d919d95838241aa7ddfe8df7d17ea0fc7d0f5e7. Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03libfdisk: (dos) make a helpful message fit within 80 charactersBenno Schulenberg1-5/+3
Also add a hint for translators. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-03libfdisk: don't align very small partitionsKarel Zak2-3/+11
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03cfdisk: improve ui_get_size() warningsKarel Zak1-5/+10
- don't reset to default after error - clean previous warnings after users response - remove unnecessary warning Reported-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03libfdisk: fix issues with very small partitionsKarel Zak3-7/+13
- cfdisk: minimal partitions size is 1 sector - dos: when align last sector then don't set partition size to zero for very small partitions. - don't ignore tiny partitions before free space when define free-space start offset - improve some debug messages Reported-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03libfdisk: (dos) write new empty label tooKarel Zak1-2/+10
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03docs: add new cfdisk request to TODO fileKarel Zak1-0/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03docs: add info about *_DEBUG= to man pagesKarel Zak4-0/+9
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03cfdisk: print "wrong order" warning after startup, colorize info messagesKarel Zak1-2/+9
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03cfdisk: force main menu to default to Quit/New menu itemsKarel Zak1-8/+13
Reported-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-02cfdisk: disable some KEY_* in ui_get_wqstring()Karel Zak1-0/+9
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-02cfdisk: default to Quit menu itemKarel Zak1-0/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-02libfdisk: (dos) fix logical partitions errors handlingKarel Zak1-5/+10
The current code in add_partition() de-increment number of partitions on error when logical partition requested and add_logical() does the same. The result is mess in partitions array. The another fixed issue is that add_logical() is called if all primary partitions are already used although 'pa->start' (the template) is explicitly defined outside the extended partition. The right behavior is to end with error message. Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-02textual: grammarize and harmonize the stat error messageBenno Schulenberg21-25/+25
The message "stat failed %s" seems to say that stat() failed to do something, or failed to pass a test, but of course it means that the statting of something failed. So say so. Also make two very similar messages equal to this one. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-02docs: mention nice(1) in renice(1) manual pageSami Kerola1-0/+1
Addresses: https://bugs.debian.org/260984 Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-02-02mount: Further FAT mount option updateJan Kara1-5/+44
Add some mount options mentioned in Documentation/filesystems/vfat.txt. Signed-off-by: Jan Kara <jack@suse.cz>
2015-02-02mount: Add documentation of FAT mount option time_offsetJan Kara1-0/+12
Signed-off-by: Jan Kara <jack@suse.cz>
2015-02-02whereis: lookup also info docsKarel Zak2-4/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-02sfdisk: actually translate the table headers by calling gettext()Benno Schulenberg1-1/+1
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-02docs: add the Sort command to the man page of cfdiskBenno Schulenberg1-15/+23
Also sort T into its proper position, improve the wording of U, and add the Left and Right arrow keys. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-02build-sys: improve wording and punctuation of several messagesBenno Schulenberg1-9/+9
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-02libfdisk: actually translate the human-readable name of the partition typeBenno Schulenberg1-1/+1
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-02lib/strutils: accept not just 'B' but also lowercase 'b' in a size suffixBenno Schulenberg1-2/+2
Just line 'M' and 'm' are accepted for mega, 'G' and 'g' for giga, 'S' and 's' for sectors, and so on. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-02cfdisk: make '?' an alias of 'h', to also show the help screenBenno Schulenberg1-0/+1
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-02cfdisk: punctuate the bottombar messages consistentlyBenno Schulenberg1-6/+6
Also adjust the style of two comments and add another. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-02cfdisk: improve wording and consistency of the size warningsBenno Schulenberg1-2/+2
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-02cfdisk: remove the mistaken B from the explanation of size suffixesBenno Schulenberg1-2/+2
Also reword the explanation to be clearer. It is not necessary to be complete -- that is what the man page is for. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-02libfdisk: (dos) delete also logical with extendedKarel Zak1-1/+8
deleting an extended partition with cfdisk leaves its contained partitions in existence Reported-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-29wipefs: fix FD leak on error [coverity scan]Karel Zak1-2/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-29lsblk: implement SOMEOK (=64) return codeKarel Zak2-13/+38
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-29findmnt: fix mem leaks [coverity scan]Karel Zak1-10/+16
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-29utmpdump: don't pass parameter of type "struct utmp" by value [coverity scan]Karel Zak1-15/+15
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-29sulogin: make sure that fallback FD is valid [coverity scan]Karel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-29su: fix mem leak in modify_environ() [coverity scan]Karel Zak1-2/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-29login: fix mem leak in init_environ() [coverity scan]Karel Zak1-3/+5
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-29libsmartcols: remove unnecessary check [coverity scan]Karel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-29libmount: fix possible mem leak in has_utab_entry() [coverity scan]Karel Zak1-3/+10
Signed-off-by: Karel Zak <kzak@redhat.com>