summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-05-28lib/tty: fix get_terminal_name() usage, cleanup codeKarel Zak1-3/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-23agetty: allow full control on CLOCAL flagKarel Zak2-9/+49
Now the -L option allows to explicitly enable CLOCAL flag. Unfortunately sometimes it's necessary to clear the flag. This patch add optional argument =<mode> to specify 'auto', 'always' and 'never' to control CLOCAL flag. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=816342 Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-21tests: new warning fixGilles Espinasse1-1/+1
2.23 added -Wstrict-prototypes check. Fix make check showing CC tests/helpers/test_md5.o tests/helpers/test_md5.c:8: warning: function declaration isn't a prototype Signed-off-by: Gilles Espinasse <g.esp@free.fr>
2013-05-21util-linux minor typo fixesGilles Espinasse2-2/+2
Signed-off-by: Gilles Espinasse <g.esp@free.fr>
2013-05-21build-sys: always check for setns() and unshare() libs functionsKarel Zak1-6/+2
$ ./configure --disable-unshare $ make nsenter CC sys-utils/nsenter.o In file included from sys-utils/nsenter.c:36:0: ./include/namespace.h:31:19: error: static declaration of ‘unshare’ follows non-static declaration In file included from /usr/include/sched.h:42:0, from sys-utils/nsenter.c:23: /usr/include/bits/sched.h:86:12: note: previous declaration of ‘unshare’ was here make: *** [sys-utils/nsenter.o] Error 1 We have to always check for the libc function independently on --disable-{unshare,nsenter} to avoid collision between local and libc declarations. Reported-by: "Gabor Z. Papp" <gzp@papp.hu> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-20lscpu: add virtualization typesKarel Zak1-9/+16
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-20lscpu: detect more hypervisor vendorsOndrej Oprala5-16/+356
[kzak@redhat.com: - cleanup coding style, - use path_exist()] Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-20cfdisk: add long options to the commandSami Kerola3-43/+70
Includes update to bash completion, and manual as well. [kzak@redhat.com: - remove <<< syntax from bash-completion script] Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-20sfdisk: don't call BLKRRPART for non-block devicesKarel Zak1-4/+6
Reported-by: Bertrand Jacquin <beber@meleeweb.net> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-15uuidd: clean up error messagesKarel Zak2-47/+32
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-14mkfs.cramfs: use standard error messageKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-14hwclock: use warn() to print cmos errorsKarel Zak1-8/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-14libmount: use err.h in testKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-14chcpu: clean up error messagesKarel Zak1-6/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-14sulogin: clean up error messagesKarel Zak1-4/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-14libblkid: add ReFS magic stringKarel Zak4-0/+29
Reported-by: "Richard W.M. Jones" <rjones@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-14blkid: fix typo in ID_FS_AMBIVALEN=Karel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-14libmount: don't ignore root fs on umount -aKarel Zak1-4/+1
The release v2.22 (the new umount) introduces a regression when root fs is excluded from umount --all. There is not reason for this exception. The libmount should be smart enough to disable mtab update after rootfs umount. Reported-by: Bruce Dubbs <bruce.dubbs@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-13lib/tty: don't hardcode terminal fd in get_terminal_name()Karel Zak4-6/+8
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-13standard SEE ALSO section of man pagesMike Frysinger9-15/+14
The standard format is to seperate each entry with a comma, and for each one to be on a line by itself. Most util-linux pages follow this, but a few do not. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-05-13lsblk: add SERIAL columnKarel Zak1-1/+13
... to return short serial number of the disk (from udev db) Addresses: https://github.com/karelzak/util-linux/issues/33 Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-13tests: add losetup testsKarel Zak12-0/+159
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-13losetup: add --raw and --noheadingsKarel Zak2-12/+37
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-13losetup: use warn_size() for regular files onlyKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-13lib/loopdev: fix loopcxt_check_size() to work with blkdevsKarel Zak1-1/+15
The loopcxt_check_size() is workaround for kernels < v3.9, kernel has been fixed by commit 541c742a7559eb65f0e36d3e2338c2ca532a3e61. The function sets loopdev size according to backing file size. The problem is that the backing file could be a block device where stat.st_size is zero, so we have to use blkdev_get_size() for block devices. Addresses: https://bugs.archlinux.org/task/35193 Reported-by: Dave Reisner <d@falconindy.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-09libfdisk: don't re-allocate range string in Ask APIKarel Zak2-11/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-09libfdisk: do not use va_list in the Ask APIKarel Zak4-40/+12
# fdisk /dev/sda Welcome to fdisk (util-linux 2.23). [...] Command (m for help): a Segmentation fault (core dumped) It's too fragile, the va_list implementation is architecture specific and it seems we need such thing in libfdisk at all. Reported-by: "Gabor Z. Papp" <gzp@papp.hu> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-09libmount: use MS_SILENT for /{proc,etc}/filesystemsKarel Zak2-2/+5
mount(8) needs to be doing silent mounts when doing this brute forcing or when the filesystem is not explicitly specified. Reported-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-07build-sys: use -Wno-clobbered for some BSD crapKarel Zak3-3/+9
* extend UL_WARN_ADD() for accept non-default CFLAGS variable * add BSD_WARN_CFLAGS with -Wno-clobbered * use all this for pg(1) and more(1) Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-07lib/colors: add colormode_or_err()Karel Zak3-15/+19
... to make the code easy to use in utils. Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-06prlimit: delete rem_prlim prototypeDavidlohr Bueso1-12/+8
We can just move the function up before any of its callers. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2013-05-06docs: note ddate removalMike Frysinger1-0/+3
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-05-06dmesg: fix usage() typoSami Kerola1-1/+1
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-05-06dmesg: support --color[={auto,always,never}]Karel Zak2-8/+16
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-06lib/colors: add support for auto, always and never modesKarel Zak3-3/+88
... to implement --color[=<when>] Signed-off-by: Karel Zak <kzak@redhat.com>
2013-05-06su: consistent angular brackets and lowercase in help text of 'su'Benno Schulenberg1-12/+11
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-05-06libblkid: fix blkid_parse_tag_string() to ignore incomplete tagsKarel Zak1-2/+2
fstab entry: FOO= / btrfs defaults 1 1 Program received signal SIGABRT, Aborted. 0x00007f016ccd8819 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 56 return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig); (gdb) bt at ../sysdeps/unix/sysv/linux/libc_fatal.c:196 Reported-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-26textual: fixing typos in a warning and an error messageBenno Schulenberg1-1/+1
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-04-26cfdisk: fix ambiguous codeKarel Zak1-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-26build-sys: add --disable-settermKarel Zak2-4/+11
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-26libmount: (test) check writing to a file was successfulSami Kerola1-1/+4
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26wall: check writing to a file descriptor was successfulSami Kerola1-2/+2
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26swapon: check writing to a file descriptor was successfulSami Kerola1-1/+4
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26setpriv: check writing to a file descriptor was successfulSami Kerola1-1/+3
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26fallocate: check writing to a file descriptor was successfulSami Kerola1-1/+2
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26swaplabel: check writing to a file descriptor was successfulSami Kerola1-1/+4
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26mkswap: unify write check to a file descriptorSami Kerola1-9/+7
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26mkfs.minix: check writing to a file descriptor was successfulSami Kerola1-1/+2
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26mkfs.cramfs: unify write check to a file descriptorSami Kerola1-3/+2
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-04-26mkfs.bfs: check writing to a file descriptor was successfulSami Kerola1-1/+1
Signed-off-by: Sami Kerola <kerolasa@iki.fi>