]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Ruediger Meier [Thu, 10 Dec 2015 12:35:27 +0000 (13:35 +0100)]
tests: skip automake's empty "Testsuite summary"
We have no automake TESTS. Let's run check-local only.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Karel Zak [Thu, 10 Dec 2015 12:06:48 +0000 (13:06 +0100)]
lsblk: tiny man page update for --sort
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 10 Dec 2015 12:03:46 +0000 (13:03 +0100)]
lsblk: allow to --sort by hidden column
For example:
lsblk -o NAME --sort SIZE
prints NAMEs, but sort by SIZEs.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 10 Dec 2015 12:02:03 +0000 (13:02 +0100)]
libsmartcols: add SCOLS_FL_HIDDEN
Export "don't print this column" functionality by public API.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 10 Dec 2015 10:45:31 +0000 (11:45 +0100)]
libmount: add comment, remove TODO item
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 10 Dec 2015 10:18:04 +0000 (11:18 +0100)]
Merge branch 'test-fixes' of https://github.com/rudimeier/util-linux
* 'test-fixes' of https://github.com/rudimeier/util-linux:
tests: use xz instead of bzip2 for blkid images
tests: add some line tests
tests: avoid sed -E
Ruediger Meier [Wed, 9 Dec 2015 15:27:17 +0000 (16:27 +0100)]
tests: skip BLKDISCARD if unsupported
CC: Federico Simoncelli <fsimonce@redhat.com>
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Ruediger Meier [Wed, 9 Dec 2015 15:12:35 +0000 (16:12 +0100)]
tests: blkdiscard, check return values
CC: Federico Simoncelli <fsimonce@redhat.com>
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Ruediger Meier [Wed, 9 Dec 2015 12:01:51 +0000 (13:01 +0100)]
blkdiscard: don't report "zero range" at the end
We want to address the case that we have printed the last useful
stats line already within the loop. Avoiding an additional line
"Discarded 0 bytes ..." at the end.
Note there is a behavior change now for the edge cases "-v -l 0" and
"-v -o blksize" where we don't print any stats line anymore. But actually
it's correct, we never make any BLKDISCARD syscall with zero range.
Perhaps we should return error in these cases to help people who always
want to parse stats output on success.
CC: Federico Simoncelli <fsimonce@redhat.com>
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Ruediger Meier [Wed, 9 Dec 2015 11:57:43 +0000 (12:57 +0100)]
blkdiscard: fix stats reporting (off by one)
CC: Federico Simoncelli <fsimonce@redhat.com>
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Ruediger Meier [Wed, 9 Dec 2015 08:36:14 +0000 (09:36 +0100)]
blkdiscard: fix timeval comparison inclusive usecs
We will see if this makes our "--step" tests reliable.
CC: Federico Simoncelli <fsimonce@redhat.com>
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Karel Zak [Wed, 9 Dec 2015 09:26:16 +0000 (10:26 +0100)]
libmount: use fstatat(AT_NO_AUTOMOUNT) for mountpoints
Signed-off-by: Karel Zak <kzak@redhat.com>
Ruediger Meier [Mon, 7 Dec 2015 16:48:56 +0000 (17:48 +0100)]
tests: use xz instead of bzip2 for blkid images
xz decompression creates sparse files if possible. This saves about 1G
disk space in build directory and a lot I/O and time.
BTW regarding compatibility ... CentOS 7 is the first system I've met
which does not install bzip2 but xz only by default.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Karel Zak [Tue, 8 Dec 2015 11:16:27 +0000 (12:16 +0100)]
libmount: add cgroup2 pseudo FS
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 8 Dec 2015 11:10:39 +0000 (12:10 +0100)]
Merge branch 'patch-1' of https://github.com/frioux/util-linux
* 'patch-1' of https://github.com/frioux/util-linux:
Fix subtle typo
Karel Zak [Tue, 8 Dec 2015 10:52:13 +0000 (11:52 +0100)]
build-sys: fix typo and more all RT to the same place
typo : s/timer_createx/timer_create/
Signed-off-by: Karel Zak <kzak@redhat.com>
fREW Schmidt [Mon, 7 Dec 2015 22:16:30 +0000 (14:16 -0800)]
Fix subtle typo
Karel Zak [Mon, 7 Dec 2015 14:10:23 +0000 (15:10 +0100)]
libsmartcols: fix right-aligned logic for last column
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 7 Dec 2015 11:23:26 +0000 (12:23 +0100)]
cfdisk: use new libsmartcols functionality to fix output
Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 7 Dec 2015 11:22:29 +0000 (12:22 +0100)]
libsmartcols: don't use fprintf() when count cells
fprintf("%*s") is based on bytes, no cells.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 7 Dec 2015 11:03:52 +0000 (12:03 +0100)]
libsmartcols: add scols_table_enable_nowrap()
This allows to use libsmartcols in ncurses programs without any
additional voodoo.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 7 Dec 2015 09:42:15 +0000 (10:42 +0100)]
Revert "cfdisk: make sure that output fits to terminal width"
This reverts commit
ed99eac0e2a83a315c7cf5d8a461df16b3106596 .
Benno Schulenberg [Thu, 3 Dec 2015 20:12:28 +0000 (21:12 +0100)]
lsns: improve formatting and wording of the man page
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Karel Zak [Thu, 3 Dec 2015 11:24:22 +0000 (12:24 +0100)]
libblkid: fix buffers mapping on 32bit archs
Reported-by: Ruediger Meier <sweet_f_a@gmx.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Ruediger Meier [Thu, 3 Dec 2015 00:42:28 +0000 (01:42 +0100)]
tests: add some line tests
regarding
e03f29b6 ...
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Ruediger Meier [Wed, 2 Dec 2015 14:24:27 +0000 (15:24 +0100)]
tests: avoid sed -E
GNU sed's -E option for BSD compatibility is relatively new (>=4.2) and
undocumented.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Karel Zak [Wed, 2 Dec 2015 14:01:23 +0000 (15:01 +0100)]
line: keep stdin unbuiffered
$ printf 'a\nb\n' | echo $(./line) :: $(./line)
broken version:
a ::
fixed version:
a :: b
Addresses: https://github.com/karelzak/util-linux/issues/236
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 2 Dec 2015 12:38:51 +0000 (13:38 +0100)]
libmount: fix is-mounted check for btrfs
fstab:
/dev/sdc /mnt/test btrfs subvol=/anydir
/mnt/test /mnt/test2 auto bind
and "mount -a" does not detect that /mnt/test2 is already mounted.
Reported-by: Stanislav Brabec <sbrabec@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
Sukadev Bhattiprolu [Wed, 25 Nov 2015 20:10:39 +0000 (12:10 -0800)]
lscpu: Print physical cpu information
lscpu currently prints information for CPUs configured in the system.
In case of KVM or other virtualized guest operating systems, this
refers to the virtual system, and bears no relation to the physical
topology of the system.
It would be useful if lscpu could also display the physical topology
info when available:
$ ./lscpu
Architecture: ppc64le
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 16
NUMA node(s): 1
Model: IBM pSeries (emulated by qemu)
Hypervisor vendor: KVM
Virtualization type: para
L1d cache: 64K
L1i cache: 32K
NUMA node0 CPU(s): 0-15
Physical sockets: 2 <<< New
Physical chips: 4 <<< New
Physical cores/chip: 4 <<< New
For now, physical topology information is available on platforms that
support the following RTAS (Real time abstraction service) call provided
by librtas:
rtas_get_sysparm(PROCESSOR_MODULE_INFO).
Currently this call is available to the PowerVM (pHYP) guests on PowerPC.
With a patch propoosed to PowerKVM, this RTAS call would also be available
to PowerKVM guests.
Based on input from Nishanth Aravamudan and Karel Zak.
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Karel Zak [Wed, 2 Dec 2015 09:27:43 +0000 (10:27 +0100)]
Merge branch 'races' of git://github.com/kerolasa/lelux-utiliteetit
Karel Zak [Tue, 1 Dec 2015 16:27:22 +0000 (17:27 +0100)]
lsns: improve man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 1 Dec 2015 14:44:26 +0000 (15:44 +0100)]
include: add missing header file
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 1 Dec 2015 12:50:51 +0000 (13:50 +0100)]
lsns: fix usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 1 Dec 2015 12:00:14 +0000 (13:00 +0100)]
lsns: add details to the man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 1 Dec 2015 11:31:30 +0000 (12:31 +0100)]
lsns: sort namespaces, avoid duplicate entries in tree output
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 1 Dec 2015 10:45:11 +0000 (11:45 +0100)]
lsns: remove unwanted comment
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 1 Dec 2015 10:40:51 +0000 (11:40 +0100)]
lsns: add man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 30 Nov 2015 14:55:31 +0000 (15:55 +0100)]
lsns: filter by NS type
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 30 Nov 2015 13:06:05 +0000 (14:06 +0100)]
lsln: allows to list namespace processes
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 30 Nov 2015 11:53:42 +0000 (12:53 +0100)]
libsmartcols: make sure we have space for ascii art
* more verbose output about columns width counting
* strlen_line() does not care about space between columns and extra
tree ASCII art. Let's assume that all termwith is possible to use
for this extra stuff, it means that maximal buffer size is
biggest_line + termwidth.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 30 Nov 2015 10:43:05 +0000 (11:43 +0100)]
libsmartcols: allow to reduce tree columns
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 27 Nov 2015 13:24:09 +0000 (14:24 +0100)]
lsns: read all processes when --task specified
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 27 Nov 2015 12:57:22 +0000 (13:57 +0100)]
build-sys: add lsns to gitignore
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 27 Nov 2015 12:56:31 +0000 (13:56 +0100)]
lsns: add USER and UID
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 27 Nov 2015 12:56:01 +0000 (13:56 +0100)]
namei: move icache to lib/
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 26 Nov 2015 13:09:45 +0000 (14:09 +0100)]
lsns: new command
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 25 Nov 2015 13:17:22 +0000 (14:17 +0100)]
lslocks: use stuff from lib/procutils
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 24 Nov 2015 16:44:38 +0000 (17:44 +0100)]
agetty: don't ignore netlink on select()
agetty uses NETLINK_ROUTE to be notified about network interface
changes. Unfortunately, the code that monitor the netlink FD does not
increment number of the monitored file descriptors when call
select(2), so the netlink notifications are invisible for agetty.
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=
1278906
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Sat, 31 Oct 2015 18:16:07 +0000 (18:16 +0000)]
mesg: fix multiple races
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 31 Oct 2015 18:34:36 +0000 (18:34 +0000)]
fdformat: fix block device open race
This fix makes fdformat also to detect if block device is busy, and warn if
the device is misaligned.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 31 Oct 2015 18:10:00 +0000 (18:10 +0000)]
mkswap: fix block device open race
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 31 Oct 2015 18:08:27 +0000 (18:08 +0000)]
mkfs.minix: fix block device open race
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 22 Nov 2015 19:58:26 +0000 (19:58 +0000)]
mkfs.bfs: allow creating file system to a file
Most, if not all, linux file systems allow this and there should not be a
reason why bfs could not do the same.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 31 Oct 2015 18:06:46 +0000 (18:06 +0000)]
mkfs.bfs: fix block device open race
This fix makes mkfs.bfs also to detect if block device is busy, and warn if
the device is misaligned.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 31 Oct 2015 17:29:02 +0000 (17:29 +0000)]
lib/blkdev: add open_blkdev_or_file() function
Purpose of this function is to open a path that is potentially pointing to a
block device or file without races. The function also proper open(3) flags
are used to check the device is not busy, and finally warning is been
printed if a block device happens to be misaligned.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 31 Oct 2015 17:26:51 +0000 (17:26 +0000)]
include/fileutils: add is_same_inode() check
Check if a file descriptor and path or stat structure are represent the same
file. This function is needed for TACTOU avoidance.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Thu, 19 Nov 2015 18:08:00 +0000 (19:08 +0100)]
tests: update ZFS test
Signed-off-by: Karel Zak <kzak@redhat.com>
Casper Ti. Vector [Thu, 19 Nov 2015 02:56:34 +0000 (10:56 +0800)]
include: remove now useless linux_reboot.h.
Casper Ti. Vector [Thu, 19 Nov 2015 02:52:14 +0000 (10:52 +0800)]
ctrlaltdel: use reboot() provided by libc, assuming it is 1-adic.
Karel Zak [Thu, 19 Nov 2015 10:57:05 +0000 (11:57 +0100)]
losetup: clean up --direct-io
Signed-off-by: Karel Zak <kzak@redhat.com>
Ming Lei [Tue, 17 Nov 2015 14:32:48 +0000 (22:32 +0800)]
losetup: support list direct io
So that user can see if DIO is set for current loop device.
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Ming Lei [Tue, 17 Nov 2015 14:32:47 +0000 (22:32 +0800)]
losetup: support ioctl cmd of LOOP_SET_DIRECT_IO
From v4.4, linux kernel starts to support direct I/O and
AIO to backing file for loop driver, so allow losetup to
enable the feature by using LOOP_SET_DIRECT_IO ioctl cmd.
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Karel Zak [Wed, 18 Nov 2015 10:55:35 +0000 (11:55 +0100)]
blkid: don't mark zfs as RAID
Signed-off-by: Karel Zak <kzak@redhat.com>
Andreas Henriksson [Thu, 12 Nov 2015 11:36:03 +0000 (12:36 +0100)]
bash-completion: fstrim: use mountpoint, not device
fstrim takes mountpoint as argument but the bash completion
was completing it to a device node.
Addresses: http://bugs.debian.org/804833
Reported-by: Ritesh Raj Sarraf <rrs@debian.org>
Signed-off-by: Andreas Henriksson <andreas@fatal.se>
Benno Schulenberg [Sun, 8 Nov 2015 10:54:15 +0000 (11:54 +0100)]
lsipc: tweak a few wordings on the manpage
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Sun, 8 Nov 2015 10:54:14 +0000 (11:54 +0100)]
chfn: improve formatting and wording of the manpage
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Sun, 8 Nov 2015 10:54:13 +0000 (11:54 +0100)]
hexdump: fix a typo and tweak some wordings in the manpage
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Sun, 8 Nov 2015 10:54:12 +0000 (11:54 +0100)]
dmseg: slightly improve punctuation and formatting of the manpage
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Sun, 8 Nov 2015 10:54:11 +0000 (11:54 +0100)]
logger: sort the options in the manpage alphabetically
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg [Sun, 8 Nov 2015 10:54:10 +0000 (11:54 +0100)]
logger: improve grammar and formatting of the manpage
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Sami Kerola [Sat, 31 Oct 2015 19:21:17 +0000 (19:21 +0000)]
script, hwclock: check file exist with access(3) rather than stat(3)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 31 Oct 2015 19:21:16 +0000 (19:21 +0000)]
agetty: fix chown(3), chmod(3) and open(3) race
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 31 Oct 2015 19:21:15 +0000 (19:21 +0000)]
fsck: retire stat(3) when access(3) does better job
The stat(3) and access(3) are in this case almost interchangeable, so choose
the lightweight function with additional advantage checking the file is
executable.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 31 Oct 2015 19:21:14 +0000 (19:21 +0000)]
swapon: fix stat(3) and open(3) race
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 31 Oct 2015 19:21:13 +0000 (19:21 +0000)]
login: fix stat(2) race
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 31 Oct 2015 12:27:36 +0000 (12:27 +0000)]
logger: shadow declaration
misc-utils/logger.c:448:17: warning: declaration of 'msg' shadows a
parameter [-Wshadow]
misc-utils/logger.c:429:74: note: shadowed declaration is here
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Thu, 5 Nov 2015 17:59:00 +0000 (18:59 +0100)]
prlimit: cleanup output units
The change is based on kernel fs/proc/base.c.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 5 Nov 2015 10:34:25 +0000 (11:34 +0100)]
bash-completion: add cal --span
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 5 Nov 2015 10:32:10 +0000 (11:32 +0100)]
Merge branch 'cal-span' of https://github.com/Deiz/util-linux
* 'cal-span' of https://github.com/Deiz/util-linux:
cal: Add --span option
cal: Track date span independently from months_in_row
Karel Zak [Wed, 4 Nov 2015 15:02:44 +0000 (16:02 +0100)]
build-sys: bump also PACKAGE_VERSION_RELEASE number
Now we bump only PACKAGE_VERSION_MAJOR and PACKAGE_VERSION_MINOR
numbers. The PACKAGE_VERSION_RELEASE is always zero.
These numbers are used for LIBxxx_VERSION strings and Version: field
in the .pc files.
Unfortunately, if we keep PACKAGE_VERSION_RELEASE= always zero then
our bugfix releases are invisible for pkg-config.
(Although I don't think it's good idea to depend in code on any
library bugfix release, code should be about APIs).
Addresses: https://github.com/systemd/systemd/pull/1754
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 30 Oct 2015 10:08:32 +0000 (11:08 +0100)]
lib/sysfs: make sysfs_get_devname()/blkid_devno_to_wholedisk() more robust
Now the function uses result buffer for internal stuff (readlink), so
it requires that the buffer is large enough. This is unexpected as
caller assumes that the buffer has to be large enough for devname only.
References: http://www.spinics.net/lists/util-linux-ng/msg12015.html
Reported-by: Tom Yan <tom.ty89@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 29 Oct 2015 10:32:50 +0000 (11:32 +0100)]
logger: remove unnecessary comment
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 29 Oct 2015 10:18:21 +0000 (11:18 +0100)]
logger: use --id as local socket credentials
If you have really paranoid syslog (or systemd who listens on /dev/log)
then it replaces in the message PID with a real PID from socket header
credentials:
# echo $PPID
1550
# logger -p info --stderr --id=$PPID "This is message baby!"
<14>Oct 29 11:22:13 kzak[1550]: This is message baby!
# journald -n 1
Oct 29 11:22:13 ws kzak[22100]: This is message baby!
^^^^^
This patch forces kernel to accept another *valid* PID if logger(1)
executed with root permissions; improved version:
# logger -p info --stderr --id=$PPID "This is message baby!"
<14>Oct 29 11:26:00 kzak[1550]: This is message baby!
# journald -n 1
Oct 29 11:26:00 ws kzak[1550]: This is message baby!
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 27 Oct 2015 17:44:00 +0000 (18:44 +0100)]
logger: use iovec for all message
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 27 Oct 2015 12:19:16 +0000 (13:19 +0100)]
logger: use iovec and sendmsg() to send message
The iovec based solutions allow to send multiple strings by one
syscall (for example additional \n messages separator). We can also
use it to send additional socket header metadata (e.g.
SCM_CREDENTIALS) later.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 27 Oct 2015 11:01:22 +0000 (12:01 +0100)]
Merge branch 'uuid' of git://github.com/kerolasa/lelux-utiliteetit
* 'uuid' of git://github.com/kerolasa/lelux-utiliteetit:
tests: add uuidd output check
tests: add uuidgen output check
tests: make test_uuid_parser to read files
tests: add uuid parser check
Karel Zak [Tue, 27 Oct 2015 10:56:51 +0000 (11:56 +0100)]
ctrlaltdel: use path.h to read /proc
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Sun, 18 Oct 2015 19:01:38 +0000 (20:01 +0100)]
tests: add uuidd output check
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 18 Oct 2015 18:42:46 +0000 (19:42 +0100)]
tests: add uuidgen output check
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 18 Oct 2015 18:07:11 +0000 (19:07 +0100)]
tests: make test_uuid_parser to read files
This allows using the command to check uuidgen and uuidd are generating
valid outputs.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sun, 18 Oct 2015 17:39:21 +0000 (18:39 +0100)]
tests: add uuid parser check
The check is based on code by Theodore Ts'o to test libuuid, from which
unstable output is commented out.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Tue, 13 Oct 2015 10:52:55 +0000 (11:52 +0100)]
ctrlaltdel: display setting when ran without arguments
This is more useful than printing an error.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 12 Oct 2015 23:45:00 +0000 (00:45 +0100)]
docs: update ctrlaltdel.8 man page
Most significant clarification is to tell hard C_A_D is the default in linux
kernel. Update also kernel reference, and improve readability.
Reference: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/kernel/reboot.c
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 12 Oct 2015 23:35:42 +0000 (00:35 +0100)]
ctrlaltdel: improve error messaging
Tell user what is wrong rather than print usage().
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Tue, 6 Oct 2015 22:15:54 +0000 (23:15 +0100)]
nologin: require /etc/nologin.txt to be file
This makes silly practical jokes impossible, like for example symlinking
/dev/null or dev/random to /etc/nologin.txt
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Tue, 6 Oct 2015 21:18:27 +0000 (22:18 +0100)]
last: display input file in usage() according to command name
Default depends on whether the executable is called 'lastb' or something
else.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Fri, 16 Oct 2015 09:48:47 +0000 (11:48 +0200)]
script: be pedantic and use "%"SCNi64
Signed-off-by: Karel Zak <kzak@redhat.com>
Isaac Dunham [Fri, 16 Oct 2015 01:12:59 +0000 (18:12 -0700)]
script: don't assume that time_t is compatible with long
time_t may change to 64-bit on 32-bit Linux kernels at some point;
at that point, it may be desireable to test for issues with dates
past 2038.
[kzak@redhat.com: - use %jd rather than %lld]
Signed-off-by: Karel Zak <kzak@redhat.com>
James Clarke [Fri, 9 Oct 2015 23:29:47 +0000 (00:29 +0100)]
sulogin: Use fallback method on the Hurd for detecting consoles
Signed-off-by: James Clarke <jrtc27@jrtc27.com>
Karel Zak [Thu, 15 Oct 2015 10:12:11 +0000 (12:12 +0200)]
libmount: follow docs with parse-error callback return code
The docs says that recoverable errors have rc > 0.
Signed-off-by: Karel Zak <kzak@redhat.com>