Changes between v2.27-rc1 and v2.27-rc2 -------------------------------------------- commit 0e58e16936c3e0d98e43efec7ec17d25e82425a7 Author: Karel Zak Date: Mon Aug 24 12:38:48 2015 +0200 build-sys: release++ (v2.27-rc2) Signed-off-by: Karel Zak NEWS | 8 ++++++-- configure.ac | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) commit 5a2fee2def15a2d9023b4e38540cc520842996fd Author: Karel Zak Date: Mon Aug 24 12:37:13 2015 +0200 docs: update v2.27-ReleaseNotes Signed-off-by: Karel Zak Documentation/releases/v2.27-ReleaseNotes | 86 +++++++++++++++++++++++++++++-- 1 file changed, 83 insertions(+), 3 deletions(-) commit 8e79900b7f2844d8a5cc30016e88ed4884d497d6 Author: Karel Zak Date: Mon Aug 24 12:33:52 2015 +0200 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 3 +++ 1 file changed, 3 insertions(+) commit 540afa68ecea9ae21ba97a6afa3b5a179b313a46 Author: Karel Zak Date: Mon Aug 24 12:27:54 2015 +0200 po: merge changes Signed-off-by: Karel Zak po/ca.po | 1461 ++++++------ po/cs.po | 1525 ++++++------ po/da.po | 1525 ++++++------ po/de.po | 1531 ++++++------ po/es.po | 1527 ++++++------ po/et.po | 1451 ++++++------ po/eu.po | 1461 ++++++------ po/fi.po | 6507 +++++++++++++++++++++++++++++---------------------- po/fr.po | 1527 ++++++------ po/gl.po | 1460 ++++++------ po/hr.po | 1443 ++++++------ po/hu.po | 1461 ++++++------ po/id.po | 1461 ++++++------ po/it.po | 1454 ++++++------ po/ja.po | 6745 ++++++++++++++++++++++++++++++----------------------- po/nl.po | 1508 ++++++------ po/pl.po | 1525 ++++++------ po/pt_BR.po | 1514 ++++++------ po/ru.po | 1464 ++++++------ po/sl.po | 1461 ++++++------ po/sv.po | 1461 ++++++------ po/tr.po | 1461 ++++++------ po/uk.po | 1527 ++++++------ po/util-linux.pot | 1420 +++++------ po/vi.po | 1525 ++++++------ po/zh_CN.po | 1514 ++++++------ po/zh_TW.po | 1517 ++++++------ 27 files changed, 26610 insertions(+), 23826 deletions(-) commit 8164f783f2acbeb4487a3ffb8f7c649458a67562 Author: Takeshi Hamasaki Date: Mon Aug 24 12:23:20 2015 +0200 po: update ja.po (from translationproject.org) po/ja.po | 7267 +++++++++++++++++++++++++++----------------------------------- 1 file changed, 3155 insertions(+), 4112 deletions(-) commit 4f0fec5898013b72398142ec7db8c7c5dc5c7b1a Author: Lauri Nurmi Date: Mon Aug 24 12:23:20 2015 +0200 po: update fi.po (from translationproject.org) po/fi.po | 6661 +++++++++++++++++++++++++++----------------------------------- 1 file changed, 2847 insertions(+), 3814 deletions(-) commit 2a908d5e43b986d5b99ef4302e85c9ae6aa34a64 Author: Karel Zak Date: Mon Aug 24 12:17:35 2015 +0200 tests: update static build test Signed-off-by: Karel Zak tests/expected/build-sys/config-static | 2 ++ 1 file changed, 2 insertions(+) commit 6fe71fc2e850f0bdc6199e3cb209d75cfd944dc9 Author: Karel Zak Date: Mon Aug 24 11:40:19 2015 +0200 docs: add hint about chfn & chsh bug and thanks to qualys Signed-off-by: Karel Zak Documentation/releases/v2.27-ReleaseNotes | 8 ++++++++ 1 file changed, 8 insertions(+) commit 2dc8cfb9a8082c040305b2a73763a451c28cf44d Author: Philipp Marek Date: Tue Aug 18 14:07:49 2015 +0200 libblkid: added drbdmanage control volume detection. Signed-off-by: Karel Zak libblkid/src/Makemodule.am | 1 + libblkid/src/superblocks/drbdmanage.c | 92 +++++++++++++++++++++ libblkid/src/superblocks/superblocks.c | 1 + libblkid/src/superblocks/superblocks.h | 1 + .../blkid/low-probe-drbdmanage-control-volume | 5 ++ .../images-fs/drbdmanage-control-volume.img.bz2 | Bin 0 -> 2001 bytes 6 files changed, 100 insertions(+) commit 3baf5ac739aa2710d68c1567ff80d5d93cc4812d Author: Andreas Henriksson Date: Fri Aug 21 16:13:29 2015 +0200 hwclock: fix iopl implicit declaration warning on alpha Build warning: sys-utils/hwclock-cmos.c: In function 'i386_iopl': sys-utils/hwclock-cmos.c:611:9: warning: implicit declaration of function 'iopl' [-Wimplicit-function-declaration] return iopl(level); ^ sys-utils/hwclock-cmos.c:611:2: warning: nested extern declaration of 'iopl' [-Wnested-externs] return iopl(level); ^ Also: checking sys/io.h usability... yes checking sys/io.h presence... yes checking for sys/io.h... yes Full build log: https://buildd.debian.org/status/fetch.php?pkg=util-linux&arch=alpha&ver=2.26.2-9&stamp=1440078034 Detected by/via: https://qa.debian.org/bls/packages/u/util-linux.html Please note that this has never been (build-)tested, but should hopefully resolve the warning. Signed-off-by: Andreas Henriksson sys-utils/hwclock-cmos.c | 5 +++++ 1 file changed, 5 insertions(+) commit ec3d3e67d9a08533232b3ac4e07a37482a05edea Author: Andreas Henriksson Date: Fri Aug 21 16:13:28 2015 +0200 hwclock: fix fgets unchecked return value warning on alpha Build warning: sys-utils/hwclock-cmos.c: In function 'is_in_cpuinfo': sys-utils/hwclock-cmos.c:162:4: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(field, 256, cpuinfo); Full build log: https://buildd.debian.org/status/fetch.php?pkg=util-linux&arch=alpha&ver=2.26.2-9&stamp=1440078034 Detected by/via: https://qa.debian.org/bls/packages/u/util-linux.html This change has never actually been (build-)tested on alpha, but hopefully the change should fix the warning. Signed-off-by: Andreas Henriksson sys-utils/hwclock-cmos.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 88294abaf9bb244601322edca1e1b825ebf39270 Author: Andreas Henriksson Date: Fri Aug 21 16:13:27 2015 +0200 hwclock: fix signed/unsigned comparison warning on alpha Fixes the following warning: sys-utils/hwclock.c: In function 'manipulate_epoch': sys-utils/hwclock.c:1465:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (epoch_opt == -1) Full build log available on: https://buildd.debian.org/status/fetch.php?pkg=util-linux&arch=alpha&ver=2.26.2-9&stamp=1440078034 Detected by/via: https://qa.debian.org/bls/packages/u/util-linux.html Please note that this has never actually been (build-)tested on alpha, but should hopefully resolve the warning. Note also that limits.h is already included. Signed-off-by: Andreas Henriksson sys-utils/hwclock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 624e147ba29531b16edeaad21f67b7bc6e9e6b3e Author: Sami Kerola Date: Mon Aug 17 18:44:28 2015 +0100 misc: fix shadow declarations sys-utils/zramctl.c: In function 'get_mm_stat': sys-utils/zramctl.c:276:58: warning: declaration of 'inbytes' shadows a global declaration [-Wshadow] static char *get_mm_stat(struct zram *z, size_t idx, int inbytes) sys-utils/zramctl.c:119:39: note: shadowed declaration is here static unsigned int raw, no_headings, inbytes; libmount/src/tab.c: In function 'mnt_table_get_fs_root': libmount/src/tab.c:1221:22: warning: declaration of 'fs' shadows a parameter [-Wshadow] struct libmnt_fs *fs = mnt_table_find_mountpoint(tb, libmount/src/tab.c:1197:24: note: shadowed declaration is here struct libmnt_fs *fs, disk-utils/fsck.minix.c: In function 'main': disk-utils/fsck.minix.c:1364:17: warning: declaration of 'i' shadows a previous local [-Wshadow] unsigned long i, free; disk-utils/fsck.minix.c:1250:6: note: shadowed declaration is here int i; Signed-off-by: Sami Kerola disk-utils/fsck.minix.c | 10 +++++----- libmount/src/tab.c | 6 +++--- sys-utils/zramctl.c | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) commit 3e16df1558afb2a97dee784bd1c02678b19140d5 Author: Karel Zak Date: Mon Aug 24 10:46:48 2015 +0200 chfn: document CHFN_RESTRICT /etc/login.defs Signed-off-by: Karel Zak login-utils/chfn.1 | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) commit bde91c85bdc77975155058276f99d2e0f5eab5a9 Author: Karel Zak Date: Mon Aug 24 10:05:55 2015 +0200 chsh, chfn, vipw: fix filenames collision The utils when compiled WITHOUT libuser then mkostemp()ing "/etc/%s.XXXXXX" where the filename prefix is argv[0] basename. An attacker could repeatedly execute the util with modified argv[0] and after many many attempts mkostemp() may generate suffix which makes sense. The result maybe temporary file with name like rc.status ld.so.preload or krb5.keytab, etc. Note that distros usually use libuser based ch{sh,fn} or stuff from shadow-utils. It's probably very minor security bug. Addresses: CVE-2015-5224 Signed-off-by: Karel Zak include/fileutils.h | 6 +++--- lib/fileutils.c | 21 +++++++-------------- login-utils/chfn.c | 2 +- login-utils/chsh.c | 2 +- login-utils/setpwnam.c | 5 ++--- login-utils/setpwnam.h | 6 +++++- login-utils/vipw.c | 3 +-- 7 files changed, 20 insertions(+), 25 deletions(-) commit 3db75b1a8e0f40b9b0d788e7549f93d031c34fea Author: Karel Zak Date: Fri Aug 21 11:51:49 2015 +0200 tests: add blkid script to test whole-disk MBR devices Signed-off-by: Karel Zak tests/expected/blkid/mbr-wholedisk-fake-vfat | 2 ++ tests/ts/blkid/mbr-wholedisk | 41 +++++++++++++++++++++++++++ tests/ts/blkid/mbr-wholedisk-vfat.img | Bin 0 -> 512 bytes 3 files changed, 43 insertions(+) commit d9579859c2a41cf4d10ee8c8d846c92d5bb55e70 Author: Karel Zak Date: Wed Aug 19 15:27:20 2015 +0200 libmount: (monitor) fix docs Signed-off-by: Karel Zak libmount/src/monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit ac09539c699dfe58545182674f2aa885df068925 Author: Karel Zak Date: Wed Aug 19 15:27:02 2015 +0200 docs: update TODO Signed-off-by: Karel Zak Documentation/TODO | 11 ----------- 1 file changed, 11 deletions(-) commit 992ec00039ec70ec71bea3f9dd1bf3ce8f6d6ab3 Merge: 9ac77b8 8fef799 Author: Karel Zak Date: Mon Aug 17 12:12:28 2015 +0200 Merge branch 'master' of https://github.com/FGrose/util-linux * 'master' of https://github.com/FGrose/util-linux: Fix typos in --target commit 9ac77b8a78452eab0612523d27fee52159f5016a Author: Karel Zak Date: Mon Aug 17 11:54:26 2015 +0200 libmount: add support for "bind,ro" Now it's necessary t use two mount(8) calls to create a read-only mount: mount /foo /bar -o bind mount /bar -o remount,ro,bind This patch allows to specify "bind,ro" and the remount is done automatically by libmount by additional mount(2) syscall. It's not atomic of course. Signed-off-by: Karel Zak Documentation/releases/v2.27-ReleaseNotes | 4 +++ libmount/src/context_mount.c | 48 ++++++++++++++++++++++++++++++- sys-utils/mount.8 | 35 +++++++++++----------- 3 files changed, 67 insertions(+), 20 deletions(-) commit 8fef799d8bab93677422423294a7c55a7662db7b Author: Frederick Grose Date: Fri Aug 14 09:37:07 2015 -0400 Fix typos in --target misc-utils/findmnt.8 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) commit 5b7be9900aadd361335189296eb034879b28b171 Author: Karel Zak Date: Thu Aug 13 11:49:20 2015 +0200 docs: add lsblk vs. btrfs to TODO Signed-off-by: Karel Zak Documentation/TODO | 7 +++++++ 1 file changed, 7 insertions(+) commit f19c6328043e241d69b59b07e6dbd4f4da079bdb Author: Karel Zak Date: Thu Aug 13 11:41:49 2015 +0200 docs: add mount --namespace to TODO Signed-off-by: Karel Zak Documentation/TODO | 4 ++++ 1 file changed, 4 insertions(+) commit 2279ab60baa261a2b6835b25c21f5074463335bd Merge: 2aedcdf cdf6406 Author: Karel Zak Date: Wed Aug 12 22:53:47 2015 +0200 Merge branch 'colcrt' of git://github.com/kerolasa/lelux-utiliteetit * 'colcrt' of git://github.com/kerolasa/lelux-utiliteetit: tests: add colcrt regression tests colcrt: allocate enough space for data moves [afl & asan] colcrt: avoid writing beyond array bound [afl & asan] colcrt: use #define in place of magic constants misc: fix redundant assignment and reassignments before use [cppcheck] tools: stop checkmans.sh validating libtool builds commit 2aedcdf4bf4b323823640d4496cca1398a105136 Merge: a4839bc e7d53b9 Author: Karel Zak Date: Wed Aug 12 11:09:04 2015 +0200 Merge branch 'patch-1' of https://github.com/borutmrak/util-linux * 'patch-1' of https://github.com/borutmrak/util-linux: mount.8: also note diratime does not override noatime. mount.8: Clarify relation between noatime and nodiratime commit a4839bc781ea1dadd2d9739b15df26e9de1a1926 Author: Karel Zak Date: Wed Aug 12 10:21:48 2015 +0200 lsipc: add more resource to the limits list Signed-off-by: Karel Zak sys-utils/lsipc.c | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) commit e7d53b984ae1e82302b6bc73323df528fb16d6f4 Author: Borut Mrak Date: Tue Aug 11 03:00:29 2015 +0200 mount.8: also note diratime does not override noatime. sys-utils/mount.8 | 2 ++ 1 file changed, 2 insertions(+) commit 6e73b6113b35b6a55434ca3e77ff48cc3bc43267 Author: Borut Mrak Date: Tue Aug 11 02:51:36 2015 +0200 mount.8: Clarify relation between noatime and nodiratime According to https://lwn.net/Articles/245002/ and checking Linus' git master fs/inode.c it's obvious nodiratime is redundant when mounting with noatime. Clarify that in the man page. sys-utils/mount.8 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) commit cdf6406ddea76c7d8c4a8ed9d827f622bb919341 Author: Sami Kerola Date: Mon Aug 10 22:12:03 2015 +0100 tests: add colcrt regression tests Thanks to Alaa Mubaied for providing crash1 input file making colcrt to crash. The crash2 was generated using American Fuzzy Lop. Signed-off-by: Sami Kerola tests/commands.sh | 1 + tests/expected/colcrt/regressions-crash1 | 1 + tests/expected/colcrt/regressions-crash2 | 386 +++++++++++++++++++++++++++++++ tests/ts/colcrt/crash1 | Bin 0 -> 314 bytes tests/ts/colcrt/crash2 | Bin 0 -> 776 bytes tests/ts/colcrt/regressions | 34 +++ 6 files changed, 422 insertions(+) commit 70e3fcf293c1827a2655a86584ab13075124a8a8 Author: Sami Kerola Date: Sun Aug 9 18:02:18 2015 +0100 colcrt: allocate enough space for data moves [afl & asan] ==2807==ERROR: AddressSanitizer: global-buffer-overflow on address 0x0000013a31f0 at pc 0x0000004e3047 bp 0x7fffcb7df8d0 sp 0x7fffcb7df8c8 READ of size 4 at 0x0000013a31f0 thread T0 #0 0x4e3046 in move /home/src/util-linux/text-utils/colcrt.c:309:13 #1 0x4e25b1 in pflush /home/src/util-linux/text-utils/colcrt.c:264:3 #2 0x4e246d in colcrt /home/src/util-linux/text-utils/colcrt.c:157:4 #3 0x4e17d4 in main /home/src/util-linux/text-utils/colcrt.c:141:3 #4 0x7fb0cb2ee60f in __libc_start_main (/usr/lib/libc.so.6+0x2060f) #5 0x4362c8 in _start (/home/src/util-linux/colcrt+0x4362c8) 0x0000013a31f0 is located 0 bytes to the right of global variable 'page' defined in 'text-utils/colcrt.c:73:9' (0x1380b40) of size 140976 SUMMARY: AddressSanitizer: global-buffer-overflow /home/src/util-linux/text-utils/colcrt.c:309 move And another crash: ==4578==ERROR: AddressSanitizer: global-buffer-overflow on address 0x0000013a3d24 at pc 0x0000004e2510 bp 0x7ffc9257b0e0 sp 0x7ffc9257b0d8 READ of size 4 at 0x0000013a3d24 thread T0 #0 0x4e250f in colcrt /home/src/util-linux/text-utils/colcrt.c:218:8 #1 0x4e17d4 in main /home/src/util-linux/text-utils/colcrt.c:141:3 #2 0x7fe0ac94160f in __libc_start_main (/usr/lib/libc.so.6+0x2060f) #3 0x4362c8 in _start (/home/src/util-linux/colcrt+0x4362c8) 0x0000013a3d24 is located 8 bytes to the right of global variable 'page' defined in 'text-utils/colcrt.c:73:9' (0x1381240) of size 142044 SUMMARY: AddressSanitizer: global-buffer-overflow /home/src/util-linux/text-utils/colcrt.c:218 colcrt Reported-by: Alaa Mubaied Signed-off-by: Sami Kerola text-utils/colcrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit d883d64d96ab9bef510745d064a351145b9babec Author: Sami Kerola Date: Sun Aug 9 18:16:34 2015 +0100 colcrt: avoid writing beyond array bound [afl & asan] text-utils/colcrt.c:205:10: runtime error: index -1 out of bounds for type 'wchar_t [133]' SUMMARY: AddressSanitizer: undefined-behavior text-utils/colcrt.c:205 ================================================================= ==2357==ERROR: AddressSanitizer: global-buffer-overflow on address 0x0000013811b0 at pc 0x0000004e2514 bp 0x7ffdf6ba4450 sp 0x7ffdf6ba4448 READ of size 4 at 0x0000013811b0 thread T0 #0 0x4e2513 in colcrt /home/src/util-linux/text-utils/colcrt.c:213:8 #1 0x4e17d4 in main /home/src/util-linux/text-utils/colcrt.c:139:3 #2 0x7fb77236960f in __libc_start_main (/usr/lib/libc.so.6+0x2060f) #3 0x4362c8 in _start (/home/src/util-linux/colcrt+0x4362c8) Reported-by: Alaa Mubaied Signed-off-by: Sami Kerola text-utils/colcrt.c | 2 ++ 1 file changed, 2 insertions(+) commit 3a41cdd7b5e1c8512553dfce27ca364f6a68a4f9 Author: Sami Kerola Date: Sun Aug 9 17:50:41 2015 +0100 colcrt: use #define in place of magic constants Signed-off-by: Sami Kerola text-utils/colcrt.c | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) commit ee24ab6f1e7d50e19d98ccb1850e8ec1364a7334 Author: Sami Kerola Date: Tue Aug 4 22:46:26 2015 +0100 misc: fix redundant assignment and reassignments before use [cppcheck] Signed-off-by: Sami Kerola lib/procutils.c | 2 +- sys-utils/blkdiscard.c | 2 +- sys-utils/fstrim.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) commit 6e93ae8414bb705203f6cd7ee51d11e8b7e0e9c9 Author: Sami Kerola Date: Tue Aug 4 21:36:05 2015 +0100 tools: stop checkmans.sh validating libtool builds The checkmans.sh tried to validate shared libraries, such as ./.libs/libsmartcols.so.1, causing the check output to a have lot of pointless garbage. Signed-off-by: Sami Kerola tools/checkmans.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 41e554e303e63c7051fda5783af2462066c43e4d Author: Karel Zak Date: Wed Aug 5 13:39:06 2015 +0200 libmount: fix typo in mnt_optstr_prepend_option() Signed-off-by: Karel Zak libmount/src/optstr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 28bad822c4516a4365262b6023f8d24858e140f0 Author: Karel Zak Date: Wed Aug 5 13:23:34 2015 +0200 logger: improve readability [smatch scan] Signed-off-by: Karel Zak misc-utils/logger.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) commit 7ff635bff43d8b257978443202bc758cd30f0ac5 Author: Karel Zak Date: Wed Aug 5 13:22:05 2015 +0200 misc: fix indention [smatch scan] Signed-off-by: Karel Zak sys-utils/fallocate.c | 2 +- sys-utils/unshare.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit d43ec106e4ddb1f49ba0dc5470651a49761b500e Author: Karel Zak Date: Wed Aug 5 13:18:40 2015 +0200 tools: add hexdump badconv() to noreturn smatch list Signed-off-by: Karel Zak tools/smatch-data/no_return_funcs | 2 ++ 1 file changed, 2 insertions(+) commit 8f2a4650732ca3be5aec70b8e508cd975c2e1c15 Author: Karel Zak Date: Wed Aug 5 13:09:12 2015 +0200 more: improve ugly macro no comment, just F*CK YOU to the original author of this crap... Signed-off-by: Karel Zak text-utils/more.c | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) commit e820595b8153235005e99c5ef1aeb7c12ecae403 Author: Karel Zak Date: Wed Aug 5 12:59:16 2015 +0200 libfdisk: (gpt) fix label pointer usage [smatch scan] Signed-off-by: Karel Zak libfdisk/src/gpt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) commit 06fb6eabebab21967407994b48de323a25466e8d Author: Karel Zak Date: Wed Aug 5 12:55:30 2015 +0200 libfdisk: remove impossible condition [smatch scan] Signed-off-by: Karel Zak libfdisk/src/sgi.c | 3 --- 1 file changed, 3 deletions(-) commit 1c736ff38b9409a4348f8d08a5fb255a787ae6db Author: Karel Zak Date: Wed Aug 5 12:53:03 2015 +0200 libfdisk: make context->label usage more robust [smatch scan] libfdisk/src/ask.c | 4 ++-- libfdisk/src/label.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) commit 2bf68c93348a25bdb96c370e9d7fd8ff2ead8564 Author: Karel Zak Date: Wed Aug 5 12:48:54 2015 +0200 libblkid: fix inconsistent indenting [smatch scan] Signed-off-by: Karel Zak libblkid/src/probe.c | 2 +- libblkid/src/superblocks/zfs.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) commit 941c734c569fe2aac20e45c75fdc63165e69413d Author: Karel Zak Date: Wed Aug 5 12:46:56 2015 +0200 libmount: variable dereferenced before check [smatch scan] Signed-off-by: Karel Zak libmount/src/optstr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit ffab025db89dc975fe57760e25226f6b0e9d9c53 Author: Karel Zak Date: Wed Aug 5 12:41:46 2015 +0200 cfdisk, sfdisk: remove unused variables Signed-off-by: Karel Zak disk-utils/cfdisk.c | 17 ++++++++--------- disk-utils/sfdisk.c | 3 +-- 2 files changed, 9 insertions(+), 11 deletions(-) commit 06df240c9223d005082ebdd83074dc6f0c62e674 Author: Karel Zak Date: Wed Aug 5 12:41:17 2015 +0200 tools: add err_oom() to smatch no_return_funcs Signed-off-by: Karel Zak tools/smatch-data/no_return_funcs | 1 + 1 file changed, 1 insertion(+) commit 09db9538d746b1223fdb18d02a9937158d0b59d9 Author: Karel Zak Date: Wed Aug 5 12:40:35 2015 +0200 lib/blkdev: use 64-bit to count size in bytes Signed-off-by: Karel Zak lib/blkdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit 9d8260761c8689839636e571eec9337493e35450 Author: Karel Zak Date: Wed Aug 5 12:39:00 2015 +0200 lib/timeutils: fix indention [smatch scan] Signed-off-by: Karel Zak lib/timeutils.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) commit c6556f7ca8ed99aa1f213471af7848a699927618 Author: Karel Zak Date: Wed Aug 5 11:55:56 2015 +0200 tailf: fix open() return value check [coverity scan] Signed-off-by: Karel Zak text-utils/tailf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) commit 266080151345550a758f8837dc0f997dc470e75c Author: Karel Zak Date: Wed Aug 5 11:51:04 2015 +0200 setterm: remove dead code [coverity scan] Signed-off-by: Karel Zak term-utils/setterm.c | 2 -- 1 file changed, 2 deletions(-) commit a359830c1afa2bcd5081c545d206ebb20a6bd76f Author: Karel Zak Date: Wed Aug 5 11:45:57 2015 +0200 agetty: cleanup plymouth usage [coverity scan] * use macros for paths * check open() return value Signed-off-by: Karel Zak term-utils/agetty.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) commit 6b497c0e19145cb3a70637c9d27c430b4602f8c0 Author: Karel Zak Date: Wed Aug 5 11:32:59 2015 +0200 rtcwake: improve open() usage [coverity scan] Signed-off-by: Karel Zak sys-utils/rtcwake.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) commit 11aa2aa290d2d654d621bd4729b535234480734b Author: Ian Wienand Date: Wed Aug 5 09:21:27 2015 +0200 sfdisk: clarification for sfdisk man page Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1249893 Signed-off-by: Karel Zak disk-utils/sfdisk.8 | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) commit 71b63dc14fc9728da7556b4b911b70ac56a3b8f3 Author: Karel Zak Date: Tue Aug 4 14:22:31 2015 +0200 lsipc: cleanup usernames Signed-off-by: Karel Zak sys-utils/lsipc.c | 108 +++++++++++++++++++----------------------------------- 1 file changed, 38 insertions(+), 70 deletions(-) commit fadf556a70a2f503e8876f5949b2160a8496e89b Author: Karel Zak Date: Tue Aug 4 14:05:33 2015 +0200 lsipc: check scols_line_refer_data() return code Signed-off-by: Karel Zak sys-utils/lsipc.c | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) commit cdb4a9464dab7bfd854245daf7b9ba4031d156ac Author: Karel Zak Date: Tue Aug 4 13:57:45 2015 +0200 lsipc: don't duplicate already allocated data Signed-off-by: Karel Zak sys-utils/lsipc.c | 186 ++++++++++++++++++++++++------------------------------ 1 file changed, 81 insertions(+), 105 deletions(-) commit 2c6567799debe6017b1a1e1f5695fbe632545521 Author: Karel Zak Date: Tue Aug 4 13:40:44 2015 +0200 build-sys: add --disable-assert Signed-off-by: Karel Zak Documentation/releases/v2.27-ReleaseNotes | 2 ++ configure.ac | 1 + include/c.h | 2 ++ libfdisk/src/fdiskP.h | 8 -------- libfdisk/src/version.c | 2 +- libmount/src/mountP.h | 9 --------- libmount/src/version.c | 4 ++-- libsmartcols/src/smartcolsP.h | 9 --------- 8 files changed, 8 insertions(+), 29 deletions(-) commit cba392b661d3fcf92d50d0df7c8783e18bb992da Author: Karel Zak Date: Tue Aug 4 13:21:42 2015 +0200 libmount: cleanup assert() usage Signed-off-by: Karel Zak libmount/src/context.c | 14 -------------- libmount/src/context_loopdev.c | 9 --------- libmount/src/context_mount.c | 15 +++------------ libmount/src/context_umount.c | 11 +++-------- libmount/src/monitor.c | 9 --------- libmount/src/tab.c | 2 -- 6 files changed, 6 insertions(+), 54 deletions(-) commit 1c3c92cd8dbfb856d4262c90ed55c107e21ac408 Author: Karel Zak Date: Tue Aug 4 13:03:14 2015 +0200 libfdisk: cleanup assert() usage Signed-off-by: Karel Zak libfdisk/src/context.c | 2 -- libfdisk/src/label.c | 16 ++++++---------- libfdisk/src/partition.c | 7 ++----- libfdisk/src/script.c | 10 ++-------- libfdisk/src/table.c | 10 ---------- 5 files changed, 10 insertions(+), 35 deletions(-) commit e97c0214728d00590813b91e7955c95417cc05f4 Author: Karel Zak Date: Tue Aug 4 12:31:39 2015 +0200 libblkid: remove dead code [coverity scan] Signed-off-by: Karel Zak libblkid/src/tag.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) commit 70e05135638a36f81708c9601f0c248bbc8f03a7 Author: Karel Zak Date: Tue Aug 4 11:42:27 2015 +0200 mkfs.minix: add hint for scanners [coverity scan] Signed-off-by: Karel Zak disk-utils/mkfs.minix.c | 1 + 1 file changed, 1 insertion(+) commit cd16685e941719a78c85403d3e926801f1dbe203 Author: Karel Zak Date: Tue Aug 4 11:39:49 2015 +0200 mkfs.minix: use xalloc Signed-off-by: Karel Zak disk-utils/mkfs.minix.c | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) commit 101c80f316c1a006b8e70540f3921308da6722b5 Author: Karel Zak Date: Tue Aug 4 11:26:45 2015 +0200 mkfs.cramfs: remove dead code [coverity scan] There two possible ways, print error and exit on too long names or truncate the filename -- but it's impossible to do both in the same code :-) It seems that code already assumes warning on long names, so let's remove errx() and keep the behavior in dependence on -E. Signed-off-by: Karel Zak disk-utils/mkfs.cramfs.c | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) commit 1e9d849b8d31987c960c0f08f08ebcd781b3a609 Author: Karel Zak Date: Tue Aug 4 11:15:53 2015 +0200 fsck.minix: be more paranoid with block buffers [coverity scan] Signed-off-by: Karel Zak disk-utils/fsck.minix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit 4c166c2200c5d86b737bda4231c91525d55bb9ec Author: Karel Zak Date: Tue Aug 4 10:59:52 2015 +0200 cfdisk: check return value [coverity scan] Signed-off-by: Karel Zak disk-utils/cfdisk.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) commit 21ce5a5d70086ebd6abb257d4a3b75ac1a36742c Author: Karel Zak Date: Mon Aug 3 13:20:56 2015 +0200 lsipc: ifdef SHM_* macros Reported-by: Andreas Henriksson Signed-off-by: Karel Zak sys-utils/lsipc.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) commit dc5c91f648adb0505d435a52335fadbb8c308ffe Author: Karel Zak Date: Mon Aug 3 12:51:13 2015 +0200 tests: fix minix tests filenames Signed-off-by: Karel Zak tests/expected/minix/fsck-images-auto-fix | 2 +- tests/ts/minix/fsck-images | 17 +++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) commit 45caf6eea8bf5c9358bd4a5db2320d111107b57e Author: Karel Zak Date: Mon Aug 3 11:53:45 2015 +0200 tests: try mkfs & mount all supported minix versions Signed-off-by: Karel Zak tests/expected/minix/mkfs | 10 --------- tests/expected/minix/mkfs-v1c14 | 9 +++++++++ tests/expected/minix/mkfs-v1c30 | 9 +++++++++ tests/expected/minix/mkfs-v2c14 | 9 +++++++++ tests/expected/minix/mkfs-v2c30 | 9 +++++++++ tests/expected/minix/mkfs-v3c60 | 9 +++++++++ tests/ts/minix/mkfs | 45 +++++++++++++++++++++++------------------ 7 files changed, 70 insertions(+), 30 deletions(-) commit 24bdce6ea844fd11f27808aed165e3d7dbb62d5c Author: Sami Kerola Date: Sun Aug 2 21:24:08 2015 +0100 bash-completion: update few options changed since v2.26 Attempt to find and update all changes to command line options that has not been reflected in bash-completion files in between versions v2.26 to v2.27-rc1. Signed-off-by: Sami Kerola bash-completion/fdisk | 1 + bash-completion/findmnt | 8 ++++++ bash-completion/logger | 27 +++++++++++++++++++- bash-completion/lslocks | 1 + bash-completion/sfdisk | 66 ++++++++++++++++++++----------------------------- 5 files changed, 63 insertions(+), 40 deletions(-) commit 39c795d8b793c7dba0a2eb962c714ab7953cd677 Author: Karel Zak Date: Mon Aug 3 12:31:40 2015 +0200 tests: fix minix test - run the test with UID=0 only. The minix FS inode contains UID and GID, so the final image checksum depends on user... - always use subtest name for the images Signed-off-by: Karel Zak tests/expected/minix/fsck-images-check-blocks | 2 +- tests/expected/minix/fsck-images-v1c14 | 2 +- tests/expected/minix/fsck-images-v1c30 | 2 +- tests/expected/minix/fsck-images-v2c14 | 2 +- tests/expected/minix/fsck-images-v2c30 | 2 +- tests/expected/minix/fsck-images-v3c60 | 2 +- tests/ts/minix/fsck-images | 14 +++++++++----- 7 files changed, 15 insertions(+), 11 deletions(-) commit 6fb15a2dcf596ba9571a4beedc4cf4c00b6ef6ba Author: Sami Kerola Date: Sun Aug 2 19:29:00 2015 +0100 tests: add fsck.minix checks The debian bug was fixed in commit 730ae9c89971, and the rest are about having test coverity for various file name lenghts and minix fs versions. Signed-off-by: Sami Kerola tests/expected/minix/fsck-images-auto-fix | 31 ++++++++++++ tests/expected/minix/fsck-images-broken-root | 7 +++ tests/expected/minix/fsck-images-bug.773892 | 1 + tests/expected/minix/fsck-images-check-blocks | 9 ++++ tests/expected/minix/fsck-images-v1c14 | 9 ++++ tests/expected/minix/fsck-images-v1c30 | 9 ++++ tests/expected/minix/fsck-images-v2c14 | 9 ++++ tests/expected/minix/fsck-images-v2c30 | 9 ++++ tests/expected/minix/fsck-images-v3c60 | 9 ++++ tests/ts/minix/broken-root | Bin 0 -> 5120 bytes tests/ts/minix/debian.bug.773892 | Bin 0 -> 16384 bytes tests/ts/minix/fsck-images | 67 ++++++++++++++++++++++++++ 12 files changed, 160 insertions(+) commit 98f8b800dc6f7c3b221ba1fbedc0afd6e5013451 Author: Sami Kerola Date: Sun Aug 2 19:28:59 2015 +0100 tests: add way to control mkfs.minix time stamps Needed in order to create reproducable file systems image files, so that out come of mkfs.minix can be checksum'ed. Signed-off-by: Sami Kerola disk-utils/Makemodule.am | 5 +++++ disk-utils/mkfs.minix.c | 22 ++++++++++++++++++---- tests/commands.sh | 1 + 3 files changed, 24 insertions(+), 4 deletions(-) commit 3e56e36291830f74ba5646829b4d869b565e831b Author: Sami Kerola Date: Sat Aug 1 19:01:00 2015 +0100 mkfs.minix: re-fix block count maths Error, that Joshua Hudson already pointed out, creapped back to commit da41ff5 when changes were applied from mailbox rather than git remote, as the corrected change had included some accidental rubbish. Reference: http://www.spinics.net/lists/util-linux-ng/msg11764.html Reference: http://www.spinics.net/lists/util-linux-ng/msg11848.html Signed-off-by: Sami Kerola disk-utils/mkfs.minix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) commit d000470d5103f914d8270ec40f7797df67238e86 Author: Benno Schulenberg Date: Sat Aug 1 10:23:11 2015 +0200 unshare: remove angular brackets from literal argument in usage text Signed-off-by: Benno Schulenberg sys-utils/unshare.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit c3a68a8f670691c0310abc9d7c03581f77e89b1b Author: Benno Schulenberg Date: Sat Aug 1 10:23:10 2015 +0200 docs: fix some grammar and punctuation in the 2.27 release notes Signed-off-by: Benno Schulenberg Documentation/releases/v2.27-ReleaseNotes | 52 +++++++++++++++---------------- 1 file changed, 26 insertions(+), 26 deletions(-) commit 89de71b3476ecc2713736673a3850059d07d5121 Author: Benno Schulenberg Date: Sat Aug 1 10:23:09 2015 +0200 mount: remove duplications of --help and --version from usage text And slice up the affected portions. Signed-off-by: Benno Schulenberg sys-utils/mount.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) commit 315be52f5078d46877c0b8937a37309706588df4 Author: Benno Schulenberg Date: Sat Aug 1 10:23:08 2015 +0200 lslocks: slice up the recently modified usage text For ease of translation when it changes. Signed-off-by: Benno Schulenberg misc-utils/lslocks.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) commit 62eea9ce12daca1027f0dcbff554020fde809b8c Author: Benno Schulenberg Date: Sat Aug 1 10:23:07 2015 +0200 textual: adjust grammar and punctuation of some messages Also equalize three messages to one other one, and fix a typo in USE_COLORS_BY_DEFAULT. Signed-off-by: Benno Schulenberg disk-utils/cfdisk.c | 2 +- disk-utils/fdisk-menu.c | 2 +- disk-utils/fdisk.c | 2 +- disk-utils/fsck.c | 6 +++--- disk-utils/sfdisk.c | 28 ++++++++++++++-------------- include/colors.h | 6 +++--- sys-utils/flock.c | 2 +- sys-utils/lsipc.c | 10 +++++----- 8 files changed, 29 insertions(+), 29 deletions(-) commit d3a1e3bfaafa7203bc5c27bbd175564823f6ceeb Author: Karel Zak Date: Fri Jul 31 15:27:10 2015 +0200 build-sys: mark script(1) as Linux only due to signalfd() Signed-off-by: Karel Zak configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)