Commit Graph

8073 Commits

Author SHA1 Message Date
Ruediger Meier 15cb27895d build-sys: use automake's PYTHON primary for __init__.py
Actually the initial reason for this commit was to remove execute
permission from installed __init__.py.

Now after discovering automake's _PYTHON suffix we slightly cleanup
Makemodule.am and we will install byte compiled .pyc and .pyo files.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-06-03 13:12:43 +02:00
Ruediger Meier b95beee709 tests: ignore deprecated last
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-06-03 13:12:42 +02:00
Ruediger Meier 2f5aac3506 tests: remove deprecated mount tests
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-06-03 13:12:42 +02:00
Karel Zak 36e4bdf018 libsmartcols: fix docs
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-03 12:41:58 +02:00
Karel Zak 7a1c36ab38 docs: rename libs xml/version.xml to xml/version-utils.xml
It seems that gtk-docs stuff is confused when we use version.xml
(package version) and xml/version.xml (library version functions).

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-03 12:37:33 +02:00
Karel Zak 56ce2d586d buil-sys: disable in UL_BUILD_INIT() on --disable-all-programs
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-02 11:34:21 +02:00
Karel Zak 569ff0d3b2 build-sys: don't compile deprecated last(1) on --enable-all-programs
Reported-by: Ruediger Meier <sweet_f_a@gmx.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-02 11:21:35 +02:00
Csaba Kos 578a1691f6 script: fix spurious exit from input read loop on EINTR. 2014-06-02 10:14:30 +02:00
Csaba Kos 26ed9fb872 script: fix a rare deadlock after child termination 2014-06-02 10:14:07 +02:00
Karel Zak f92b26c184 libsmartcols: clean up test.c example
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-30 14:17:29 +02:00
Karel Zak 7cecd940bf docs: update TODO
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-30 13:50:10 +02:00
Karel Zak 3859baf9c5 Merge branch 'lscpu-detect-v3' of https://github.com/rudimeier/util-linux
* 'lscpu-detect-v3' of https://github.com/rudimeier/util-linux:
  lscpu: improve vmware detection
  tests: add lscpu IBM pSeries test data
  lscpu: detect OS/400 and pHyp hypervisors
  tests: add vbox lscpu dump
  lscpu: minor cleanup and improve hypervisor detection
2014-05-30 12:01:27 +02:00
Karel Zak 59cbbd71cd libblkid: (zfs) let's keep compiler happy
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-30 11:27:41 +02:00
Karel Zak 85aec6c702 Merge branch 'warnings-squashed' of https://github.com/rudimeier/util-linux
* 'warnings-squashed' of https://github.com/rudimeier/util-linux:
  build: fix some compiler warnings
2014-05-30 11:26:43 +02:00
Karel Zak cbebd20d26 libfdisk: (gpt) fix last LBA code for S_ISREG
Reported-by: Ruediger Meier <sweet_f_a@gmx.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-30 10:51:53 +02:00
Ruediger Meier 60cb2c3720 build: fix some compiler warnings
Most of them catched on 32bit gcc and icc.

disk-utils/fsck.cramfs.c:     printf format type
lib/boottime.c:               unused variables
misc-utils/cal.c:             set but never used
sys-utils/losetup.c:          set but never used
sys-utils/lscpu-dmi.c:        defined but not used
sys-utils/switch_root.c:      comparison between signed and unsigned
tests/helpers/test_sysinfo.c: printf format type
2014-05-30 01:18:09 +02:00
Karel Zak 27e6e446b9 lslogins: fix pretty-print columns
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-29 15:08:26 +02:00
Karel Zak b3f4f05632 lslogins: cleanup some command line options
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-29 15:05:10 +02:00
Karel Zak 8b13a4d89d lslogins: cleanup default outputs
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-29 14:48:45 +02:00
Karel Zak ed374569ae lslogins: cleanup -a output
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-29 14:17:41 +02:00
Karel Zak d4aa0ff138 lslogins: improve COL_PWD_WARN and COL_NPROCS desc
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-29 13:37:58 +02:00
Karel Zak 74fddd8623 lslogins: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-29 13:32:03 +02:00
Karel Zak f7aea533f4 lslogins: fix nologins check
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-29 13:24:35 +02:00
Karel Zak ea24eacc6b lslogins: cleanup time formats
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-29 13:21:57 +02:00
Ruediger Meier b7744730f6 lscpu: improve vmware detection
This patch comes from openSUSE / SLE. Original author was probably
Petr Uzel.
Internal SUSE references: fate310255, sr226509

VMmware backdoor assembler code has been fixed for old clang compiler
(travis), see
see http://llvm.org/bugs/show_bug.cgi?id=9379

CC: Stanislav Brabec <sbrabec@suse.cz>
CC: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-05-29 13:17:46 +02:00
Ruediger Meier b32488c121 tests: add lscpu IBM pSeries test data
Just adding missing files
  /proc/device-tree/ibm,partition-name
  /proc/device-tree/hmc-managed?
to our existing lscpu-ppc64-POWER7-64cpu dump.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-05-29 13:17:41 +02:00
Ruediger Meier 5bd31c6d6e lscpu: detect OS/400 and pHyp hypervisors
This patch comes originally from openSUSE / SLE. Author was probably
Petr Uzel.
Internal SUSE references: fate310255, sr226509

In comparison to the original patch we have slightly corrected iSeries
and pSeries detection according to Alexander Graf's comments on
util-linux@vger.kernel.org. Maybe we would need to add some more code
to detect pSeries emulated by Qemu/KVM.

