]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
9 years agomisc: fix redundant assignment and reassignments before use [cppcheck]
Sami Kerola [Tue, 4 Aug 2015 21:46:26 +0000 (22:46 +0100)] 
misc: fix redundant assignment and reassignments before use [cppcheck]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
9 years agotools: stop checkmans.sh validating libtool builds
Sami Kerola [Tue, 4 Aug 2015 20:36:05 +0000 (21:36 +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 <kerolasa@iki.fi>
9 years agolibmount: fix typo in mnt_optstr_prepend_option()
Karel Zak [Wed, 5 Aug 2015 11:39:06 +0000 (13:39 +0200)] 
libmount: fix typo in mnt_optstr_prepend_option()

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agologger: improve readability [smatch scan]
Karel Zak [Wed, 5 Aug 2015 11:23:34 +0000 (13:23 +0200)] 
logger: improve readability [smatch scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agomisc: fix indention [smatch scan]
Karel Zak [Wed, 5 Aug 2015 11:22:05 +0000 (13:22 +0200)] 
misc: fix indention [smatch scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agotools: add hexdump badconv() to noreturn smatch list
Karel Zak [Wed, 5 Aug 2015 11:18:40 +0000 (13:18 +0200)] 
tools: add hexdump badconv() to noreturn smatch list

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agomore: improve ugly macro
Karel Zak [Wed, 5 Aug 2015 11:09:12 +0000 (13:09 +0200)] 
more: improve ugly macro

no comment, just F*CK YOU to the original author of this crap...

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolibfdisk: (gpt) fix label pointer usage [smatch scan]
Karel Zak [Wed, 5 Aug 2015 10:59:16 +0000 (12:59 +0200)] 
libfdisk: (gpt) fix label pointer usage [smatch scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolibfdisk: remove impossible condition [smatch scan]
Karel Zak [Wed, 5 Aug 2015 10:55:30 +0000 (12:55 +0200)] 
libfdisk: remove impossible condition [smatch scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolibfdisk: make context->label usage more robust [smatch scan]
Karel Zak [Wed, 5 Aug 2015 10:53:03 +0000 (12:53 +0200)] 
libfdisk: make context->label usage more robust [smatch scan]

9 years agolibblkid: fix inconsistent indenting [smatch scan]
Karel Zak [Wed, 5 Aug 2015 10:48:54 +0000 (12:48 +0200)] 
libblkid: fix inconsistent indenting [smatch scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolibmount: variable dereferenced before check [smatch scan]
Karel Zak [Wed, 5 Aug 2015 10:46:56 +0000 (12:46 +0200)] 
libmount: variable dereferenced before check [smatch scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agocfdisk, sfdisk: remove unused variables
Karel Zak [Wed, 5 Aug 2015 10:41:46 +0000 (12:41 +0200)] 
cfdisk, sfdisk: remove unused variables

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agotools: add err_oom() to smatch no_return_funcs
Karel Zak [Wed, 5 Aug 2015 10:41:17 +0000 (12:41 +0200)] 
tools: add err_oom() to smatch no_return_funcs

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolib/blkdev: use 64-bit to count size in bytes
Karel Zak [Wed, 5 Aug 2015 10:40:35 +0000 (12:40 +0200)] 
lib/blkdev: use 64-bit to count size in bytes

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolib/timeutils: fix indention [smatch scan]
Karel Zak [Wed, 5 Aug 2015 10:39:00 +0000 (12:39 +0200)] 
lib/timeutils: fix indention [smatch scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agotailf: fix open() return value check [coverity scan]
Karel Zak [Wed, 5 Aug 2015 09:55:56 +0000 (11:55 +0200)] 
tailf: fix open() return value check [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agosetterm: remove dead code [coverity scan]
Karel Zak [Wed, 5 Aug 2015 09:51:04 +0000 (11:51 +0200)] 
setterm: remove dead code [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agoagetty: cleanup plymouth usage [coverity scan]
Karel Zak [Wed, 5 Aug 2015 09:45:57 +0000 (11:45 +0200)] 
agetty: cleanup plymouth usage [coverity scan]

* use macros for paths
* check open() return value

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agortcwake: improve open() usage [coverity scan]
Karel Zak [Wed, 5 Aug 2015 09:32:59 +0000 (11:32 +0200)] 
rtcwake: improve open() usage [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agosfdisk: clarification for sfdisk man page
Ian Wienand [Wed, 5 Aug 2015 07:21:27 +0000 (09:21 +0200)] 
sfdisk: clarification for sfdisk man page

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1249893
Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolsipc: cleanup usernames
Karel Zak [Tue, 4 Aug 2015 12:22:31 +0000 (14:22 +0200)] 
lsipc: cleanup usernames

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolsipc: check scols_line_refer_data() return code
Karel Zak [Tue, 4 Aug 2015 12:05:33 +0000 (14:05 +0200)] 
lsipc: check scols_line_refer_data() return code

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolsipc: don't duplicate already allocated data
Karel Zak [Tue, 4 Aug 2015 11:57:45 +0000 (13:57 +0200)] 
lsipc: don't duplicate already allocated data

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agobuild-sys: add --disable-assert
Karel Zak [Tue, 4 Aug 2015 11:40:44 +0000 (13:40 +0200)] 
build-sys: add --disable-assert

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolibmount: cleanup assert() usage
Karel Zak [Tue, 4 Aug 2015 11:21:42 +0000 (13:21 +0200)] 
libmount: cleanup assert() usage

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolibfdisk: cleanup assert() usage
Karel Zak [Tue, 4 Aug 2015 11:03:14 +0000 (13:03 +0200)] 
libfdisk: cleanup assert() usage

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolibblkid: remove dead code [coverity scan]
Karel Zak [Tue, 4 Aug 2015 10:31:39 +0000 (12:31 +0200)] 
libblkid: remove dead code [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agomkfs.minix: add hint for scanners [coverity scan]
Karel Zak [Tue, 4 Aug 2015 09:42:27 +0000 (11:42 +0200)] 
mkfs.minix: add hint for scanners [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agomkfs.minix: use xalloc
Karel Zak [Tue, 4 Aug 2015 09:39:49 +0000 (11:39 +0200)] 
mkfs.minix: use xalloc

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agomkfs.cramfs: remove dead code [coverity scan]
Karel Zak [Tue, 4 Aug 2015 09:26:45 +0000 (11:26 +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 <kzak@redhat.com>
9 years agofsck.minix: be more paranoid with block buffers [coverity scan]
Karel Zak [Tue, 4 Aug 2015 09:15:53 +0000 (11:15 +0200)] 
fsck.minix: be more paranoid with block buffers [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agocfdisk: check return value [coverity scan]
Karel Zak [Tue, 4 Aug 2015 08:59:52 +0000 (10:59 +0200)] 
cfdisk: check return value [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolsipc: ifdef SHM_* macros
Karel Zak [Mon, 3 Aug 2015 11:20:56 +0000 (13:20 +0200)] 
lsipc: ifdef SHM_* macros

Reported-by: Andreas Henriksson <andreas@fatal.se>
Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agotests: fix minix tests filenames
Karel Zak [Mon, 3 Aug 2015 10:51:13 +0000 (12:51 +0200)] 
tests: fix minix tests filenames

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agotests: try mkfs & mount all supported minix versions
Karel Zak [Mon, 3 Aug 2015 09:53:45 +0000 (11:53 +0200)] 
tests: try mkfs & mount all supported minix versions

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agobash-completion: update few options changed since v2.26
Sami Kerola [Sun, 2 Aug 2015 20:24:08 +0000 (21:24 +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 <kerolasa@iki.fi>
9 years agotests: fix minix test
Karel Zak [Mon, 3 Aug 2015 10:31:40 +0000 (12:31 +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 <kzak@redhat.com>
9 years agotests: add fsck.minix checks
Sami Kerola [Sun, 2 Aug 2015 18:29:00 +0000 (19:29 +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 <kerolasa@iki.fi>
9 years agotests: add way to control mkfs.minix time stamps
Sami Kerola [Sun, 2 Aug 2015 18:28:59 +0000 (19:28 +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 <kerolasa@iki.fi>
9 years agomkfs.minix: re-fix block count maths
Sami Kerola [Sat, 1 Aug 2015 18:01:00 +0000 (19:01 +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 <kerolasa@iki.fi>
9 years agounshare: remove angular brackets from literal argument in usage text
Benno Schulenberg [Sat, 1 Aug 2015 08:23:11 +0000 (10:23 +0200)] 
unshare: remove angular brackets from literal argument in usage text

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
9 years agodocs: fix some grammar and punctuation in the 2.27 release notes
Benno Schulenberg [Sat, 1 Aug 2015 08:23:10 +0000 (10:23 +0200)] 
docs: fix some grammar and punctuation in the 2.27 release notes

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
9 years agomount: remove duplications of --help and --version from usage text
Benno Schulenberg [Sat, 1 Aug 2015 08:23:09 +0000 (10:23 +0200)] 
mount: remove duplications of --help and --version from usage text

And slice up the affected portions.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
9 years agolslocks: slice up the recently modified usage text
Benno Schulenberg [Sat, 1 Aug 2015 08:23:08 +0000 (10:23 +0200)] 
lslocks: slice up the recently modified usage text

For ease of translation when it changes.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
9 years agotextual: adjust grammar and punctuation of some messages
Benno Schulenberg [Sat, 1 Aug 2015 08:23:07 +0000 (10:23 +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 <bensberg@justemail.net>
9 years agobuild-sys: mark script(1) as Linux only due to signalfd()
Karel Zak [Fri, 31 Jul 2015 13:27:10 +0000 (15:27 +0200)] 
build-sys: mark script(1) as Linux only due to signalfd()

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agobuild-sys: release++ (v2.27-rc1) v2.27-rc1
Karel Zak [Fri, 31 Jul 2015 10:08:18 +0000 (12:08 +0200)] 
build-sys: release++ (v2.27-rc1)

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agodocs: add v2.27-ReleaseNotes
Karel Zak [Fri, 31 Jul 2015 10:06:38 +0000 (12:06 +0200)] 
docs: add v2.27-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agodocs: update AUTHORS file
Karel Zak [Fri, 31 Jul 2015 09:02:35 +0000 (11:02 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agopo: merge changes
Karel Zak [Fri, 31 Jul 2015 08:56:34 +0000 (10:56 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolsblk: Display mountpoint even for top-level device
Milan Broz [Thu, 30 Jul 2015 14:18:28 +0000 (16:18 +0200)] 
lsblk: Display mountpoint even for top-level device

If a filesystem is mounted on top-level block device
with existing partitions, the mountpoint is not displayed
in the lsblk output.

This situation can happen by a configuration mistake
and lsblk could be used to detect such a mistake.

This patch allows searching for a mountpoint for all displayed
devices, not only for leaf nodes.
(It should be pretty cheap operation, mtab is parsed only once.)

For example: lsblk /dev/loop1
NAME      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
loop1       7:1    0  128M  0 loop /mnt/tst
└─loop1p1 259:0    0  127M  0 loop

Signed-off-by: Milan Broz <gmazyland@gmail.com>
9 years agosfdisk: don't print extra linebreaks on --quiet
Karel Zak [Thu, 30 Jul 2015 11:22:35 +0000 (13:22 +0200)] 
sfdisk: don't print extra linebreaks on --quiet

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolibfdisk: allow to change partition type for extended partitions
Karel Zak [Thu, 30 Jul 2015 10:55:56 +0000 (12:55 +0200)] 
libfdisk: allow to change partition type for extended partitions

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1248115
Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agohexdump: fix man page (-x vs. default output)
Karel Zak [Thu, 30 Jul 2015 09:49:15 +0000 (11:49 +0200)] 
hexdump: fix man page (-x vs. default output)

Reported-by: Reuti <reuti@staff.uni-marburg.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agodocs: make fsck.minix(8) more pretty
Sami Kerola [Wed, 24 Jun 2015 08:15:19 +0000 (09:15 +0100)] 
docs: make fsck.minix(8) more pretty

Use real table to device list, add missing new paragraph markers, remove
braces that cause reader to wonder if test is meant or not, squeeze error
code list, move references to bottom of the manual, and use mail or web
address macro when possible.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
9 years agofsck.minix: introduce long options to the command
Sami Kerola [Wed, 24 Jun 2015 08:15:18 +0000 (09:15 +0100)] 
fsck.minix: introduce long options to the command

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
9 years agofsck.minix: add minix v3 support
Sami Kerola [Wed, 24 Jun 2015 08:15:17 +0000 (09:15 +0100)] 
fsck.minix: add minix v3 support

Relates-to: a2657ae3ffb56616ac9c921886bcca8ef242499f
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
9 years agofsck.minix: rename device file descriptor variable
Sami Kerola [Wed, 24 Jun 2015 08:15:16 +0000 (09:15 +0100)] 
fsck.minix: rename device file descriptor variable

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
9 years agomkfs.minix: refactor root block content creation
Sami Kerola [Wed, 24 Jun 2015 08:15:15 +0000 (09:15 +0100)] 
mkfs.minix: refactor root block content creation

This does not belong to main() function.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
9 years agomkfs.minix: check requested blocks will not exceed available on device
Sami Kerola [Wed, 24 Jun 2015 08:15:14 +0000 (09:15 +0100)] 
mkfs.minix: check requested blocks will not exceed available on device

Earlier user could define more blocks than device, or backing file for
loopback file system, had available.  That lead to a system crash with
following commands;

fallocate --length 64KiB test-file
mkfs.minix -3 -i 842160 test-file 104882174
mkdir test-file.d
mount test-file test-file.d
cp /etc/service test-file.d
Killed
sudo umount test-file.d

The minix driver should probably not hang the whole kernel, but the least
that mkfs.minix ought to do is not to let users to get that condition
quite as easily.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
9 years agomkfs.minix: check user input carefully
Sami Kerola [Wed, 24 Jun 2015 08:15:13 +0000 (09:15 +0100)] 
mkfs.minix: check user input carefully

File name lenght and version input needs to be checked against each
other, which will determine what version of file system is in question.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
9 years agomkfs.minix: add fs_control structure, and remove most global variables
Sami Kerola [Wed, 24 Jun 2015 08:15:12 +0000 (09:15 +0100)] 
mkfs.minix: add fs_control structure, and remove most global variables

This allows better code structure in future.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
9 years agomkfs.minix: remove unuseful code
Sami Kerola [Wed, 24 Jun 2015 08:15:11 +0000 (09:15 +0100)] 
mkfs.minix: remove unuseful code

Checks about inodes vs block sizes does not add much robustness.  Both
values are derived at compilation time from struct minix_inode size, and
they form full definition circle.

Bad block check for none-block devices should not be supressed, user
requested it so let him have it.

Check for st_rdev == 0x0300 || st_rdev == 0x0340 was unreachable.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
9 years agomkfs.minix: use is_mounted() from libcommon
Sami Kerola [Wed, 24 Jun 2015 08:15:10 +0000 (09:15 +0100)] 
mkfs.minix: use is_mounted() from libcommon

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
9 years agomkfs.minix: introduce long options to the command
Sami Kerola [Wed, 24 Jun 2015 08:15:09 +0000 (09:15 +0100)] 
mkfs.minix: introduce long options to the command

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
9 years agomkfs.minix: increase maximum minix v2 and v3 file system sizes
Joshua Hudson [Wed, 24 Jun 2015 08:15:08 +0000 (09:15 +0100)] 
mkfs.minix: increase maximum minix v2 and v3 file system sizes

mkfs.minix misbehaves when attempting to create a large v2 or v3
filesystem.  I finally traced it down to attempting to create too many
inodes so that the first zone is past 65535 blocks in.  This obviously
doesn't work as the on-disk superblock says this is a 16 bit integer.

I wrote a patch that catches this, clamps to the absolute v2/v3 limit
(like it already does for v1), and sets the blocks per inode to a more
reasonable ratio when exceeding half a gigabyte.  Having a half-gig
filesystem with most files being smaller than 3k isn't really reasonable.

I suppose if you don't want to adjust inode sizes automatically you could
take that part out, and it will just crab sooner.

Given the non-attention in the code, I suspect nobody ever had cause to
try such a big minix filesystem.  Well I have my reasons involving some
deeply embedded work where ext2 would place too much strain on the
hardware.

Reviewed-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Joshua Hudson <joshudson@gmail.com>
9 years agolibmount: make mnt_get_filesystems() more robust [clang analyze]
Karel Zak [Thu, 30 Jul 2015 07:28:19 +0000 (09:28 +0200)] 
libmount: make mnt_get_filesystems() more robust [clang analyze]

The mnt_free_filesystems() relies on NULL as the last item in the
filesystems array. It's necessary to keep NULL there after failed
strdup() too, because we call mnt_free_filesystems() to deallocate
after error.

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolsipc: cleanup {user,group}name usage
Karel Zak [Thu, 30 Jul 2015 07:18:33 +0000 (09:18 +0200)] 
lsipc: cleanup {user,group}name usage

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agomcookie: fix -f usage [clang analyze]
Karel Zak [Wed, 29 Jul 2015 12:59:56 +0000 (14:59 +0200)] 
mcookie: fix -f usage [clang analyze]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolibsmartcols: make child-parent reference more robust [clang analyze]
Karel Zak [Wed, 29 Jul 2015 12:44:27 +0000 (14:44 +0200)] 
libsmartcols: make child-parent reference more robust [clang analyze]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agohwclock: make static analyzes more happy
Karel Zak [Wed, 29 Jul 2015 12:15:14 +0000 (14:15 +0200)] 
hwclock: make static analyzes more happy

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolibfdisk: result of operation is garbage or undefined [clang analyze]
Karel Zak [Wed, 29 Jul 2015 12:04:17 +0000 (14:04 +0200)] 
libfdisk: result of operation is garbage or undefined [clang analyze]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolibfdisk: undefined or garbage value returned to caller [clang analyze]
Karel Zak [Wed, 29 Jul 2015 12:01:40 +0000 (14:01 +0200)] 
libfdisk: undefined or garbage value returned to caller [clang analyze]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agofdisk: value is never read [clang analyze]
Karel Zak [Wed, 29 Jul 2015 11:59:19 +0000 (13:59 +0200)] 
fdisk: value is never read [clang analyze]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agofdisk: value is never read [clang analyze]
Karel Zak [Wed, 29 Jul 2015 11:57:28 +0000 (13:57 +0200)] 
fdisk: value is never read [clang analyze]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolsipc: value is never read [clang analyze]
Karel Zak [Wed, 29 Jul 2015 11:54:54 +0000 (13:54 +0200)] 
lsipc: value is never read [clang analyze]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agofdisk: value is never read [clang analyze]
Karel Zak [Wed, 29 Jul 2015 11:51:05 +0000 (13:51 +0200)] 
fdisk: value is never read [clang analyze]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agopo: update fr.po (from translationproject.org)
David Prévot [Wed, 29 Jul 2015 11:42:01 +0000 (13:42 +0200)] 
po: update fr.po (from translationproject.org)

9 years agopo: update da.po (from translationproject.org)
Joe Hansen [Wed, 29 Jul 2015 11:42:01 +0000 (13:42 +0200)] 
po: update da.po (from translationproject.org)

9 years agounshare: remove duplicate [make checkincludes]
Karel Zak [Wed, 29 Jul 2015 10:58:06 +0000 (12:58 +0200)] 
unshare: remove duplicate [make checkincludes]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolslogins: remove duplicate [make checkincludes]
Karel Zak [Wed, 29 Jul 2015 10:57:22 +0000 (12:57 +0200)] 
lslogins: remove duplicate [make checkincludes]

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolibmount: sort pseudo filesystems by LC_COLLATE=C
Karel Zak [Wed, 29 Jul 2015 10:43:45 +0000 (12:43 +0200)] 
libmount: sort pseudo filesystems by LC_COLLATE=C

Addresses: https://github.com/karelzak/util-linux/issues/212
Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agotasts: add logger octet counting test
Karel Zak [Wed, 29 Jul 2015 08:41:50 +0000 (10:41 +0200)] 
tasts: add logger octet counting test

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agologger: Add support to logger for RFC6587 octet counting
Alex Bligh [Wed, 15 Jul 2015 18:01:48 +0000 (19:01 +0100)] 
logger: Add support to logger for RFC6587 octet counting

This patch adds support to logger for RFC6587 octet counting.
RFC6587 provides support for two sorts of framing:

1. Octet counting (at RFC6587 s3.4.1)

   In essence each frame is preceded by a decimal length and a
   space.

2. Non-transparent framing (at RFC6587 s3.4.2), also called
   'octet stuffing'

   In essence each frame is terminated by a `\n`

Prior to this patch, logger used option 2 (non-transparent framing)
on TCP, and used no framing on UDP. After this patch, the default
behaviour is unchanged, but if the '--octet-count' option is supplied,
option 1 is used for both TCP and UDP. Arguably octet count framing
makes little sense on UDP, but some servers provide it and this
allows testing of those servers.

Signed-off-by: Alex Bligh <alex@alex.org.uk>
9 years agosfdisk: add --list-free
Karel Zak [Tue, 28 Jul 2015 13:54:07 +0000 (15:54 +0200)] 
sfdisk: add --list-free

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agofdisk: add 'F' command to list free unpartitioned space
Karel Zak [Tue, 28 Jul 2015 13:53:42 +0000 (15:53 +0200)] 
fdisk: add 'F' command to list free unpartitioned space

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agoMerge branch 'test-fixes' of https://github.com/rudimeier/util-linux
Karel Zak [Tue, 28 Jul 2015 10:15:56 +0000 (12:15 +0200)] 
Merge branch 'test-fixes' of https://github.com/rudimeier/util-linux

9 years agoRevert "tests: start script/race test only when --force specified"
Ruediger Meier [Sat, 4 Jul 2015 09:51:06 +0000 (11:51 +0200)] 
Revert "tests: start script/race test only when --force specified"

This reverts commit 8ba3f35e07f736a0165669ac787b016b4311eb29.

This test is not too slow anymore and BTW since last script refactoring
it does work now even on slow/heavy-loaded systems.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
9 years agoscript: improve SIG{TERM,QUIT,KILL} sensitivity
Karel Zak [Tue, 28 Jul 2015 08:36:29 +0000 (10:36 +0200)] 
script: improve SIG{TERM,QUIT,KILL} sensitivity

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agocfdisk: don't print obsolete CHS addresses
Karel Zak [Mon, 27 Jul 2015 13:49:14 +0000 (15:49 +0200)] 
cfdisk: don't print obsolete CHS addresses

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agocfdisk: make sure that output fits to terminal width
Karel Zak [Mon, 27 Jul 2015 13:29:37 +0000 (15:29 +0200)] 
cfdisk: make sure that output fits to terminal width

Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agolibsmartcols: reduce relative columns more aggressively
Karel Zak [Mon, 27 Jul 2015 12:29:38 +0000 (14:29 +0200)] 
libsmartcols: reduce relative columns more aggressively

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agofdisk: init libsmartcols debug
Karel Zak [Mon, 27 Jul 2015 11:33:09 +0000 (13:33 +0200)] 
fdisk: init libsmartcols debug

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agocfdisk: remove extra line between menu and info line
Karel Zak [Mon, 27 Jul 2015 10:35:53 +0000 (12:35 +0200)] 
cfdisk: remove extra line between menu and info line

Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agocfdisk: spell "label" in lower case
Benno Schulenberg [Sat, 25 Jul 2015 15:18:15 +0000 (17:18 +0200)] 
cfdisk: spell "label" in lower case

To be less shouty.  It is not an abbreviation like "UUID".

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
9 years agocfdisk: allow an uppercase X to toggle the extra info
Benno Schulenberg [Sat, 25 Jul 2015 15:18:14 +0000 (17:18 +0200)] 
cfdisk: allow an uppercase X to toggle the extra info

To make true the help text line that says that all commands
can be entered with either upper or lower case.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
9 years agobuild-sys: add --disable-cal
Karel Zak [Mon, 27 Jul 2015 09:49:29 +0000 (11:49 +0200)] 
build-sys: add --disable-cal

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agobuild-sys: fix test_colors build
Karel Zak [Fri, 24 Jul 2015 12:33:25 +0000 (14:33 +0200)] 
build-sys: fix test_colors build

Signed-off-by: Karel Zak <kzak@redhat.com>
9 years agotests: update build-sys tests
Karel Zak [Fri, 24 Jul 2015 11:15:04 +0000 (13:15 +0200)] 
tests: update build-sys tests

Signed-off-by: Karel Zak <kzak@redhat.com>