]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
10 years agobuild-sys: release++ (v2.25.2) stable/v2.25 v2.25.2
Karel Zak [Fri, 24 Oct 2014 10:24:12 +0000 (12:24 +0200)] 
build-sys: release++ (v2.25.2)

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agodocs: add v2.25.2-ReleaseNotes
Karel Zak [Fri, 24 Oct 2014 10:22:54 +0000 (12:22 +0200)] 
docs: add v2.25.2-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agodocs: update AUTHORS file
Karel Zak [Fri, 24 Oct 2014 10:20:51 +0000 (12:20 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agopo: merge changes
Karel Zak [Fri, 24 Oct 2014 10:15:40 +0000 (12:15 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agopo: update es.po (from translationproject.org)
Antonio Ceballos Roa [Fri, 24 Oct 2014 10:10:33 +0000 (12:10 +0200)] 
po: update es.po (from translationproject.org)

10 years agoblkid: remove extra trailing spaces in output
Karel Zak [Thu, 23 Oct 2014 12:43:31 +0000 (14:43 +0200)] 
blkid: remove extra trailing spaces in output

$  blkid | egrep -i 'sda.*label' | cat -A
/dev/sda2: UUID="8382f307-fb43-489f-ab38-8d4cf37ca88c" SEC_TYPE="ext2" TYPE="ext3" LABEL="test" $
/dev/sda5: UUID="0b46d673-8c23-4709-b92c-3fdf460e1dd4" TYPE="ext3" LABEL="rescue" SEC_TYPE="ext2" $
/dev/sda6: UUID="cb9d814f-d885-435b-8e6d-ac17c0ac5aa1" TYPE="ext3" LABEL="root" $
/dev/sda8: UUID="1e2851bd-cc6f-4d72-bf9f-c6fa754155b1" TYPE="ext3" LABEL="data" SEC_TYPE="ext2" $
/dev/sda9: UUID="d16a2f42-9a50-4489-a788-8624c832a7f3" TYPE="ext3" LABEL="storage" SEC_TYPE="ext2" $
/dev/sda7: TYPE="swap" LABEL="swap" UUID="8393acfa-d4bd-40fc-8eb9-5ccd8d85e103" $

Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586179
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agowhereis: reset search mask more carefully
Karel Zak [Thu, 23 Oct 2014 12:29:45 +0000 (14:29 +0200)] 
whereis: reset search mask more carefully

 # whereis -m cal -M /usr/share/man/man1/ -f ls
 cal: /usr/share/man/man1/cal.1.gz /usr/share/man/man1p/cal.1p.gz
 ls: /usr/bin/ls /usr/share/man/man1/ls.1.gz

the -M also resets the search mask, so for 'ls' it returns also
binaries. That's bug. Expected result is:

 # ./whereis -m cal -M /usr/share/man/man1/ -f ls
 cal: /usr/share/man/man1/cal.1.gz /usr/share/man/man1p/cal.1p.gz
 ls: /usr/share/man/man1/ls.1.gz

the search mask has to be sensitive only to -b -m -s options,
otherwise the semantic is pretty messy.

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agowhereis: cleanup debug stuff, fix argv[] usage
Karel Zak [Thu, 23 Oct 2014 11:44:00 +0000 (13:44 +0200)] 
whereis: cleanup debug stuff, fix argv[] usage

* use debug stuff from include/debug.h and make whereis(1) sensitive
  to WHEREIS_DEBUG=0xffff mask

* fix problem with argv[] usage

  # whereis -b -m -M /usr/share/man/man1 -B /usr/bin -f gcc
  bin: /usr/local/bin
  gcc: /usr/bin/gcc /usr/lib/gcc /usr/libexec/gcc /usr/share/man/man1/gcc.1.gz

the code ignores "-B" and /usr/bin is interpreted as search pattern,
expected result is:

  # whereis -b -m -M /usr/share/man/man1 -B /usr/bin -f gcc
  gcc: /usr/share/man/man1/gcc.1.gz /usr/bin/gcc

Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765306
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agofdisk: add section about sizes to the man page
Karel Zak [Thu, 23 Oct 2014 10:03:31 +0000 (12:03 +0200)] 
fdisk: add section about sizes to the man page

Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594005
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agodocs: remove obsolete READMEs for (s)fdisk
Karel Zak [Thu, 23 Oct 2014 09:35:18 +0000 (11:35 +0200)] 
docs: remove obsolete READMEs for (s)fdisk

10 years agoterminal-colors.d: fix filter by name
Karel Zak [Wed, 22 Oct 2014 14:36:55 +0000 (16:36 +0200)] 
terminal-colors.d: fix filter by name

Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766077
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agosetterm: fix dubious one-bit signed bitfield [smatch scan]
Sami Kerola [Wed, 15 Oct 2014 21:19:26 +0000 (22:19 +0100)] 
setterm: fix dubious one-bit signed bitfield [smatch scan]

term-utils/setterm.c:165:24: error: dubious one-bit signed bitfield

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agomount: don't ignore mtab for --bind -o remount
Karel Zak [Fri, 17 Oct 2014 06:52:00 +0000 (08:52 +0200)] 
mount: don't ignore mtab for --bind -o remount

Reported-by: Phillip Susi <psusi@ubuntu.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoblkdiscard: fix err->errx()
Karel Zak [Tue, 14 Oct 2014 10:14:05 +0000 (12:14 +0200)] 
blkdiscard: fix err->errx()

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoscript: may be hangs
Andreas Henriksson [Tue, 14 Oct 2014 10:07:21 +0000 (12:07 +0200)] 
script: may be hangs

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoblkdiscard: fix underflow when offset is greater than device size
Raphael S. Carvalho [Thu, 9 Oct 2014 00:46:07 +0000 (21:46 -0300)] 
blkdiscard: fix underflow when offset is greater than device size

If offset (range[0]) is greater than device size (blksize), the variable 'end'
will be greater than blksize, and range[1] (length) will be recalculated.
The underflow happens when subtracting range[0] (offset) from blksize, thus
range[1] will be the result of an underflow. The bug leads to unwanted behavior
from the program, where range[1] is likely to be a high number and then will
discard a considerable amount of blocks from the device. The fix consists of
exitting the program with an error message when the condition stated above is
true. Spotted while auditing the code.

Signed-off-by: Raphael S. Carvalho <raphaelsc@cloudius-systems.com>
10 years agobuild-sys: check for libtoolize rather than libtool
Helmut Grohne [Tue, 7 Oct 2014 21:07:19 +0000 (23:07 +0200)] 
build-sys: check for libtoolize rather than libtool

The system libtool program has architecture dependent behaviour. It is
therefore unavailable in cross build environments. The only place it was
used in util-linux is autogen.sh to determine the availability of
libtool. All other places correctly use libtoolize or
$(top_builddir)/libtool.

Signed-off-by: Helmut Grohne <helmut@subdivi.de>
10 years agolinfdisk: cleanup fsync usage
Karel Zak [Wed, 17 Sep 2014 10:54:05 +0000 (12:54 +0200)] 
linfdisk: cleanup fsync usage

 * always use fsync() if the device open read-write
 * use sync() on demand

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: make yes/no dialogs more robust
Karel Zak [Wed, 10 Sep 2014 10:51:25 +0000 (12:51 +0200)] 
libfdisk: make yes/no dialogs more robust

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibmount: fix mnt_is_readonly() #ifdef
Karel Zak [Tue, 7 Oct 2014 11:41:40 +0000 (13:41 +0200)] 
libmount: fix mnt_is_readonly() #ifdef

This issue affects util-linux portability to GNU/HURD

Reported-by: Pino Toscano (from Red Hat)
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibblkid: zeroize errno on blkid_probe_get_buffer() success
Karel Zak [Tue, 7 Oct 2014 10:44:34 +0000 (12:44 +0200)] 
libblkid: zeroize errno on blkid_probe_get_buffer() success

Since 37f4060225df0591ab8e1dd676dbc8115d900d4f prober functions are
sensitive to errno, it seems more robust to set errno=0 with in
blkid_probe_get_buffer() on success than set the zero on all places
where we call blkid_probe_get_buffer().

Addresses: https://github.com/karelzak/util-linux/issues/119
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoflock: zero timeout is valid
Karel Zak [Tue, 7 Oct 2014 10:12:39 +0000 (12:12 +0200)] 
flock: zero timeout is valid

This patch reverts Sami's "timeout cannot be zero", introduced
in commit 605325b23b36238c8f3ae165e37cab9064553cf7.

The --timeout 0 has been originally interpreted as --nonblock. The
patch also add hint about this behavior to the man page.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1149974
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolosetup: improve man page -D docs
Karel Zak [Tue, 7 Oct 2014 09:54:33 +0000 (11:54 +0200)] 
losetup: improve man page -D docs

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: fix add_logical() assert
Karel Zak [Tue, 7 Oct 2014 09:33:46 +0000 (11:33 +0200)] 
libfdisk: fix add_logical() assert

The zero index is absolutely valid for extended partition (it means
extended partition could be the first partition on the device).

Reported-by: Christoph Hoopmann <christophhoopmann@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agohwclock: use fabs() instead abs() when argument is double
Sami Kerola [Sun, 28 Sep 2014 19:51:51 +0000 (20:51 +0100)] 
hwclock: use fabs() instead abs() when argument is double

sys-utils/hwclock.c:1219:13: warning: using integer absolute value function
      'abs' when argument is of floating point type [-Wabsolute-value]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agohexdump: remove deprecation message
Sami Kerola [Sun, 28 Sep 2014 19:51:36 +0000 (20:51 +0100)] 
hexdump: remove deprecation message

Message 'calling hexdump as od has been deprecated in favor of GNU
coreutils od' has informed the hexdump not to be used like that for three
and half years, and five releases.  It is time to get rid of notice.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agocfdisk: don't modify ncurses LINES and COLS
Karel Zak [Wed, 1 Oct 2014 09:38:49 +0000 (11:38 +0200)] 
cfdisk: don't modify ncurses LINES and COLS

On Sun, Sep 28, 2014 at 01:48:38AM -0700, pv4 wrote:
 If ncurses is build with --enable-reentrant, building
 util-linux-2.25.1 fails with the folllowing error:

     disk-utils/cfdisk.c: In function 'resize':
     disk-utils/cfdisk.c:202:9: error: lvalue required as left operand of assignment
        LINES = ws.ws_row;
              ^
     disk-utils/cfdisk.c:203:8: error: lvalue required as left operand of assignment
        COLS = ws.ws_col;
             ^

 man COLS gives the following:

     Depending on the configuration, these may be actual variables,
     or macros (see curs_threads(3X)) which provide read-only
     access to curses's state.  In either case, applications should
     treat them as read-only to avoid confusing the library.

Addresses: https://github.com/karelzak/util-linux/issues/125
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agosu: print proper core dump message when killed
pcpa [Sat, 27 Sep 2014 19:04:16 +0000 (16:04 -0300)] 
su: print proper core dump message when killed

An example is, in one terminal "sudo su -; echo $$", and in
another terminal, "kill -9  $PID" (the pid of the su -). It
should not print "(core dumped)", unless the kill signal
specified so, e.g. kill -7 or kill -11.

Signed-off-by: pcpa <paulo.cesar.pereira.de.andrade@gmail.com>
10 years agotests: fix the ipcs test for shmall being too big to show
Karel Zak [Wed, 1 Oct 2014 08:13:09 +0000 (10:13 +0200)] 
tests: fix the ipcs test for shmall being too big to show

Based on hints from Adam Sampson, Ruediger Meier and Sami Kerola.

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibmount: don't return root if path contains // or ending /
Søren Holm [Fri, 26 Sep 2014 16:35:11 +0000 (18:35 +0200)] 
libmount: don't return root if path contains // or ending /

If the path fx. is /foo/bar/ the initial stripoff will replace the last slash
with \0 and return a pointer to that exact \0 character. The same thing will
happen if the path contains // somewhere.

Signed-off-by: Søren Holm <sgh@sgh.dk>
10 years agolslogins: free after error [coverity scan]
Karel Zak [Fri, 26 Sep 2014 09:25:24 +0000 (11:25 +0200)] 
lslogins: free after error [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolslogins: cleanup after error [coverity scan]
Karel Zak [Fri, 26 Sep 2014 09:23:32 +0000 (11:23 +0200)] 
lslogins: cleanup after error [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agomount: improve --move docs
Karel Zak [Thu, 25 Sep 2014 09:01:39 +0000 (11:01 +0200)] 
mount: improve --move docs

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agologger: gettimeofday needs <sys/time.h>
Andreas Henriksson [Thu, 18 Sep 2014 23:36:37 +0000 (01:36 +0200)] 
logger: gettimeofday needs <sys/time.h>

Either works on linux, but kfreebsd build fails
if we don't use the <sys/time.h> include.

According to man gettimeofday the correct include is <sys/time.h>

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
10 years agobuild-sys: build libmount everywhere
Andreas Henriksson [Thu, 18 Sep 2014 23:36:35 +0000 (01:36 +0200)] 
build-sys: build libmount everywhere

This enables libmount to build on non-linux, which also
means we can build fsck on non-linux again.
(Since the context part of libmount still needs porting,
building the mount utility has instead been restricted
to only build on Linux.)

This has been build-tested on Debian GNU/kFreeBSD.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
10 years agolibmount: only include context on linux
Andreas Henriksson [Thu, 18 Sep 2014 23:36:34 +0000 (01:36 +0200)] 
libmount: only include context on linux

This is part of an attempt to make libmount buildable on non-linux.

The parts that need architecture specific porting is under
the context*.c files and the rest of libmount is useful/used
by for example fsck.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
10 years agolibmount: only invoke loopcxt on linux
Andreas Henriksson [Thu, 18 Sep 2014 23:36:33 +0000 (01:36 +0200)] 
libmount: only invoke loopcxt on linux

This is part of an attempt to make libmount buildable on non-linux.

The support for /dev/loop* is Linux-specific so just disable
it on non-linux for now.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
10 years agoumount: read mountinfo if --detach-loop given
Robert Schiele [Thu, 18 Sep 2014 06:09:59 +0000 (08:09 +0200)] 
umount: read mountinfo if --detach-loop given

Don't use the optimization not to read mountinfo from commit
6a52473ecd877227f6f7da2b95da0b51593ffec1 if --detach-loop was given
since we need the name of the loop device in that case and with the
optimization this is not present and thus the detach operation
obviously fails.

Signed-off-by: Robert Schiele <rschiele@gmail.com>
10 years agocal: `color` option documentation should match actual behaviour
Eugene Yunak [Sun, 21 Sep 2014 12:51:57 +0000 (15:51 +0300)] 
cal: `color` option documentation should match actual behaviour

10 years agomkfs.minix: fix couple compiler warnings
Sami Kerola [Wed, 3 Sep 2014 19:24:11 +0000 (20:24 +0100)] 
mkfs.minix: fix couple compiler warnings

disk-utils/mkfs.minix.c:366:3: warning: ISO C forbids 'return' with
expression, in function returning void [-Wpedantic]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agolast: make is_phantom() when kernel config does not include audit support
Sami Kerola [Mon, 11 Aug 2014 22:04:26 +0000 (23:04 +0100)] 
last: make is_phantom() when kernel config does not include audit support

When kernel CONFIG_AUDIT is not set the /proc/<pid>/loginuid information
is not present resulting live sessions to be marked 'gone - no logout' in
last(1) print out.  To go-around this change makes last(1) to look
/dev/<tty> device ownership as a substitute of loginuid.

The go-around seems to work fairly well, but it has it short comings.
For example after closing a X window session the /dev/ttyN file seems to
be owned by root, not the user who had it before entering to the X
session.  While that is suboptimal it is still better than an attmempt to
determine uid_t by looking owner of the /proc/<struct utmp ut_pid>, that
is a login(1) process running as root.

The issue was found using Archlinux installation.

$ pacman -Qi linux
Name           : linux
Version        : 3.16-2
[...]
Build Date     : Mon Aug 4 18:06:51 2014

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agobuild-sys: use -lutil for BSD only
Karel Zak [Wed, 17 Sep 2014 08:56:46 +0000 (10:56 +0200)] 
build-sys: use -lutil for BSD only

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoipcrm: add hacks to avoid FTBFS
Andreas Henriksson [Sun, 24 Aug 2014 16:04:44 +0000 (18:04 +0200)] 
ipcrm: add hacks to avoid FTBFS

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
10 years agoagetty: fixing FTBFS on !linux (Debian util-linux 2.20.1-1.2)
Christoph Egger [Sun, 24 Aug 2014 16:04:43 +0000 (18:04 +0200)] 
agetty: fixing FTBFS on !linux (Debian util-linux 2.20.1-1.2)

Handle vc flags missing on FreeBSD
Fix tty creation on kFreeBSD taking patch from 2.19

Addresses-Debian-Bug: #650185

10 years agoipcs: remaining kFreeBSD hackery for building.
Aurelien Jarno [Sun, 24 Aug 2014 16:04:42 +0000 (18:04 +0200)] 
ipcs: remaining kFreeBSD hackery for building.

Addresses-Debian-Bug: #527384
Signed-off-by: LaMont Jones <lamont@debian.org>
10 years agolib/blkdev: report correct disk size on GNU/kFreeBSD. Thanks Tuco.
Robert Millan [Sun, 24 Aug 2014 16:04:41 +0000 (18:04 +0200)] 
lib/blkdev: report correct disk size on GNU/kFreeBSD. Thanks Tuco.

Addresses-Debian-Bug: 592292

10 years agolibmount: hide details about failed search in fstab/mtab
Karel Zak [Tue, 16 Sep 2014 13:30:03 +0000 (15:30 +0200)] 
libmount: hide details about failed search in fstab/mtab

The current code returns -errno when not found "mount /foo" in fstab
and mtab does not exist (or /etc/mtab points to non-mounted /proc).

This is problem because the return value is too low-level and maybe
misinterpreted by top level code. It's better to always return
MNT_ERR_NOFSTAB when not found in fstab/mtab.

Reported-by: Dylan Cali <calid1984@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolscpu: fix cppcheck warnings
Boris Egorov [Mon, 15 Sep 2014 16:33:17 +0000 (23:33 +0700)] 
lscpu: fix cppcheck warnings

CppCheck founds a few wrong arguments in format strings and a NULL
pointer dereference.

Amended version with fixed strcmp() usage.

Signed-off-by: Boris Egorov <egorov@linux.com>
10 years agolsblk: add notes about udev to the man page
Karel Zak [Fri, 5 Sep 2014 08:02:45 +0000 (10:02 +0200)] 
lsblk: add notes about udev to the man page

Reported-by: Francis Moreau <francis.moro@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agodocs: fix mess in Release notes
Karel Zak [Wed, 3 Sep 2014 10:49:40 +0000 (12:49 +0200)] 
docs: fix mess in Release notes

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agobuild-sys: release++ (v2.25.1) v2.25.1
Karel Zak [Wed, 3 Sep 2014 09:49:34 +0000 (11:49 +0200)] 
build-sys: release++ (v2.25.1)

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agodocs: update v2.25.1-ReleaseNotes
Karel Zak [Wed, 3 Sep 2014 09:48:02 +0000 (11:48 +0200)] 
docs: update v2.25.1-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agopo: merge changes
Karel Zak [Wed, 3 Sep 2014 09:15:08 +0000 (11:15 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agopo: update zh_TW.po (from translationproject.org)
Wei-Lun Chao [Wed, 3 Sep 2014 08:32:55 +0000 (10:32 +0200)] 
po: update zh_TW.po (from translationproject.org)

10 years agopo: update vi.po (from translationproject.org)
Trần Ngọc Quân [Wed, 3 Sep 2014 08:32:55 +0000 (10:32 +0200)] 
po: update vi.po (from translationproject.org)

10 years agopo: update uk.po (from translationproject.org)
Yuri Chornoivan [Wed, 3 Sep 2014 08:32:55 +0000 (10:32 +0200)] 
po: update uk.po (from translationproject.org)

10 years agopo: update pt_BR.po (from translationproject.org)
Rafael Ferreira [Wed, 3 Sep 2014 08:32:55 +0000 (10:32 +0200)] 
po: update pt_BR.po (from translationproject.org)

10 years agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Wed, 3 Sep 2014 08:32:55 +0000 (10:32 +0200)] 
po: update pl.po (from translationproject.org)

10 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Wed, 3 Sep 2014 08:32:55 +0000 (10:32 +0200)] 
po: update nl.po (from translationproject.org)

10 years agopo: update fr.po (from translationproject.org)
David Prévot [Wed, 3 Sep 2014 08:32:55 +0000 (10:32 +0200)] 
po: update fr.po (from translationproject.org)

10 years agopo: update de.po (from translationproject.org)
Mario Blättermann [Wed, 3 Sep 2014 08:32:55 +0000 (10:32 +0200)] 
po: update de.po (from translationproject.org)

10 years agopo: update da.po (from translationproject.org)
Joe Hansen [Wed, 3 Sep 2014 08:32:55 +0000 (10:32 +0200)] 
po: update da.po (from translationproject.org)

10 years agopo: update cs.po (from translationproject.org)
Petr Písař [Wed, 3 Sep 2014 08:32:55 +0000 (10:32 +0200)] 
po: update cs.po (from translationproject.org)

10 years agobuild-sys: create parent directory for $(PATHFILES)
Michael Marineau [Wed, 3 Sep 2014 03:39:28 +0000 (20:39 -0700)] 
build-sys: create parent directory for $(PATHFILES)

When building outside the source tree there is nothing to guarantee the
target directory exists before writing to it. Most of the time this just
happens to work because something else creates the directory but not
always. For example:

    $ mkdir build
    $ cd build
    $ ../configure --disable-dependency-tracking
    $ make libuuid/uuid.pc
      GEN      libuuid/uuid.pc
    /bin/sh: line 2: libuuid/uuid.pc.tmp: No such file or directory
    make: *** [libuuid/uuid.pc] Error 1

10 years agobuild-sys: release++ (v2.25.1-rc1) v2.25.1-rc1
Karel Zak [Wed, 27 Aug 2014 12:38:38 +0000 (14:38 +0200)] 
build-sys: release++ (v2.25.1-rc1)

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agodocs: update v2.25.1-ReleaseNotes
Karel Zak [Wed, 27 Aug 2014 12:32:54 +0000 (14:32 +0200)] 
docs: update v2.25.1-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agodocs: update AUTHORS file
Karel Zak [Wed, 27 Aug 2014 12:29:54 +0000 (14:29 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agopo: merge changes
Karel Zak [Wed, 27 Aug 2014 12:28:12 +0000 (14:28 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agopo: update zh_CN.po (from translationproject.org)
Wylmer Wang [Wed, 27 Aug 2014 12:19:56 +0000 (14:19 +0200)] 
po: update zh_CN.po (from translationproject.org)

10 years agopo: update es.po (from translationproject.org)
Antonio Ceballos Roa [Wed, 27 Aug 2014 12:19:56 +0000 (14:19 +0200)] 
po: update es.po (from translationproject.org)

10 years agopo: update cs.po (from translationproject.org)
Petr Písař [Wed, 27 Aug 2014 12:19:56 +0000 (14:19 +0200)] 
po: update cs.po (from translationproject.org)

10 years agotests: kill output message change
Sami Kerola [Thu, 31 Jul 2014 22:05:25 +0000 (23:05 +0100)] 
tests: kill output message change

Commit 09af3db48e01e5744f15fd8a2395e0fed36526ea changed how a missing
process is reported, which caused kill test to fail when the test suite
is ran as root.

Reference: https://travis-ci.org/karelzak/util-linux/jobs/31312170
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agocfdisk: fix typo in the previous commit
Karel Zak [Tue, 26 Aug 2014 20:19:11 +0000 (22:19 +0200)] 
cfdisk: fix typo in the previous commit

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agocfdisk: wrong interpretation of yes in non-english language
Karel Zak [Tue, 26 Aug 2014 15:03:11 +0000 (17:03 +0200)] 
cfdisk: wrong interpretation of yes in non-english language

Reported-by: tnut@nutyx.org
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibfdisk: (dos) fix logical partitions add/delete code
Karel Zak [Tue, 26 Aug 2014 14:35:16 +0000 (16:35 +0200)] 
libfdisk: (dos) fix logical partitions add/delete code

If you delete logical partition and then create a new one than fdisk
(and cfdisk) might write EBR to the first sector on the device. That's
wrong of course; because you will lost MBR (primary partitions).

(Probably introduced by commit bcddbe96882b88d53b6bc0495e7322c0820a5122
 where code completely clears EBR stuff.)

Reported-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibmount: use -t for type.subtype in helpers API
Karel Zak [Thu, 21 Aug 2014 12:58:40 +0000 (14:58 +0200)] 
libmount: use -t for type.subtype in helpers API

References: https://github.com/karelzak/util-linux/issues/116
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agotests: apply travis clang PATH workaround
Sami Kerola [Wed, 20 Aug 2014 19:06:58 +0000 (22:06 +0300)] 
tests: apply travis clang PATH workaround

As seen in Travis build log the clang is not found, causing one of the
tests to fail.  This change adds a workaround from Travis issue 2607 to
util-linux.

Reference: https://travis-ci.org/karelzak/util-linux/jobs/33056101#L3630
Reference: https://github.com/travis-ci/travis-ci/issues/2607
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agotests: fix fdisk/bsd for the two possible sectors/offsets
Aurelien Jarno [Thu, 14 Aug 2014 22:26:24 +0000 (00:26 +0200)] 
tests: fix fdisk/bsd for the two possible sectors/offsets

BSD disklabels depend on the endianess, but also on the architecture as
one can see in include/pt-bsd.h with the BSD_LABELSECTOR and
BSD_LABELOFFSET #define. This cause the testsuite to fail on the
affected architectures as the disk image is not the same as the expected
result.

Commit 180b3a7e tried to fix the endianess, but the special PowerPC case
has been chosen as a reference, so it still fails for example on MIPS BE
or S/390.

This patch fixes the testsuite by converting the md5sums to the expected
values, still depending on the endianess, but also for the two possible
sectors/offsets. This has been tested on Alpha, MIPS, PowerPC and x86-64,
so this should cover all 4 cases.

Cc: Andreas Henriksson <andreas@fatal.se>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
10 years agolibfdisk: (gpt) allow to specify attr bit by API
Karel Zak [Thu, 14 Aug 2014 09:33:46 +0000 (11:33 +0200)] 
libfdisk: (gpt) allow to specify attr bit by API

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibblkid: (gpt) fix PT offset
Karel Zak [Mon, 11 Aug 2014 13:59:04 +0000 (15:59 +0200)] 
libblkid: (gpt) fix PT offset

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agoFix bash-completion Makemodule options
Stanislav Brabec [Fri, 8 Aug 2014 17:30:55 +0000 (19:30 +0200)] 
Fix bash-completion Makemodule options

10 years agotests: make ipcs limit calculations work when numbers are large
Sami Kerola [Wed, 6 Aug 2014 22:04:31 +0000 (23:04 +0100)] 
tests: make ipcs limit calculations work when numbers are large

Test suite  failed when I ran it with kernel 3.16.  Error is the
following.

tests/ts/ipcs/limits2: line 31: [: 18446744073692774399: integer expression expected

Reference: http://lkml.iu.edu/hypermail/linux/kernel/1406.0/01869.html
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agoswapon: remove invalid error string print outs
Sami Kerola [Wed, 6 Aug 2014 20:52:18 +0000 (21:52 +0100)] 
swapon: remove invalid error string print outs

To avoid messages like this:

$ swapon /dev/zram0
swapon: /dev/zram0: read swap header failed: Success

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
10 years agotextual: remove some inconsistent periods from error messages
Benno Schulenberg [Wed, 6 Aug 2014 20:35:06 +0000 (22:35 +0200)] 
textual: remove some inconsistent periods from error messages

While doing so, also improve translatability and some wordings.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolscpu: clean up vmware inline asm
Mike Frysinger [Tue, 5 Aug 2014 22:59:50 +0000 (18:59 -0400)] 
lscpu: clean up vmware inline asm

This code is not PIC clean which means it fails to build on hardened
32bit x86 systems (i.e. building as PIE).

While here, optimize the existing cpuid logic slightly.

URL: https://bugs.gentoo.org/518936
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
10 years agofdisk: update tests and clean up output
Karel Zak [Fri, 8 Aug 2014 10:35:20 +0000 (12:35 +0200)] 
fdisk: update tests and clean up output

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agolibblkid: (gpt) use real sector size to set PTMAGIC_OFFSET
Karel Zak [Fri, 8 Aug 2014 09:56:06 +0000 (11:56 +0200)] 
libblkid: (gpt) use real sector size to set PTMAGIC_OFFSET

So stupid and 5 years old bug...

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agofdisk: always print warning for mis-aligned partitions
Karel Zak [Fri, 8 Aug 2014 09:33:28 +0000 (11:33 +0200)] 
fdisk: always print warning for mis-aligned partitions

This patch restores the original fdisk behavior and always prints
information about misaligned partitions in 'p'print output.

Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agohexdump: Fix parse format of "byte count without repetition count"
HUANG Wei [Wed, 6 Aug 2014 04:20:18 +0000 (12:20 +0800)] 
hexdump: Fix parse format of "byte count without repetition count"

10 years agobuild-sys: fix double prefix with explict --libdir
Christoph Junghans [Fri, 1 Aug 2014 17:37:08 +0000 (11:37 -0600)] 
build-sys: fix double prefix with explict --libdir

* with configure --prefix=$HOME --libdir=$HOME usrlib_execdir
  ends up being ${exec_prefix}/${libbir}, which is double-prefixed

* fix: use explict given ${libbir} if is matches ${prefix}/*

Signed-off-by: Christoph Junghans <ottxor@gentoo.org>
10 years agolibfdisk: (gpt) add Microsoft Storage Spaces GUID
Sergei Antonov [Thu, 31 Jul 2014 10:46:06 +0000 (12:46 +0200)] 
libfdisk: (gpt) add Microsoft Storage Spaces GUID

Storage Spaces is Microsoft's logical volume management.
It has been around since Windows 8.

Cc: Karel Zak <kzak@redhat.com>
Signed-off-by: Sergei Antonov <saproj@gmail.com>
10 years agotests: allow non-inotify tailf to keep up
Andreas Henriksson [Sat, 26 Jul 2014 20:44:01 +0000 (22:44 +0200)] 
tests: allow non-inotify tailf to keep up

When tailf is not using inotify, it seems to sleep for 0.25s between
checks. Just giving a 0.1s time window between update and removal of the
input file thus gives little chance for tailf to succeed.
Similar between startup and append to file, make sure initial
content is read before appending additional data by bumping the time.

This should possibly be bumped much larger to make sure that
the tailf process actually gets a chance to run at all in the
given time window. Otherwise it might fail on really slow/overloaded
machines.
The drawback would then ofcourse be to increase the time it takes
to run the testsuite.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>
10 years agohwclock: check for permissions before use clock interface
Karel Zak [Mon, 28 Jul 2014 11:00:54 +0000 (13:00 +0200)] 
hwclock: check for permissions before use clock interface

Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agofdisk: fix -l [<device>]
Karel Zak [Mon, 28 Jul 2014 09:57:10 +0000 (11:57 +0200)] 
fdisk: fix -l [<device>]

 * don't use err(), but warn(), so don't stop after the first error

 * display all errors when "-l <device> ..." specified

 * display only EACCES errors when list whole disks from
   /proc/partitions ("fdisk -l" )

Reported-by: Boian Bonev <bbonev@ipacct.com>
Addresses: https://github.com/karelzak/util-linux/pull/106
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agohwclock: use pluralized translations.
Lauri Nurmi [Sat, 26 Jul 2014 09:35:54 +0000 (12:35 +0300)] 
hwclock: use pluralized translations.

10 years agomore: replace ad-hoc support for plurals with gettext plurals.
Lauri Nurmi [Sat, 26 Jul 2014 09:43:42 +0000 (12:43 +0300)] 
more: replace ad-hoc support for plurals with gettext plurals.

10 years agosfdisk: use pluralized translation.
Lauri Nurmi [Fri, 11 Jul 2014 18:51:03 +0000 (21:51 +0300)] 
sfdisk: use pluralized translation.

10 years agovarious: erase all traces of the long-obsolete xiafs
Benno Schulenberg [Fri, 25 Jul 2014 12:55:03 +0000 (14:55 +0200)] 
various: erase all traces of the long-obsolete xiafs

The xiafs filesystem was removed from the kernel fifteen years ago,
and any kernel that contained it reached end of life ten years ago.
It's time to stop mentioning it in the mount man page and elsewhere.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
10 years agocfdisk: reenable cursor when quitting
Karel Zak [Wed, 6 Aug 2014 13:39:27 +0000 (15:39 +0200)] 
cfdisk: reenable cursor when quitting

Based on master branch patches
cd8414f7a13aca0b3ea150b473b83f00819b312f
4f4daf8f90a7f4b01ce3edbf620d58058aaf2efd

This is probably correct to have curs_set() in ui_end(), but according
to Martin it does not work with slang library from signal handler.

Addresses-Debian-Bug: #755991
Reported-by: Martin Steigerwald <Martin@lichtvoll.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
10 years agotests: Fall back on host/getent in ts_resolve_host
Andreas Henriksson [Thu, 24 Jul 2014 19:28:44 +0000 (21:28 +0200)] 
tests: Fall back on host/getent in ts_resolve_host

Neither dig or nslookup would be my first option for resolving,
so add the host utility of ISC/bind fame and the (slow) getent
utility shipped with libc.

This extends the conditions introduced in ...

  commit a98de9696e1a898f925c9154e5693e73aec0779d
  Author: Ruediger Meier <ruediger.meier@ga-group.nl>
  Date:   Wed Jun 11 19:28:20 2014 +0200

      tests: skip some last tests if no dns support

... and should help us not skip certain tests when we have
network connection but none of dig or nslookup available.

Signed-off-by: Andreas Henriksson <andreas@fatal.se>