CC: Stanislav Brabec <sbrabec@suse.cz>
CC: Petr Uzel <petr.uzel@suse.cz>
CC: Alexander Graf <agraf@suse.de>
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-05-29 13:16:32 +02:00
Ruediger Meier 0f0c558811 tests: add vbox lscpu dump
Taken from openSUSE-13.1 guest in VirtualBox-4.3.10 (host=Win7):
   Hypervisor vendor:     Oracle
   Virtualization type:   full

Dump was provides by Bernhard Voelker.

CC: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-05-29 13:14:59 +02:00
Karel Zak f47c6d3a59 lslogins: clean up password hash check
* rename to PWD-* column names
 * add PWD-DENY for accounts where is no possible to login by password
 * PWD-LOCK (was LOCKED) checks for valid but locked pawwords
 * LOGIN renamed to USER

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-29 12:48:40 +02:00
Karel Zak b5f81ce2f5 build-sys: add sys-utils/uname26.8 to gitignore
Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-29 11:50:44 +02:00
Karel Zak d8b2ddb7bb lslogins: remove --sort-by-name
If we really need a sort functionality hardcoded into lslogins(1) then we need
a generic sort options (like for lsblk,--sort <column>).

Note that it seems that "lslogins | sort --key <col>" is good enough for now as
lslogins(1) does not convert any data to human readable non-precise format (like
for example lsblk SIZE column etc.).

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-29 11:46:56 +02:00
Karel Zak 1624245ffe lslogins: improve nologins and shadow usage
* fix coding style
 * don't require shadow entries
 * check for /var/run/nologin

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-29 11:30:26 +02:00
Ruediger Meier ae2c3b5bee setarch: add generic support for setarch $(uname -m) ...
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-29 09:52:26 +02:00
Ruediger Meier 96ce475f96 lscpu: minor cleanup and improve hypervisor detection
- add HYPER_VBOX
- improve HYPER_VMWARE

This patch comes from openSUSE / SLE. Original author was probably
Petr Uzel.
Internal SUSE references: fate310255, sr226509

CC: Stanislav Brabec <sbrabec@suse.cz>
CC: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-05-29 01:27:25 +02:00
Karel Zak 13985252bb build-sys: fix typo, set HAVE_LIBUUID
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-28 10:05:22 +02:00
Karel Zak 9a4e9c9d54 build-sys: enable chfn and chsh by default
The util-linux version (is the best:-) uses libuser,
so it usable for non-local users (LDAP, etc.).

Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-28 09:57:55 +02:00
Karel Zak 705a823a6e Merge branch 'tests-stuff' of https://github.com/rudimeier/util-linux
* 'tests-stuff' of https://github.com/rudimeier/util-linux:
  tests: split off losetup scsi_debug part
  tests: fix, typo schedutils/cpuset
  tests: run tests in deterministic order
  tests: ts_scsi_debug_init skip instead of die
2014-05-28 09:37:41 +02:00
Stanislav Brabec d6ef7d6c69 losetup: don't ignore EBUSY in losetup when the loop device is given
losetup ignores the EBUSY error.  In the loop fo A_CREATE action, it skips
the error handling when errno = EBUSY.  It's OK for the case where no loop
device is specified, but the error has to be handled when the device is given
explicitly.

Author:  Takashi Iwai <tiwai@suse.de>
Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
2014-05-28 09:18:40 +02:00
Stanislav Brabec f7e2118508 losetup: don't clear FD at EBUSY error in loopcxt_setup_device()
loopback lib clears the existing FD unconditionally at error in
loopcxt_setup_device().  This is done even after EBUSY, thus the second call
actually clears the previous setup wrongly.

Author:  Takashi Iwai <tiwai@suse.de>
Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
2014-05-28 09:18:28 +02:00
Karel Zak f37b357b47 lslogins: print systemd journal logs
Co-Author: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-27 17:34:15 +02:00
Karel Zak 1ad36b5264 build_sys: fix default estate usage
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-27 17:22:28 +02:00
Ondrej Oprala d3a93df80d lslogins: count per-user processes
[kzak@redhat.com: - rename column, align to right]

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-27 17:01:05 +02:00
Karel Zak 127b33b875 Merge branch 'setterm' of git://github.com/kerolasa/lelux-utiliteetit
* 'setterm' of git://github.com/kerolasa/lelux-utiliteetit:
  docs: setterm.1 clean up manual page groff style
  docs: setterm.1 add options compatibility note
  docs: setterm.1 add missing options to manual page and remove duplicate
  setterm: add usage() descriptions
2014-05-27 16:23:46 +02:00
Karel Zak 8c19519930 Merge branch 'uuid' of git://github.com/kerolasa/lelux-utiliteetit 2014-05-27 16:15:30 +02:00
Ruediger Meier 07ac4aa9d4 cal: all output must use my_putstring
Replace all puts, fputs and printf calls by my_putstring() because
we don't want to mix different output channels (buffers).

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-05-27 16:12:56 +02:00
Petr Uzel ee6369973e sfdisk: suppress Linux-irrelevant warnings with -L
Sfdisk prints out a warning about extended partition not
starting at a cylinder boundary. Since this is irrelevant
for linux, the -L option should suppress this warning.

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2014-05-27 16:12:54 +02:00
Karel Zak 70e2ed25f6 docs: update howto regards to build-system changes
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-27 15:37:26 +02:00
Ruediger Meier 1ef2d4b4bf tests: split off losetup scsi_debug part
It's a pity that we would skip the whole test if scsi_debug is not
available.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
2014-05-27 15:36:15 +02:00
Karel Zak d37172b189 docs: remove obsolete cfdisk.txt
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-27 15:18:35 +02:00
Karel Zak 7477f356cb build-sys: add missing dependencies to libsmartcols
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-05-27 14:58:34 +02:00