Changes between v2.26 and v2.26.1 -------------------------------------------- commit 34760e62e0d5a25262a6aa801b2f1df61216363f Author: Karel Zak Date: Fri Mar 13 14:11:37 2015 +0100 build-sys: release++ (v2.26.1) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) commit ab7989a8f5468f2efc8ea18e190d1fcba6da0ac7 Author: Karel Zak Date: Fri Mar 13 14:06:11 2015 +0100 docs: update v2.26.1-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.26.1-ReleaseNotes | 68 +++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) commit 0761172a8792b97a707b1fb42a610703dab5c783 Author: Karel Zak Date: Fri Mar 13 13:53:16 2015 +0100 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) commit e509837cf6829c3da3aebceb8ad2d91af3954122 Author: Karel Zak Date: Fri Mar 13 13:51:33 2015 +0100 po: merge changes Signed-off-by: Karel Zak po/ca.po | 973 ++++++++++++++++++++++++++++------------------------- po/cs.po | 975 ++++++++++++++++++++++++++++------------------------- po/da.po | 967 ++++++++++++++++++++++++++++------------------------- po/de.po | 967 ++++++++++++++++++++++++++++------------------------- po/es.po | 970 ++++++++++++++++++++++++++++------------------------- po/et.po | 972 ++++++++++++++++++++++++++++------------------------- po/eu.po | 971 ++++++++++++++++++++++++++++------------------------- po/fi.po | 973 ++++++++++++++++++++++++++++------------------------- po/fr.po | 977 ++++++++++++++++++++++++++++------------------------- po/gl.po | 969 ++++++++++++++++++++++++++++------------------------- po/hr.po | 963 ++++++++++++++++++++++++++++------------------------- po/hu.po | 973 ++++++++++++++++++++++++++++------------------------- po/id.po | 973 ++++++++++++++++++++++++++++------------------------- po/it.po | 973 ++++++++++++++++++++++++++++------------------------- po/ja.po | 966 ++++++++++++++++++++++++++++------------------------- po/nl.po | 972 ++++++++++++++++++++++++++++------------------------- po/pl.po | 967 ++++++++++++++++++++++++++++------------------------- po/pt_BR.po | 971 ++++++++++++++++++++++++++++------------------------- po/ru.po | 968 ++++++++++++++++++++++++++++------------------------- po/sl.po | 973 ++++++++++++++++++++++++++++------------------------- po/sv.po | 973 ++++++++++++++++++++++++++++------------------------- po/tr.po | 973 ++++++++++++++++++++++++++++------------------------- po/uk.po | 972 ++++++++++++++++++++++++++++------------------------- po/util-linux.pot | 957 +++++++++++++++++++++++++++------------------------- po/vi.po | 979 +++++++++++++++++++++++++++++------------------------- po/zh_CN.po | 966 ++++++++++++++++++++++++++++------------------------- po/zh_TW.po | 972 ++++++++++++++++++++++++++++------------------------- 27 files changed, 13855 insertions(+), 12350 deletions(-) commit 6caffaab9d27af0479be6088ac902b862f4ae491 Author: Karel Zak Date: Fri Mar 13 13:35:20 2015 +0100 logger: use xstrdup() Signed-off-by: Karel Zak misc-utils/logger.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 03832f6db9ab8cb8d3b9f31e0a515c4665c103ff Author: Ruediger Meier Date: Thu Mar 12 19:08:26 2015 +0100 tests: fix fdisk/bsd for ppc64le Actually Aurelien's patch a80886e9 should have addressed this already because it's the case LE, BSD_LABELSECTOR = 0, BSD_LABELOFFSET = 64. I've asked about this on mailing list but couldn't get more informations. Thread "test fdisk/bsd on exotic archs": http://comments.gmane.org/gmane.linux.utilities.util-linux-ng/10621 Signed-off-by: Ruediger Meier tests/ts/fdisk/bsd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit e4320b584e5ef04683ce26b1d63348b9abd315fd Author: Ruediger Meier Date: Thu Mar 12 19:08:25 2015 +0100 tests: improve readability for fdisk/bsd Signed-off-by: Ruediger Meier tests/ts/fdisk/bsd | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) commit c016a9239503e6278d8e2d276ac5ffa36f57bd3a Author: Karel Zak Date: Fri Mar 13 11:13:26 2015 +0100 last: fix utmplist usage last(1) uses a global list of entries, this is unnecessary and it's also mistake because the pointer to the list is not set to NULL when last(1) opens another utmp file. For example: last -f /var/log/wtmp -f /var/log/wtmp-20150220 ends with unexpected free() call or sometimes with never ending loop. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1201033 Signed-off-by: Karel Zak login-utils/last.c | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) commit befb2f7914a48deec108f1a046ff0fd0a065bef6 Author: Karel Zak Date: Thu Mar 12 11:50:07 2015 +0100 cal: care about setuprterm() result References: https://bugzilla.suse.com/show_bug.cgi?id=903440 Signed-off-by: Karel Zak misc-utils/cal.c | 59 ++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 38 insertions(+), 21 deletions(-) commit 6c778514af8f0a5efcbffa950cebd4c394a27956 Author: Karel Zak Date: Wed Mar 11 11:38:07 2015 +0100 libmount: mark overlay as pseudo-FS Signed-off-by: Karel Zak libmount/src/utils.c | 1 + 1 file changed, 1 insertion(+) commit 2c9486fac2b575193fbac55f00ae857328b573e5 Author: Karel Zak Date: Wed Mar 11 11:11:19 2015 +0100 libmount: add mnt_table_get_fs_root() to header file Signed-off-by: Karel Zak libmount/src/mountP.h | 4 ++++ 1 file changed, 4 insertions(+) commit 0a19619ba7fc452f0a276a880599d657d14efc6d Author: Karel Zak Date: Wed Mar 11 10:58:45 2015 +0100 tests: update sfdisk --dump test Signed-off-by: Karel Zak tests/expected/sfdisk/gpt-write-dump | 2 ++ 1 file changed, 2 insertions(+) commit 77d84f39f1606b6f70dd37639fd50e674bde00c9 Author: Karel Zak Date: Wed Mar 11 10:51:13 2015 +0100 logger: small change in usage() Signed-off-by: Karel Zak misc-utils/logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c4d9e139958c0a39324c8f6ab57e4d299df4a45e Author: Rainer Gerhards Date: Tue Mar 10 17:48:05 2015 +0100 logger man page: fix typo misc-utils/logger.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit b5b449b59b3ee5b17a769c94847ac932d5840b24 Author: Rainer Gerhards Date: Tue Mar 10 17:47:30 2015 +0100 logger: add --msgid option, permits to set RFC5424 MSGID field misc-utils/logger.1 | 6 ++++++ misc-utils/logger.c | 17 +++++++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) commit 3e2c88700a05eb40f52b8e62fc76c34ad33cf402 Author: Rainer Gerhards Date: Tue Mar 10 17:26:14 2015 +0100 logger: fix multiple format bugs in rfc5424 formatter 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. misc-utils/logger.c | 78 ++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 57 insertions(+), 21 deletions(-) commit 58c1b9949dab8c41bb7392ef2930430c25ceb266 Author: Rainer Gerhards Date: Tue Mar 10 14:13:38 2015 +0100 silence compiler warning This is primarily cosmetic, albeit it also provides an only very slight improvement in compile time error checking. include/xalloc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 93f9a8838963a1e6dad496c658954c41d3c854fd Author: Karel Zak Date: Tue Mar 10 13:35:56 2015 +0100 libmount: cleanup fs root detection code Signed-off-by: Karel Zak libmount/src/mountP.h | 5 ---- libmount/src/tab.c | 32 ++++++++++++++++++++----- libmount/src/utils.c | 34 --------------------------- tests/expected/libmount/utils-fs-root | 1 - tests/expected/libmount/utils-fs-root-subdir | 1 - tests/expected/libmount/utils-fs-root-subdir2 | 1 - tests/ts/libmount/utils | 12 ---------- 7 files changed, 26 insertions(+), 60 deletions(-) commit 48367e2d9921d696dda937038cf2da6052590794 Author: Karel Zak Date: Tue Mar 10 12:51:44 2015 +0100 findmnt: don't rely on st_dev for --target 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 libmount/src/utils.c | 4 ++++ misc-utils/findmnt.8 | 8 ++++++-- misc-utils/findmnt.c | 18 ++++++++++-------- 3 files changed, 20 insertions(+), 10 deletions(-) commit 14e6f4a5397de4b688315f6177d9f0ac8c8af774 Author: Karel Zak Date: Tue Mar 10 11:37:45 2015 +0100 logger: check for ntp_gettime() rather than for timex.h 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 configure.ac | 1 + misc-utils/logger.c | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) commit 82f658c68ca6cb67bdf7bf195b96f9664e0a3a78 Author: Rainer Gerhards Date: Sat Mar 7 12:14:21 2015 +0100 logger: add --skip-empty to prevent logging empty lines 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 bash-completion/logger | 2 +- misc-utils/logger.1 | 8 ++++++++ misc-utils/logger.c | 14 +++++++++++--- 3 files changed, 20 insertions(+), 4 deletions(-) commit e0610aa83114c1521e52dd099d3180d14dcff34e Author: Rainer Gerhards Date: Sat Mar 7 12:04:43 2015 +0100 logger man page: update --size doc now we have strict sizes Signed-off-by: Karel Zak misc-utils/logger.1 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) commit f1a52e176a553b6d17664c794352570363177db0 Author: Rainer Gerhards Date: Sat Mar 7 11:49:00 2015 +0100 logger: bugfix: missing sanity checks with --prio-prefix option 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 misc-utils/logger.c | 85 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 48 insertions(+), 37 deletions(-) commit 5d627e7fe6872c915e19431a96bb62448328ef33 Author: Rainer Gerhards Date: Fri Mar 6 18:52:26 2015 +0100 logger: refactor message generation 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 misc-utils/logger.c | 91 +++++++++++++++++++++++++++-------------------------- 1 file changed, 47 insertions(+), 44 deletions(-) commit 2a3b435d8ba7c6a5c26193102663d74abb74fcdb Author: Rainer Gerhards Date: Fri Mar 6 15:50:34 2015 +0100 logger: permit to send messages larger than 1024 characters 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 bash-completion/logger | 2 +- misc-utils/logger.1 | 15 +++++++++++++++ misc-utils/logger.c | 23 ++++++++++++++++------- 3 files changed, 32 insertions(+), 8 deletions(-) commit 393600eb84533b09e765266b65c20eda12656ec6 Author: Karel Zak Date: Mon Mar 9 12:45:52 2015 +0100 agetty: reload issue on --autologin --login-pause too The current "agetty --reload" implementation does not refresh issue file output on autologin. Let's support this use-case too. Reported-by: Sitsofe Wheeler Signed-off-by: Karel Zak term-utils/agetty.c | 171 ++++++++++++++++++++++++++++------------------------ 1 file changed, 92 insertions(+), 79 deletions(-) commit 4e93a1d3a54d519f4443aa869da3dafc4d9adb23 Author: Karel Zak Date: Mon Mar 9 12:26:55 2015 +0100 agetty: make sure that reload file exists 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 Signed-off-by: Karel Zak term-utils/agetty.c | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) commit 6ff0747b2657ed3b2fd6928ff36ce51127f63b8a Author: Rainer Gerhards Date: Fri Mar 6 12:32:12 2015 +0100 logger man page: bump man page date to current misc-utils/logger.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 37be4da558c6ae755c04eeeb2bd8c2a32a300bb7 Author: Rainer Gerhards Date: Fri Mar 6 12:30:56 2015 +0100 logger man page: fix some "syslog(3) routine" remnants misc-utils/logger.1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit d3d90df8b9d755671eaee179e3b66bc0198b9dc6 Author: Karel Zak Date: Fri Mar 6 12:15:23 2015 +0100 logger: use username as the default tag Reported-by: Rainer Gerhards Signed-off-by: Karel Zak misc-utils/logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 48bc4fd2a8535d71b72b01875ec0038c6b331f8b Author: Rainer Gerhards Date: Fri Mar 6 12:12:15 2015 +0100 logger: bugfix: tcp syslog framing is broken, -T unusable 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. misc-utils/logger.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) commit f52c992874e8461b4c121dc8f0573f73b88ddec6 Author: Rainer Gerhards Date: Fri Mar 6 11:51:31 2015 +0100 logger: refactor the way output is written 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. misc-utils/logger.c | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) commit 151898f26bde082bbb57370d90146c1286337917 Author: Karel Zak Date: Fri Mar 6 11:48:23 2015 +0100 logger: remove "interface to syslog(3)" from man page since v2.26 logger does not use syslog(3) anymore Reported-by: Rainer Gerhards Signed-off-by: Karel Zak misc-utils/logger.1 | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) commit d8fd74749a1e78927340b47dfe633fd777b7f9ef Author: Karel Zak Date: Fri Mar 6 11:27:16 2015 +0100 logger: fix whitespace and compiler warning [-Wunused-variable] 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 misc-utils/logger.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) commit 314f5a33b6da4ec760a1463305661e1ed9a28e55 Author: Karel Zak Date: Fri Mar 6 11:05:30 2015 +0100 logger: add comment Signed-off-by: Karel Zak misc-utils/logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d239040764ad0b7100ffb6151486b9b6d3c6b617 Author: Rainer Gerhards Date: Thu Mar 5 16:54:34 2015 +0100 logger: fix -p kern.* priority is accepted regression Pre 2.26, syslog(3) was used for local logging, and it did not accept kern.* priorities. This is re-enabled by the patch. misc-utils/logger.c | 2 ++ 1 file changed, 2 insertions(+) commit 23dd342403042789aec5687eb4d80990ec5b9304 Author: Rainer Gerhards Date: Thu Mar 5 16:44:03 2015 +0100 logger: messages are logged with kern.* priority by default 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 misc-utils/logger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c330264bd9ed2d5d92542302d98266b9919d16d9 Author: Rainer Gerhards Date: Thu Mar 5 15:20:50 2015 +0100 logger: fix invalid timestamp regression in local format 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. misc-utils/logger.c | 42 +++++++++++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 13 deletions(-) commit d9074f191e4a6057f51f3a0d4bd0973366e245e2 Author: Rainer Gerhards Date: Wed Mar 4 11:17:20 2015 +0100 logger: fix inconsistent format regression when logging locally 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 misc-utils/logger.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) commit 753f2807c9297d4226b7cfe44fd145f9e3e2b40b Author: Karel Zak Date: Thu Mar 5 12:25:28 2015 +0100 agetty: support /usr/lib/os-release too 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 Signed-off-by: Karel Zak include/pathnames.h | 4 +++- term-utils/agetty.8 | 7 ++++--- term-utils/agetty.c | 9 ++++++--- 3 files changed, 13 insertions(+), 7 deletions(-) commit 32881ca22daba4bff0520d150ef64b8b55036e73 Author: Sami Kerola Date: Fri Feb 20 19:42:34 2015 +0000 logger: fix -i argument parsing regression 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 Reviewed-by: Benno Schulenberg Signed-off-by: Sami Kerola misc-utils/logger.1 | 5 ++++- misc-utils/logger.c | 13 +++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) commit 9efc3268cef117afdfc5b7cab03e4f91b384c3a3 Author: Rainer Gerhards Date: Wed Mar 4 18:50:30 2015 +0100 logger: fix invalid timestamp in rfc5425 format 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") misc-utils/logger.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) commit ef70ccd914c51babf61685d0ea17d0cb7ce58c1c Author: Karel Zak Date: Mon Mar 2 13:58:23 2015 +0100 libfdisk: add {first,last}-lba header to sfdisk scritps 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 libfdisk/src/gpt.c | 81 ++++++++++++++++++++++++++++++++++++++++++++++----- libfdisk/src/script.c | 23 +++++++++++++-- 2 files changed, 94 insertions(+), 10 deletions(-) commit bf2a40ba26aa65df0873ce1d259e87927d1ff6e9 Author: Peter Cordes Date: Tue Feb 24 22:40:41 2015 -0400 docs: fstab(5) grammar / English fixes, and some other updates 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 for several improvements. Signed-off-by: Peter Cordes sys-utils/fstab.5 | 99 ++++++++++++++++++++++++++++++++----------------------- 1 file changed, 58 insertions(+), 41 deletions(-) commit 2c1694c79fcebc80f1d7dadd730709fb5781ae44 Author: Bill Pemberton Date: Wed Feb 25 09:07:59 2015 -0500 docs: fix some spelling errors and typos in man pages 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 login-utils/last.1 | 2 +- login-utils/lslogins.1 | 2 +- login-utils/runuser.1 | 2 +- sys-utils/hwclock.8.in | 2 +- sys-utils/prlimit.1 | 2 +- sys-utils/unshare.1 | 2 +- term-utils/agetty.8 | 2 +- term-utils/scriptreplay.1 | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) commit 66fa91d6f485d1605f4ce758ffa8be575a403921 Author: Karel Zak Date: Wed Feb 25 12:37:55 2015 +0100 colors: cleanup man pages, add hint to usage() cfdisk, fdisk, calm dmesg and hexdump Signed-off-by: Karel Zak Signed-off-by: Karel Zak disk-utils/cfdisk.8 | 7 ++++--- disk-utils/cfdisk.c | 6 ++++-- disk-utils/fdisk.8 | 6 ++++-- disk-utils/fdisk.c | 3 +++ misc-utils/cal.1 | 21 +++++++-------------- misc-utils/cal.c | 3 +++ sys-utils/dmesg.1 | 5 +++-- sys-utils/dmesg.c | 2 ++ text-utils/hexdump.1 | 5 +++-- text-utils/hexdump.c | 2 ++ 10 files changed, 35 insertions(+), 25 deletions(-) commit 3d3f623dbd30af1d4a1c326e17a40ff756135531 Author: Karel Zak Date: Wed Feb 25 12:35:45 2015 +0100 sfdisk: add missing --color The util already support lib/colors.c stuff, but without command line option. Signed-off-by: Karel Zak disk-utils/sfdisk.8 | 25 +++++++++++++++++++++++++ disk-utils/sfdisk.c | 18 +++++++++++++++--- 2 files changed, 40 insertions(+), 3 deletions(-) commit 805f7b88e233b63493f4aacbe8529e7e3422984c Author: Karel Zak Date: Wed Feb 25 12:35:05 2015 +0100 lib/colors: add USAGE_COLORS_DEFAULT Signed-off-by: Karel Zak include/colors.h | 7 +++++++ 1 file changed, 7 insertions(+) commit decbd34d6fa69e0f47bcaef565b9305a4bf3f08b Author: Karel Zak Date: Wed Feb 25 10:06:40 2015 +0100 build-sys: add --disable-colors-default 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 configure.ac | 10 ++++++++++ lib/colors.c | 13 +++++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) commit 6f1e158f9d108b47a8546fcbee1030b644ba58ed Author: Ruediger Meier Date: Tue Feb 24 16:26:00 2015 +0100 logger: link libsystemd-daemon.so 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 Signed-off-by: Ruediger Meier misc-utils/Makemodule.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 8f8b6e988b4d26e4c4c74f5fa5c68cb94da70ab5 Author: Sami Kerola Date: Sun Feb 22 14:41:45 2015 +0000 logger: move /dev/log to pathnames.h Signed-off-by: Sami Kerola include/pathnames.h | 3 +++ misc-utils/logger.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-)