Commit Graph

10418 Commits

Author SHA1 Message Date
Karel Zak 44338f7fe6 build-sys: release++ (v2.28)
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-04-12 12:33:03 +02:00
Karel Zak 6ac8cab4ce docs: update v2.28-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-04-12 12:31:56 +02:00
Karel Zak ac920791f3 docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-04-12 12:30:40 +02:00
Karel Zak 98db6bb539 po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-04-12 12:29:25 +02:00
Yuri Chornoivan de61006a13 po: update uk.po (from translationproject.org) 2016-04-12 12:13:51 +02:00
Sebastian Rasmussen bca082fa25 po: update sv.po (from translationproject.org) 2016-04-12 12:13:51 +02:00
Rafael Fontenelle c9c2e8c473 po: update pt_BR.po (from translationproject.org) 2016-04-12 12:13:51 +02:00
Jakub Bogusz aee73e18ad po: update pl.po (from translationproject.org) 2016-04-12 12:13:51 +02:00
Benno Schulenberg c19b269666 po: update nl.po (from translationproject.org) 2016-04-12 12:13:51 +02:00
Takeshi Hamasaki 98ea3d6c0a po: update ja.po (from translationproject.org) 2016-04-12 12:13:51 +02:00
Antonio Ceballos Roa 167b0f8625 po: update es.po (from translationproject.org) 2016-04-12 12:13:51 +02:00
Philipp Thomas d044dd791c po: update de.po (from translationproject.org) 2016-04-12 12:13:50 +02:00
Petr Písař 65650eca4d po: update cs.po (from translationproject.org) 2016-04-12 12:13:50 +02:00
Mike Frysinger 801afcb09b build-sys: fix cap-ng configure flag handling
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2016-04-12 11:33:15 +02:00
Ruediger Meier 50e6f15bb3 build-sys: add --disable-logger and --disable-lslogins
Now we are able to disable all programs which have systemd/journald
support. This feature is needed by openSUSE packagers who are building
util-linux in 2 stages to avoid build cycles.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2016-04-06 13:46:34 +02:00
Ruediger Meier bedd731163 tests: remove deprecated md5sum based fdisk/bsd test
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2016-04-06 13:46:34 +02:00
Ruediger Meier 1b7be556e5 tests: fix fdisk/bsd for hppa
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2016-04-06 13:46:34 +02:00
Ruediger Meier 2635b49721 tests: add fdisk/bsd hexdump for alpha
Taken from Debian build logs:
https://buildd.debian.org/status/fetch.php?pkg=util-linux&arch=alpha&ver=2.28~rc2-1&stamp=1459443555

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2016-04-06 13:46:34 +02:00
Kaligule 7d85a7e966 rename: add example to the man page
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-04-06 13:43:57 +02:00
Karel Zak d551d66891 lib/strutils: use int for fgetc()
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-04-04 11:01:15 +02:00
Karel Zak 30fbf2f679 getopt: make sure setprogname provided by non-Linux system
based on suggestion from Ruediger Meier.

Reported-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-04-04 10:41:37 +02:00
Sami Kerola 0fc63d38f3 bash-completion: update chrt completion
Add couple missing options, and make the completion overall work better.

That said completion is still incomplete, pardon the pun.  After user has
specified policy then giving a hint what priority needs to be specified is
theoretically possible, but such hint is not given.  There does not seem to
be easy way to know when user wants stops specifying options and move to
defining priority in: chrt [options] [prio] [command|pid].

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2016-04-04 10:26:03 +02:00
Sami Kerola b3a5067148 chrt: make --sched-* short options to require an argument
These options are expecting an argument, and the long options struct already
required them.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2016-04-04 10:26:03 +02:00
Karel Zak e9cd2e2bd9 libmount: Fix possible NULL dereference in get_btrfs_fs_root()
The function mnt_table_get_fs_root() should be robust enough to accept
NULL as mountinfo -- the right behaviour is to default to '/'.

The set_fs_root() (tab_update.c) has to understand when mountinfo is
necessary (for bind mounts and btrfs).

Reported-by: Stanislav Brabec <sbrabec@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-03-31 11:45:55 +02:00
Karel Zak 37dc502403 tests: add DM error target for blkid
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-03-30 15:19:27 +02:00
Karel Zak e04f386084 libblkid: revert mmap usage
The implementation has not been ready for I/O errors and it seems that
there is no elegant way how to resolve this issue. Linux returns
SIGBUS on mmap errors and play with signals (or longjumps) in shared
library is really bad idea.

It also seems that mmaped devices have some unexpected side-effects
with page-cache where for example dd returns old data for already
modified device etc.

Signed-off-by: Karel Zak <kzak@redhat.com>
2016-03-30 14:53:33 +02:00
Karel Zak 00e40d688a libfdisk: fix ref.counting in fdisk_apply_script() [clang analyze]
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-03-30 11:18:07 +02:00
Karel Zak 935f9d5b35 libmount: result of operation is garbage or undefined [clang analyze]
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-03-29 15:44:48 +02:00
Karel Zak c6121fec26 fdisk: remove dead assignment [clang analyze]
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-03-29 14:13:22 +02:00
Karel Zak 60ee341ba9 ipcs: make static analyzer happy [clang analyze]
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-03-29 14:02:57 +02:00
Karel Zak cf5828599a agetty: remove atoi() from argv[] parsing [clang analyze]
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-03-29 13:57:13 +02:00
Karel Zak 76839e9794 vipw: make tmp_file usage more robust [clang analyze]
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-03-29 13:23:32 +02:00
Karel Zak 50359e9794 build-sys: happy new year...
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-03-29 12:52:15 +02:00
Karel Zak fb637d6d09 build-sys: release++ (v2.28-rc2)
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-03-29 10:47:40 +02:00
Karel Zak a78bd24d03 docs: update v2.28-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-03-29 10:44:50 +02:00
Karel Zak 5b6b6e8c88 docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-03-29 10:42:14 +02:00
Karel Zak 784c8a40fa po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-03-29 10:38:01 +02:00
Takeshi Hamasaki 4bf2e02ceb po: update ja.po (from translationproject.org) 2016-03-29 10:34:55 +02:00
Karel Zak 64eca31f71 Merge branch 'tests-setarch' of https://github.com/rudimeier/util-linux
* 'tests-setarch' of https://github.com/rudimeier/util-linux:
  tests: improve setarch tests, regarding --uname-2.6 issues
  setarch: add "exec" message to --verbose
  build-sys: ignore vim .swp files
