Changes between v2.19 and v2.19.1-rc1 ------------------------------------- commit 2434e47834f8612c00ff87795fc7155b2bf521c9 Author: Karel Zak Date: Wed Apr 20 11:39:22 2011 +0200 build-sys: release++ (v2.19.1-rc1) Signed-off-by: Karel Zak NEWS | 4 ++++ configure.ac | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) commit b77b76238563eea4ca4c6ee115286f90d03fee9b Author: Karel Zak Date: Wed Apr 20 09:58:18 2011 +0200 docs: add v2.19.1 ReleaseNotes Signed-off-by: Karel Zak docs/v2.19.1-ReleaseNotes | 117 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 117 insertions(+), 0 deletions(-) commit 0d1dc02084af09964508ea20297aa812b2b45167 Author: Karel Zak Date: Wed Apr 20 09:52:33 2011 +0200 docs: update AUTHORS file Signed-off-by: Karel Zak AUTHORS | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit d6bf53f8833208ddd247dad22ecb72c713f223a7 Author: Karel Zak Date: Wed Apr 20 09:51:01 2011 +0200 po: merge changes Signed-off-by: Karel Zak po/ca.po | 745 +++++++++-------- po/cs.po | 745 +++++++++-------- po/da.po | 1621 +++++++++++++++++++++--------------- po/de.po | 747 +++++++++-------- po/es.po | 746 +++++++++-------- po/et.po | 737 +++++++++-------- po/eu.po | 740 +++++++++-------- po/fi.po | 745 +++++++++-------- po/fr.po | 2399 +++++++++++++++++++++++++++++++++-------------------- po/gl.po | 733 +++++++++-------- po/hu.po | 736 +++++++++-------- po/id.po | 745 +++++++++-------- po/it.po | 745 +++++++++-------- po/ja.po | 745 +++++++++-------- po/nl.po | 745 +++++++++-------- po/pl.po | 736 +++++++++-------- po/pt_BR.po | 746 +++++++++-------- po/ru.po | 745 +++++++++-------- po/sl.po | 746 +++++++++-------- po/sv.po | 745 +++++++++-------- po/tr.po | 745 +++++++++-------- po/uk.po | 745 +++++++++-------- po/util-linux.pot | 732 +++++++++-------- po/vi.po | 736 +++++++++-------- po/zh_CN.po | 733 +++++++++-------- po/zh_TW.po | 736 +++++++++-------- 26 files changed, 11817 insertions(+), 10002 deletions(-) commit 24885066c9ce58d1dd07125f2d3f648590254f0b Author: David Prévot Date: Tue Apr 19 15:22:34 2011 +0200 po: update fr.po (from translationproject.org) po/fr.po | 4208 +++++++++++++++++++++---------------------------------------- 1 files changed, 1449 insertions(+), 2759 deletions(-) commit 99f37db2b891b93332a27b1b193fcae3d264985f Author: Joe Hansen Date: Tue Apr 19 15:22:34 2011 +0200 po: update da.po (from translationproject.org) po/da.po | 2107 ++++++++++++++++++++++++-------------------------------------- 1 files changed, 817 insertions(+), 1290 deletions(-) commit 4c07a7553c98208182d61a9b16576edc9f023667 Author: Karel Zak Date: Tue Apr 19 13:39:35 2011 +0200 tests: don't run mount/regfile test on old kernel The /sys/.../loop/backing_file is available since 2.6.37. Signed-off-by: Karel Zak tests/ts/mount/regfile | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) commit 23b1d3e24e7fc0ea1b063eb86030af2d7be0fee2 Author: Karel Zak Date: Tue Apr 19 12:22:06 2011 +0200 tests: add test for RLIMIT_FSIZE issue Signed-off-by: Karel Zak tests/expected/mount/rlimit | 1 + tests/expected/mount/rlimit-mount | 1 + tests/expected/mount/rlimit-umount | 1 + tests/ts/mount/rlimit | 78 ++++++++++++++++++++++++++++++++++++ 4 files changed, 81 insertions(+), 0 deletions(-) commit 2919d273c7a1e9bfd62c88668449f4574c33f07e Author: Karel Zak Date: Tue Apr 19 10:06:37 2011 +0200 libmount: remove unused variable from test Signed-off-by: Karel Zak shlibs/mount/src/tab_update.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit f72073c99d380a896382a9144db9b26c641aec4b Author: Karel Zak Date: Tue Apr 19 10:04:33 2011 +0200 tests: use libmount tab update tests for UID=0 only Signed-off-by: Karel Zak tests/ts/libmount/update | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit d3110cb90cbf6f18c090b11a1550488acb8099cc Author: Karel Zak Date: Tue Apr 19 09:17:12 2011 +0200 mount: remove unused variable Signed-off-by: Karel Zak mount/mount.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) commit 28594c9d4fc8a4108408c5749b62933b967ba23b Author: Karel Zak Date: Wed Apr 13 14:37:44 2011 +0200 libmount: block signals when update utab Signed-off-by: Karel Zak shlibs/mount/src/tab_update.c | 129 ++++++++++++++++++++++++++--------------- 1 files changed, 81 insertions(+), 48 deletions(-) commit 84ed14022e7d3d121bbcab60ebad11ed38d691b0 Author: Karel Zak Date: Wed Apr 13 11:02:34 2011 +0200 libmount: more robust mtab and utab update (CVE-2011-1676, CVE-2011-1677) http://thread.gmane.org/gmane.comp.security.oss.general/4374 Changes: - always use temporary file - use fflush() for the temporary file - check fprintf() return value Signed-off-by: Karel Zak shlibs/mount/src/tab_update.c | 112 ++++++++++++++++++++++++++-------------- 1 files changed, 73 insertions(+), 39 deletions(-) commit 47b6a6143c78f158749d9c8056672518cd2eb61d Author: Karel Zak Date: Wed Apr 13 10:49:26 2011 +0200 mount: use lock from mnt_update_table() The mnt_update_table() is able to create a mtab lock now. Signed-off-by: Karel Zak mount/fstab.c | 19 ------------------- mount/fstab.h | 1 - mount/mount.c | 4 +--- mount/umount.c | 9 +++------ 4 files changed, 4 insertions(+), 29 deletions(-) commit 11b51a46bfd3c340df251b2d20fe9d04d077a88e Author: Karel Zak Date: Wed Apr 13 10:11:50 2011 +0200 umount: block signals when umounting and updating mtab (CVE-2011-1676, CVE-2011-1677) http://thread.gmane.org/gmane.comp.security.oss.general/4374 Based on CVE-2011-1089. Signed-off-by: Karel Zak mount/umount.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) commit 4b39b6aefd5dd8ac68a92adc650dc13d5d54d704 Author: Karel Zak Date: Tue Apr 12 22:52:33 2011 +0200 mount: use fflush() and temporary file for mtab updates (CVE-2011-1089) http://thread.gmane.org/gmane.comp.security.oss.general/4374 Changes: - force mount(8) to use /etc/mtab.tmp file every time. The original code used the tmp file for remount/move operations only. - call and check fflush() return code for the tmp file Note mount(8) blocks all signals when writing to mtab, so it's not affected by SIGXFSZ and the mtab lock file is always removed. This patch does not fix the same issue in umount(8) and libmount. Signed-off-by: Karel Zak mount/fstab.c | 36 +++++++++++++++++++++++++++--------- mount/mount.c | 21 ++------------------- 2 files changed, 29 insertions(+), 28 deletions(-) commit b0d983f61af6a592b4112f3f11b7c16dc40aacdc Author: Nick Holloway Date: Sun Apr 10 13:35:56 2011 +0100 libblkid: remove test for non-zero head count in FAT superblock probe. This change enables the auto-detection of the internal storage on a VTech Kidizoom camera, which has a zero head count value in the superblock. Microsoft documentation, "FAT: General Overview of On-Disk Format", states that the sectors and heads fields are only relevant for media that have a geometry. The Linux kernel also does not require a non-zero head count, and can manually mount the filesystem. Signed-off-by: Nick Holloway shlibs/blkid/src/superblocks/vfat.c | 2 -- tests/expected/blkid/low-probe-fat16_noheads | 8 ++++++++ tests/ts/blkid/images-fs/fat16_noheads.img.bz2 | Bin 0 -> 336 bytes 3 files changed, 8 insertions(+), 2 deletions(-) commit 8c31ced31486ea8b37875e2ff8f558f43b5d029a Author: Jan Engelhardt Date: Sat Apr 9 14:11:35 2011 +0200 libmount: avoid redundant declaration of mnt_context_do_umount Signed-off-by: Jan Engelhardt shlibs/mount/src/libmount.h.in | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) commit 994f8dde4ab001fcf2b11ed7eb70c30657f6934c Author: Po-Yu Chuang Date: Fri Apr 8 17:35:53 2011 +0800 readprofile: don't stop parsing at __init_end Some architectures like ARM place __init_end before .text section. If any function in .init section is hit while profiling, readprofile stops at __init_end. That means if we enable profiling at boot time, the profiler probably hits init functions and readprofile does not work well unless we reset profiling buffer with -r option. Signed-off-by: Po-Yu Chuang sys-utils/readprofile.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit b914a5ecb838a7eb6966aaf2161b06ef1e80888b Author: Karel Zak Date: Tue Apr 12 10:05:25 2011 +0200 mount: add note about blank lines to fstab.5 Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=694648 Signed-off-by: Karel Zak mount/fstab.5 | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) commit 06b814cc5c7cfcf6f4284aa1a0d140f322e66594 Author: Karel Zak Date: Mon Apr 11 14:05:57 2011 +0200 umount: support non-canonical devnames in mtab Addresses: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/755193 Signed-off-by: Karel Zak mount/fstab.c | 13 +++++++++++++ mount/umount.c | 5 ++++- 2 files changed, 17 insertions(+), 1 deletions(-) commit f7e08f83faae3def36423bee75638f7e69f495a2 Author: Sami Kerola Date: Sat Apr 2 22:56:50 2011 +0200 setterm: segfault with long dump file name The patch will make too long path to be truncated to MAX_PATH lenght. If user supplies too long file name that is caught at fopen. Some users might find this unintuitive, so the altered behavior will be mantioned in manual page. Bug in earlier version was visible with a command bellow. setterm -dump -file $(for i in $(seq 254); do printf x ; done) Signed-off-by: Sami Kerola misc-utils/setterm.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) commit 725969b18ee0f5d47c9eb78650d1daaaa66dd115 Author: Sami Kerola Date: Sat Apr 2 18:11:08 2011 +0200 rev: memory leak fix Moving the malloc out of loop will make leak to disappear, and the command might run few jiffie quicker when there are 1+N arguments. Signed-off-by: Sami Kerola text-utils/rev.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 307fb169ce47dff7fe01d99c25ed69752582ebce Author: Karel Zak Date: Tue Apr 5 14:17:51 2011 +0200 libmount: fix parsing of mountinfo from 2.6.39 The /proc/self/mountinfo file uses " - " field as a separator between optional fields and next fields in the file. The '-' char could be used in the fields (for example in UUIDs), so it's necessary to check for whole " - " string rather than for '-' char only. Reported-by: "Aneesh Kumar K. V" Signed-off-by: Karel Zak shlibs/mount/src/tab_parse.c | 29 +++++++++++++++++++++-------- 1 files changed, 21 insertions(+), 8 deletions(-) commit dc6c65185dbb413c9b42779e3ba95b24bb122ab2 Author: Karel Zak Date: Thu Mar 31 21:26:57 2011 +0200 libmount: support /run/mount rather than /dev/.mount The /run directory should be preferred on distributions where this directory exists. http://thread.gmane.org/gmane.linux.redhat.fedora.devel/146976 Signed-off-by: Karel Zak shlibs/mount/src/context.c | 4 ++-- shlibs/mount/src/fs.c | 4 ++-- shlibs/mount/src/libmount.h.in | 2 +- shlibs/mount/src/mountP.h | 8 ++++++-- shlibs/mount/src/tab_parse.c | 4 ++-- shlibs/mount/src/tab_update.c | 6 +++--- shlibs/mount/src/utils.c | 16 ++++++++++++---- 7 files changed, 28 insertions(+), 16 deletions(-) commit bc43ae8f87c982a177346116e515eca78697a130 Author: Karel Zak Date: Thu Mar 31 14:30:06 2011 +0200 lscpu: detect sun4{u,v} in /proc/cpuinfo for sparc64 Signed-off-by: Karel Zak sys-utils/lscpu.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) commit ec0d4843dcaa58edd77777f162458fead991f57f Author: Karel Zak Date: Thu Mar 31 13:09:50 2011 +0200 lscpu: fix op-mode for /{sys,proc} dumps Signed-off-by: Karel Zak sys-utils/lscpu.c | 5 +++++ tests/expected/lscpu/lscpu-i386-dellpe700 | 1 - 2 files changed, 5 insertions(+), 1 deletions(-) commit a62dd1d0758e3ad3daee8702dfe71d3d2c82db2e Author: Karel Zak Date: Thu Mar 31 12:55:13 2011 +0200 lscpu: fix threads-per-core calculation On Thu, Mar 24, 2011 at 01:45:34PM +0100, Jan Engelhardt wrote: > On a 24-thread/6-core SPARC T1, lscpu would wrongly output "5 > threads per core". > > It seems that the 6c T1 is simply an 8c T1 where 2c are disabled > (offering a lesser model for a lower price, and all that marketing > fluff). So the machine description header of the 6c T1 reports 32 > threads, but only goes on to provide 24 elements thereafter, which > is why Linux will report threads 24-31 as "offline". So far so good. > > But lscpu would take the number of all (online and offline) threads > (32) and divides it by the number of online cores (6), which yields > an odd 5.33 threads/core. > > Simply pick the number of online threads. Based on Jan's patch. Reported-by: Jan Engelhardt Signed-off-by: Karel Zak sys-utils/lscpu.c | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) commit 3675223dc3ab80186cc300497fd5962624d42ef5 Author: Karel Zak Date: Thu Mar 31 11:39:01 2011 +0200 login: fix checktty test to compile with old glibc Reported-by: "Gabor Z. Papp" Signed-off-by: Karel Zak login-utils/checktty.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 7cc0303bc5e2d418ff6d86838506e431233aef1b Author: Karel Zak Date: Wed Mar 30 23:52:56 2011 +0200 libmount: fix memory leak in cache Reported-by: Petr Uzel Signed-off-by: Karel Zak shlibs/mount/src/cache.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit b23f440fe7b0d3e1cabb17b147c4cccb0f27125b Author: Karel Zak Date: Wed Mar 30 13:58:04 2011 +0200 libmount: small lock code cleanup Signed-off-by: Karel Zak shlibs/mount/src/lock.c | 29 +++++++++++++++-------------- shlibs/mount/src/tab_update.c | 21 ++++++++++++--------- shlibs/mount/src/utils.c | 4 ++-- 3 files changed, 29 insertions(+), 25 deletions(-) commit 4978e3496dfa5ee6a3682edcce5e1678214bf507 Author: Karel Zak Date: Wed Mar 30 09:30:05 2011 +0200 libmount: block signals when writing to mtab Signed-off-by: Karel Zak shlibs/mount/src/context.c | 26 ++++++++++++++++------- shlibs/mount/src/libmount.h.in | 1 + shlibs/mount/src/libmount.sym | 1 + shlibs/mount/src/lock.c | 43 +++++++++++++++++++++++++++++++++++++++- shlibs/mount/src/tab_update.c | 28 ++++++++++--------------- 5 files changed, 73 insertions(+), 26 deletions(-) commit 2cb54ba44bae487b09ce598431bf936729666ff5 Author: Sergey Gusarov Date: Fri Mar 25 16:54:05 2011 +0300 blkid: small fix for safe_print() This small fix makes it possible to print the first unprintable character with code 128 from ASCII table. Signed-off-by: Sergey Gusarov misc-utils/blkid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 5351247a7089b4e2d5bebad37d3bc46ad936bc14 Author: Karel Zak Date: Tue Mar 29 10:19:56 2011 +0200 umount: use UMOUNT_NOFOLLOW for non-root users The UMOUNT_NOFOLLOW umount2() flag is supported since kernel 2.6.34. Signed-off-by: Karel Zak mount/umount.c | 98 +++++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 87 insertions(+), 11 deletions(-) commit 98698c0f6928bdee4227e0807e0d26387f7fd5a1 Author: Davidlohr Bueso Date: Tue Mar 22 10:42:09 2011 -0300 include: [c.h] add definition wrappers for old libc versions Signed-off-by: Davidlohr Bueso Signed-off-by: Karel Zak include/c.h | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) commit 7b632124ef14379a43e67e9282e4f51127cbf00d Author: Karel Zak Date: Mon Mar 28 12:40:24 2011 +0200 libmount: create a default lock for mtab update Now it's necessary to explicitly create a lock for mnt_update_table(). It seems better to create the lock in mnt_update_table() by default to skip this extra step. Reported-by: Jan Engelhardt Signed-off-by: Karel Zak shlibs/mount/src/tab_update.c | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) commit 2bb4620755e205e7b151d0e8bc8fc78e43c24050 Author: Karel Zak Date: Fri Mar 18 10:25:42 2011 +0100 ddate: remove non-ascii chars from ddate Signed-off-by: Karel Zak misc-utils/ddate.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) commit 6e28b532c3b46c3e45775c3931f9f8fac3d57942 Author: Karel Zak Date: Fri Mar 18 09:52:07 2011 +0100 tailf: support --lines 0 Signed-off-by: Karel Zak text-utils/tailf.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 69347522f4d5473b4b922134d2de67aca407039c Author: Karel Zak Date: Thu Mar 17 22:58:05 2011 +0100 fdisk: check index before access to array [coverity scan] Signed-off-by: Karel Zak fdisk/fdisksgilabel.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) commit 8cd2a76b5ac7e603a12e55833e48604b7d6918b2 Author: Karel Zak Date: Wed Mar 16 14:06:23 2011 +0100 libblkid: use blkid_probe_get_buffer() more carefully Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/hfs.c | 6 ++++-- shlibs/blkid/src/superblocks/udf.c | 8 +++++--- shlibs/blkid/src/superblocks/vfat.c | 8 +++++--- 3 files changed, 14 insertions(+), 8 deletions(-) commit 73f60bc3d577f5b53db26c8de64a8800472e06b4 Author: Karel Zak Date: Mon Mar 14 14:33:53 2011 +0100 libmount: cleanup *_do_[u]mount() return codes and docs Signed-off-by: Karel Zak shlibs/mount/src/context.c | 5 ++++- shlibs/mount/src/context_mount.c | 22 +++++++++++++++++----- shlibs/mount/src/context_umount.c | 22 +++++++++++++++++----- 3 files changed, 38 insertions(+), 11 deletions(-) commit 4ccfd1c2ac80e4becb702b0f9b2a2a1b2e84165d Author: Karel Zak Date: Fri Mar 11 16:21:20 2011 +0100 tests: update GPT test Signed-off-by: Karel Zak tests/expected/blkid/lowprobe-pt-gpt | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) commit ab25e7722cc8cb47ed7a1a4bb5ab893cde526ae0 Author: Karel Zak Date: Fri Mar 11 16:12:20 2011 +0100 blkid: fix double free [coverity scan] Signed-off-by: Karel Zak misc-utils/blkid.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) commit edaf7123051abebbc80dc7d2615afb46db497f06 Author: Karel Zak Date: Fri Mar 11 15:00:30 2011 +0100 lib: [tt.c] dereferencing data before a null check [coverity scan] Signed-off-by: Karel Zak lib/tt.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 9251af7dc83d6383af77b58d1a2cbd5c5b676804 Author: Karel Zak Date: Fri Mar 11 14:25:45 2011 +0100 tailf: fix open() return value check [coverity scan] Signed-off-by: Karel Zak text-utils/tailf.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 24bc6202865be720b19e0eb3802de163248bff1f Author: Karel Zak Date: Fri Mar 11 13:57:14 2011 +0100 libmount: keep code more readable for analyzers [coverity scan] This is not a bug ('ent' is always non-NULL is 'm' is non-NULL), but let's keep static analyzes and humans who read the code happy. Signed-off-by: Karel Zak shlibs/mount/src/optstr.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit dfab42d4463797d6ed136bd66101ba2d0d1e3b75 Author: Karel Zak Date: Fri Mar 11 13:40:33 2011 +0100 libblkid: fix typo in *_to_cpu() usage in raid detection [coverity scan] Signed-off-by: Karel Zak shlibs/blkid/src/superblocks/linux_raid.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 487b179c44a5afb4bbbf4ec2337f54c3d5a61f7b Author: Karel Zak Date: Fri Mar 11 13:36:00 2011 +0100 lsblk: fix strtoul() usage [coverity scan] Signed-off-by: Karel Zak misc-utils/lsblk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 65107497a1d7434d540bedebe731661345b498df Author: Karel Zak Date: Fri Mar 11 13:31:07 2011 +0100 libblkid: add PART_ENTRY_* to docs Signed-off-by: Karel Zak shlibs/blkid/src/blkidP.h | 2 +- shlibs/blkid/src/partitions/partitions.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletions(-) commit a64eadfb2856d83b90927aaca057ed8c69f9f003 Author: Karel Zak Date: Fri Mar 11 13:23:17 2011 +0100 findmnt: check mnt_tab_next_fs() return code [coverity scan] Signed-off-by: Karel Zak misc-utils/findmnt.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit 9c7684ee322586e5eb81aea52a3faaf004f14c50 Author: Karel Zak Date: Fri Mar 11 10:49:08 2011 +0100 lsblk: use ssize_t for readlink() return code Signed-off-by: Karel Zak misc-utils/lsblk.c | 2 +- misc-utils/namei.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 097fc579c2c36f50c1f8b76bac7c8cd5114c7d4d Author: Karel Zak Date: Tue Mar 8 13:32:05 2011 +0100 blkid: don't ignore -i Signed-off-by: Karel Zak misc-utils/blkid.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit 2960f4908942cd01b6df902045cc24cefef2316e Author: Sami Kerola Date: Sun Feb 27 13:05:09 2011 +0100 include: [c.h]: typeof to __typeof__ fix Signed-off-by: Sami Kerola include/c.h | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) commit dcd4273e0289bdfca7b602974c2d0807b9221cb4 Author: Sami Kerola Date: Thu Feb 24 20:16:39 2011 +0100 logger: fix variable type compiler warning Signed-off-by: Sami Kerola misc-utils/logger.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 468d79932797bff9dfd41c8a0d0e2464c91692a2 Author: Karel Zak Date: Mon Mar 7 10:06:24 2011 +0100 mount: update mtab on "-f" and compiled with libmount Reported-by: silvan minghetti Signed-off-by: Karel Zak mount/mount.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) commit e39accefb47738767a38b42db14eaf93453b04d3 Author: Karel Zak Date: Fri Mar 4 14:44:29 2011 +0100 umount: segfaults with inconsistent entry in /etc/fstab Addresses: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/726283 Reported-by: Greg Brockman Signed-off-by: Karel Zak lib/mangle.c | 2 ++ mount/mount_mntent.c | 3 +++ mount/umount.c | 2 +- 3 files changed, 6 insertions(+), 1 deletions(-) commit 06ac10f49a6abf4e0b17ed1ca0c41970d91caff0 Author: Karel Zak Date: Tue Mar 1 15:31:49 2011 +0100 libblkid: fix gcc warnings Signed-off-by: Karel Zak shlibs/blkid/src/partitions/gpt.c | 2 +- shlibs/blkid/src/read.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) commit dbf0ae9f69fb41cdf2f9bc2029c807690414f07c Author: Karel Zak Date: Tue Mar 1 10:01:21 2011 +0100 libblkid: fix EFI GPT uuid byte order Intel uses little-endians for UUID, the rest of the sane world uses 16 byte big-endian array... Reported-by: Andrew Lutomirski Signed-off-by: Karel Zak shlibs/blkid/src/partitions/gpt.c | 34 +++++++++++++++++++++++----------- 1 files changed, 23 insertions(+), 11 deletions(-) commit 9c2b44e668a2475752ccae1d0255ac92d3c85002 Author: Karel Zak Date: Thu Feb 24 14:03:44 2011 +0100 libblkid: try to detect if PT is newer than LVM LVM (pvcreate) wipes the begin of the device. If there is a PT in the wiped area then LVM signature is obsolete. # pvcreate /dev/sdb # fdisk /dev/sdb old version: # blkid -p -o udev /dev/sdb ID_FS_TYPE=LVM2_member new version: # blkid -p -o udev /dev/sdb ID_PART_TABLE_TYPE=dos Reported-by: Matej Cepl Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=679799 Signed-off-by: Karel Zak shlibs/blkid/src/blkidP.h | 10 ++++ shlibs/blkid/src/partitions/dos.c | 3 + shlibs/blkid/src/partitions/gpt.c | 2 + shlibs/blkid/src/partitions/partitions.c | 2 +- shlibs/blkid/src/probe.c | 78 ++++++++++++++++++++++++++++++ shlibs/blkid/src/superblocks/lvm.c | 6 ++ 6 files changed, 100 insertions(+), 1 deletions(-) commit 478d3d6400a57ac924bc22df023146ff513ee25c Author: Dave Reisner Date: Mon Feb 21 08:51:24 2011 -0500 lsblk: bitwise or TT_FL_ASCII with tt_flags instead of setting Signed-off-by: Dave Reisner misc-utils/lsblk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 70aaaf5c565bcb66ef268b539bde00acee99879b Author: Sami Kerola Date: Sun Feb 20 13:21:17 2011 +0100 scriptreplay: bug in argument check Number of arguments cannot be at the same time too many and few. Signed-off-by: Sami Kerola misc-utils/scriptreplay.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit a7eef152cfc67e733d7244f1c190a5581e109357 Author: Sami Kerola Date: Sun Feb 20 13:21:13 2011 +0100 script: fix compiler warnings Signed-off-by: Sami Kerola misc-utils/script.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) commit 3f2906ccbfcba6bb1ea4ceb1bf633e529ece4dd5 Author: Karel Zak Date: Mon Feb 21 15:35:04 2011 +0100 lib: [strutils.c] more robust strtol checks Signed-off-by: Karel Zak lib/strutils.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 5ddee952e63b7902d6c2194ef60fb9988603ed11 Author: Karel Zak Date: Mon Feb 21 15:12:30 2011 +0100 tests: add tests for [u]mount regular file Signed-off-by: Karel Zak tests/expected/mount/regfile | 1 + tests/ts/mount/regfile | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 0 deletions(-) commit 33cee6675edecbd27c0628f8b7c74c7d88fc02b2 Author: Petr Uzel Date: Thu Feb 17 12:52:43 2011 +0100 umount: allow unmounting loopdev specified by associated file Make it possible to unmount a filesystem on a loop device if it is specified by associated backing file. It does not attempt to unmount anything if there are more than one loop device associated with the given file. Umount looks for associated loopdevice(s) only if umount is called with the regular file as an argument. Before: mount -o loop -t ext2 img mnt umount -v img > Could not find /home/puzel/upstream/util-linux/img in mtab > umount: img: not mounted After: mount -o loop -t ext2 img mnt umount -v img > img is associated with /dev/loop0, trying to unmount it > /dev/loop0 has been unmounted [kzak@redhat.com: - fix memory leak in lomount.c] Addresses: https://bugzilla.novell.com/show_bug.cgi?id=666161 Signed-off-by: Petr Uzel Signed-off-by: Karel Zak mount/lomount.c | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ mount/lomount.h | 1 + mount/umount.c | 22 ++++++++++++++++++++++ 3 files changed, 76 insertions(+), 0 deletions(-) commit fde25e6be6e00a0998eb58b4b9d0d0b9ad65dbfd Author: Karel Zak Date: Fri Feb 18 14:36:04 2011 +0100 lsblk: fix readlink() usage Reported-by: Steve Grubb Signed-off-by: Karel Zak misc-utils/lsblk.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit 277325e36bcc3d399e6d6ee51ce0dcd3849a5c62 Author: Karel Zak Date: Thu Feb 17 12:00:36 2011 +0100 chsh: fix gcc link() warn_unused_result warning setpwnam.c:176:9: warning: ignoring return value of ‘link’, declared with attribute warn_unused_result Signed-off-by: Karel Zak login-utils/setpwnam.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) commit e2b3fbe93dcbf12faee44cc3babd8db9ceb2ca2f Author: Karel Zak Date: Thu Feb 17 11:56:51 2011 +0100 fsck: fix -C parsing Reported-by: Steve Grubb Signed-off-by: Karel Zak fsck/fsck.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 5b8fdf734904498ddca796ba6a423732ceb757e1 Author: Karel Zak Date: Thu Feb 17 11:23:24 2011 +0100 chsh: fix small memory leak Reported-by: Steve Grubb Signed-off-by: Karel Zak login-utils/setpwnam.c | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) commit a5300bb024edb55ed7b26d0e070d8c89f54a63c8 Author: Karel Zak Date: Thu Feb 17 11:16:43 2011 +0100 login: does not ignore setgid() return code for non-roots Reported-by: Steve Grubb Signed-off-by: Karel Zak login-utils/login.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) commit c16bbb7a052d8810e94e8effbe7540460070ed2a Author: Karel Zak Date: Thu Feb 17 11:02:26 2011 +0100 fdisk: more robust whole-disk detection In lib/wholedisk.c, i is set to 0. If fd was a -1, then at line 18 geometry.start is used without it being initialized. Reported-by: Steve Grubb Signed-off-by: Karel Zak lib/wholedisk.c | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-) commit 5cb3948081bf7203a4ae538831195b310812d921 Author: Petr Uzel Date: Mon Feb 14 14:43:25 2011 +0100 libuuid: do not use invalid file descriptor Signed-off-by: Petr Uzel shlibs/uuid/src/gen_uuid.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) commit 77de035ae19a54b9d9a83163f5410a3b4c14aa9a Author: Petr Uzel Date: Mon Feb 14 14:43:24 2011 +0100 libuuid: manpage spelling fixes Signed-off-by: Petr Uzel shlibs/uuid/man/uuid_generate.3 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) commit d8a47b41a0b3f848989b5cdd072789d973574789 Author: Petr Uzel Date: Mon Feb 14 14:43:23 2011 +0100 libuuid: fix test in get_clock() Signed-off-by: Petr Uzel shlibs/uuid/src/gen_uuid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 80bae4cddd3465af3762904e5e4db92d78bff4a8 Author: Petr Uzel Date: Mon Feb 14 14:43:22 2011 +0100 uuidd: fix manpage: libuuid(3) does not exist Signed-off-by: Petr Uzel misc-utils/uuidd.8 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) commit 8fd1f04e5576d299e4e6f8cd3da8cc5f638b7c77 Author: Dave Reisner Date: Tue Feb 15 10:06:08 2011 +0100 lib: [strutils] avoid integer overflow on large values This is visible on a 2TB disk via lsblk, where a large partition incorrectly displays as 1.171798692T instead of 1.8T. This is corrected by using a uint64_t type instead of a simple int -- consistant with the type used in lsblk.c to represent the raw size in bytes. [kzak@redhat.com: - add EiB support - add size_to_human_string() to regression tests] Signed-off-by: Dave Reisner Signed-off-by: Karel Zak lib/strutils.c | 18 +++++++++++--- tests/expected/misc/strtosize | 52 ++++++++++++++++++++-------------------- 2 files changed, 40 insertions(+), 30 deletions(-) commit f295fff8dc701a6492df865b57a1715c762723c6 Author: Karel Zak Date: Fri Feb 11 10:45:09 2011 +0100 libmount: add fallbacks for old systems without umount2() syscall Reported-by: Peter Breitenlohner Signed-off-by: Karel Zak shlibs/mount/src/context_umount.c | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) commit 13f62248b2e784378b920242aadb193471a6d03b Author: Karel Zak Date: Fri Feb 11 10:36:12 2011 +0100 include: [at.h]: include c.h for PATH_MAX Reported-by: Peter Breitenlohner Signed-off-by: Karel Zak include/at.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) commit bd351f685f6d37e5d0003d7c4af050458e200ce0 Author: Karel Zak Date: Fri Feb 11 10:18:00 2011 +0100 libmount: replace mkostmps() with more portable mkstemp() Reported-by: Peter Breitenlohner Signed-off-by: Karel Zak shlibs/mount/src/mountP.h | 2 +- shlibs/mount/src/tab_update.c | 2 +- shlibs/mount/src/utils.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) commit 0806c3cd74e7563671027c4eb65485a76536d0e0 Author: Karel Zak Date: Fri Feb 11 09:42:49 2011 +0100 build-sys: don't build lsblk on Linux without openat() Reported-by: Peter Breitenlohner Signed-off-by: Karel Zak configure.ac | 9 +++++++++ misc-utils/Makefile.am | 2 +- 2 files changed, 10 insertions(+), 1 deletions(-) commit 0198bb456b9a35a8b973f2978883cadc443499a3 Author: Karel Zak Date: Fri Feb 11 09:06:27 2011 +0100 partx, lsblk: fix gettext calls Reported-by: Peter Breitenlohner Signed-off-by: Karel Zak misc-utils/lsblk.c | 2 +- partx/partx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)