summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * cal: fix preprocessor directive indendationSami Kerola2013-05-261-42/+39Star
| | | | | | | | | | | | And code within the blocks selected by preprocessor to be live code. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | textual: fix typo in error message and uniformize their use of periodBenno Schulenberg2013-05-281-6/+6
| | | | | | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | getopt: add reference to /usr/share/docs to man pageKarel Zak2013-05-281-1/+4
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | lib/tty: fix get_terminal_name() usage, cleanup codeKarel Zak2013-05-281-3/+3
|/ | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* agetty: allow full control on CLOCAL flagKarel Zak2013-05-232-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>
* tests: new warning fixGilles Espinasse2013-05-211-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>
* util-linux minor typo fixesGilles Espinasse2013-05-212-2/+2
| | | | Signed-off-by: Gilles Espinasse <g.esp@free.fr>
* build-sys: always check for setns() and unshare() libs functionsKarel Zak2013-05-211-6/+2Star
| | | | | | | | | | | | | | | | | | | | $ ./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>
* lscpu: add virtualization typesKarel Zak2013-05-201-9/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: detect more hypervisor vendorsOndrej Oprala2013-05-205-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>
* cfdisk: add long options to the commandSami Kerola2013-05-203-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>
* sfdisk: don't call BLKRRPART for non-block devicesKarel Zak2013-05-201-4/+6
| | | | | Reported-by: Bertrand Jacquin <beber@meleeweb.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* uuidd: clean up error messagesKarel Zak2013-05-152-47/+32Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mkfs.cramfs: use standard error messageKarel Zak2013-05-141-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: use warn() to print cmos errorsKarel Zak2013-05-141-8/+4Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: use err.h in testKarel Zak2013-05-141-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* chcpu: clean up error messagesKarel Zak2013-05-141-6/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* sulogin: clean up error messagesKarel Zak2013-05-141-4/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add ReFS magic stringKarel Zak2013-05-144-0/+29
| | | | | Reported-by: "Richard W.M. Jones" <rjones@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: fix typo in ID_FS_AMBIVALEN=Karel Zak2013-05-141-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: don't ignore root fs on umount -aKarel Zak2013-05-141-4/+1Star
| | | | | | | | | | 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>
* lib/tty: don't hardcode terminal fd in get_terminal_name()Karel Zak2013-05-134-6/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* standard SEE ALSO section of man pagesMike Frysinger2013-05-139-15/+14Star
| | | | | | | | 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>
* lsblk: add SERIAL columnKarel Zak2013-05-131-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>
* tests: add losetup testsKarel Zak2013-05-1312-0/+159
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: add --raw and --noheadingsKarel Zak2013-05-132-12/+37
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: use warn_size() for regular files onlyKarel Zak2013-05-131-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/loopdev: fix loopcxt_check_size() to work with blkdevsKarel Zak2013-05-131-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>
* libfdisk: don't re-allocate range string in Ask APIKarel Zak2013-05-092-11/+4Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: do not use va_list in the Ask APIKarel Zak2013-05-094-40/+12Star
| | | | | | | | | | | | | | | | # 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>
* libmount: use MS_SILENT for /{proc,etc}/filesystemsKarel Zak2013-05-092-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>
* build-sys: use -Wno-clobbered for some BSD crapKarel Zak2013-05-073-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>
* lib/colors: add colormode_or_err()Karel Zak2013-05-073-15/+19
| | | | | | ... to make the code easy to use in utils. Signed-off-by: Karel Zak <kzak@redhat.com>
* prlimit: delete rem_prlim prototypeDavidlohr Bueso2013-05-061-12/+8Star
| | | | | | We can just move the function up before any of its callers. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* docs: note ddate removalMike Frysinger2013-05-061-0/+3
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* dmesg: fix usage() typoSami Kerola2013-05-061-1/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* dmesg: support --color[={auto,always,never}]Karel Zak2013-05-062-8/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/colors: add support for auto, always and never modesKarel Zak2013-05-063-3/+88
| | | | | | ... to implement --color[=<when>] Signed-off-by: Karel Zak <kzak@redhat.com>
* su: consistent angular brackets and lowercase in help text of 'su'Benno Schulenberg2013-05-061-12/+11Star
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* libblkid: fix blkid_parse_tag_string() to ignore incomplete tagsKarel Zak2013-05-061-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>
* textual: fixing typos in a warning and an error messageBenno Schulenberg2013-04-261-1/+1
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* cfdisk: fix ambiguous codeKarel Zak2013-04-261-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add --disable-settermKarel Zak2013-04-262-4/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: (test) check writing to a file was successfulSami Kerola2013-04-261-1/+4
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* wall: check writing to a file descriptor was successfulSami Kerola2013-04-261-2/+2
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* swapon: check writing to a file descriptor was successfulSami Kerola2013-04-261-1/+4
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* setpriv: check writing to a file descriptor was successfulSami Kerola2013-04-261-1/+3
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fallocate: check writing to a file descriptor was successfulSami Kerola2013-04-261-1/+2
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* swaplabel: check writing to a file descriptor was successfulSami Kerola2013-04-261-1/+4
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* mkswap: unify write check to a file descriptorSami Kerola2013-04-261-9/+7Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>