2016-03-24 09:54:54 +01:00
Ruediger Meier 33bed90a7f tests: improve setarch tests, regarding --uname-2.6 issues
Add some more tests:
  * error handling "unknown arch" and "unknown command"
  * "noop" test with host arch and no other options
  * all options except --uname-2.6
  * --uname-2.6 whithout any other options but handle fatal
    glibc error "kernel too old" (with debug output)
  * add a "real" --uname-2.6 test which validates uname(1)
    output

Note the "kernel too old" cases are systems where glibc was
configured to support only kernels > 3.0. On some archs
(e.g. x86) --uname-2.6 still works with such glibc because
2.6.39 had all needed features on board (e.g. vdso).
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=806911

Some people reported segfaults (after execvp) but I can only
reproduce it on arm* and aarch64 qemu-user-space builds. We
don't need to fix our tests for such broken systems where
also many other tests fail currently.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2016-03-24 08:14:34 +01:00
Romain Naour 90a9b9910c lsipc: don't free shm data if no shm id is found
There is a segfault in do_shm_global() when ipc_shm_get_info() return 0 and
ipc_shm_free_info() is called.

When no shm id is found, the memory allocated in shmds by ipc_shm_get_info() is
already free when ipc_shm_free_info() is called.

Move ipc_shm_free_info(shmds) inside the if statement where at least one shm id
is found.

Signed-off-by: Romain Naour <romain.naour@gmail.com>
2016-03-23 10:52:41 +01:00
Kent Overstreet 7ce27dc517 libblkid: Update for newer bcache superblocks
Later version of bcache add different checksum types, and allow for superblocks
greater than 4k - skipping the checksum check (as in most other probes) is the
easiest solution.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
2016-03-23 10:52:38 +01:00
Karel Zak 2d47fa3921 partx: fix --nr usage
Reported-by: Serge van den Boom <serge+util-linux@vdboom.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-03-22 15:49:00 +01:00
Ruediger Meier 9508e2972b setarch: add "exec" message to --verbose
Also we don't need fflush() in non-verbose case.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2016-03-22 14:13:33 +01:00
Ruediger Meier 8eefcbb8f5 build-sys: ignore vim .swp files
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2016-03-22 14:12:25 +01:00
Werner Fink 6988998b66 sulogin: Always make echo work after performing getpasswd even if root account is locked
If the root account is locked and no password was provided then the terminal
line is not set back to do echo of the input. This correct a small overlook
in commit 7ff1162e67

Signed-off-by: Werner Fink <werner@suse.de>
2016-03-22 10:50:39 +01:00
Karel Zak b4d1fbda1e lscpu: revert unnecessary path_exist()
The features file is there from 2.6.31 when Xen has been added to
kernel. Sorry.

Signed-off-by: Karel Zak <kzak@redhat.com>
2016-03-22 10:31:16 +01:00
Karel Zak 3421709a58 docs: update TODO file
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-03-22 10:26:35 +01:00
Dongli Zhang 0ebbe9f104 lscpu: correct the Virtualization type on Xen DomU PV guest
Nowadays, most Intel CPUs have "cpuid faulting" available which could trap
the execution of "cpuid" instruction when CPL>0  with GP fault. Thus,
"cpuid" instruction could trap to Xen hypervisor on the paravirtualized PV
guest on most servers today, except on old CPUs prior to 2011. On CPU after
2011, Xen will put "XenVMMXenVMM" on both HVM and PV guests, which could
have lscpu command erroneously classify the guest as type "full".  The
current lscpu command, which is based on "cpuid" instruction, still assumes
that it will not cause the trap to Xen hypervisor on Xen PV guest and uses
/proc/xen to identify whether it's running on PV DomU or not.  To identify
this kind of information under the help of
/sys/hypervisor/properties/features would be more accurate for the CPU
nowadays. The bit 5 (XENFEAT_mmu_pt_update_preserve_ad) of the features
will be set only when it's running on Xen PV domain. The combo of bit 3 and
8 (XENFEAT_supervisor_mode_kernel and XENFEAT_hvm_callback_vector) will be
set simultaneously only when it's running on Xen PVH domain.

[kzak@redhat.com: - add path_exist()]

Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-03-22 10:13:03 +01:00
Karel Zak 9e24b917f2 docs: add note about CLONE_NEWCGROUP support
The patch has been planned for weeks and now the kernel part is
already in Linus' tree. It's a new feature, but it's probably better
to merge the userspace stuff now (v2.28 rc1) than wait next 6 months
for the next util-linux release.

Signed-off-by: Karel Zak <kzak@redhat.com>
2016-03-21 21:13:25 +01:00