Commit Graph

12431 Commits

Author SHA1 Message Date
Karel Zak 37ae6191f7 docs: update v2.32-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-13 12:22:15 +01:00
Karel Zak 94ee61dd9a docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-13 11:16:02 +01:00
Karel Zak 80bbf3b591 po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-13 11:02:07 +01:00
Yuri Chornoivan 40cbda080b po: update uk.po (from translationproject.org) 2018-02-13 10:56:08 +01:00
Rafael Fontenelle 73e99e048e po: update pt_BR.po (from translationproject.org) 2018-02-13 10:56:08 +01:00
Jakub Bogusz 6c99d3d9b7 po: update pl.po (from translationproject.org) 2018-02-13 10:56:08 +01:00
Takeshi Hamasaki 0fa1924e33 po: update ja.po (from translationproject.org) 2018-02-13 10:56:08 +01:00
Lauri Nurmi eaae23ab8b po: update fi.po (from translationproject.org) 2018-02-13 10:56:08 +01:00
Antonio Ceballos Roa 148e879725 po: update es.po (from translationproject.org) 2018-02-13 10:56:08 +01:00
Petr Písař 731cec32f0 po: update cs.po (from translationproject.org) 2018-02-13 10:56:08 +01:00
Karel Zak dd83526ae3 dmesg: use xstrdup() in xalloc.h based util
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-13 10:52:57 +01:00
Karel Zak 3289bd6eef tests: update build-sys tests
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-13 10:42:44 +01:00
Karel Zak dcca7846c0 libblkid: make mpool independent on libuuid
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-13 10:30:39 +01:00
Karel Zak 1800de76ba tests: column(1) test for space-char separator
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-12 14:19:47 +01:00
Karel Zak f2c3c3a14f tests: column(1) test non-space separator at begin of line
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-12 14:14:50 +01:00
Karel Zak 5c7b67fbbf column: don't ignore space-char separators at begin of the line
Non-space separator:

	$ echo -e ",col1,col2\nrow,1,2" | column -t -s ","  --table-columns A,B,C
	A    B     C
	     col1  col2
	row  1     2

Space-char (\t) separator:

	$ echo -e "\tcol1\tcol2\nrow\t1\t2" | column -t -s "$(echo -e '\t')"  --table-columns A,B,C
	A     B     C
	col1  col2
	row   1     2

Fixed version:

	$ echo -e "\tcol1\tcol2\nrow\t1\t2" | column -t -s "$(echo -e '\t')"  --table-columns A,B,C
	A    B     C
	     col1  col2
	row  1     2

Addresses: https://github.com/karelzak/util-linux/issues/575
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-12 14:06:02 +01:00
Samuel Thibault 4365c8107f su: build fix for the case where USE_PTY is not defined
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-12 12:09:40 +01:00
Karel Zak d51f05bfec lsblk: try device/dev to read devno
Now sysfs_devname_to_devno() reads devno from /dev or
/sys/block/<name>/dev, but it seems that NVME uses
/sys/block/<name>/device/dev.

Reported-by: Potnuri Bharat Teja <bharat@chelsio.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-09 14:18:18 +01:00
Karel Zak 256298191c docs: update TODO
Let's think about "mount --onlyonce".

Addresses: https://github.com/karelzak/util-linux/issues/448
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-07 11:37:32 +01:00
Karel Zak a31bb9b6a1 cal: clean up man page synopsis syntax
Let's use '[ ]' rather than '< >' to be compatible with our another
man pages. Note that all time addressing on cal(1) command line is
optional.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1542883
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-07 11:19:44 +01:00
Karel Zak 7aa670f66f docs: update TODO
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-07 10:36:28 +01:00
Karel Zak 8e782a8395 mount: add note about "already mounted" behavior
Addresses: https://github.com/karelzak/util-linux/issues/448
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-05 12:18:49 +01:00
Karel Zak 73f617ca63 tests: add mpool blkid test image
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-05 11:58:09 +01:00
Jakub Wilk f04c77f0a3 findmnt.8: remove spurious spaces before "--tree" and "--verbose"
Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
2018-02-04 19:31:17 +01:00
Karel Zak f3932a6bb5 tests: rewrite cal(1) bigyear test
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-02 10:31:24 +01:00
Karel Zak 22db7b5132 tests: use TS_HELPER_CAL
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-02 10:16:27 +01:00
Karel Zak b9d9ab7dae cal: add ifdef TEST_CAL
The test program follows CAL_TEST_TIME=<sec> rather than libc time().
It allows to use cal(1) in regression tests in cases where output
depends on the current time.

(We already use the same for example for logger.)

Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-02 10:05:15 +01:00
Karel Zak 7895231321 tests: update setarch test
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-01 16:53:45 +01:00
Karel Zak 8d31f146ed libmount: fix debug message
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-01 16:52:14 +01:00
Karel Zak fd777151bf sys-utils: use errexec()
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-01 15:44:25 +01:00
Karel Zak 7bc5eeee44 vipw: use errexec()
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-01 15:41:42 +01:00
Karel Zak 856fcfd104 newgrp: use errexec()
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-01 15:41:23 +01:00
Karel Zak 61b6222269 schedutils: use errexec()
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-01 15:40:59 +01:00
Karel Zak 62fa0883be text-utils: use errexec()
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-01 15:40:43 +01:00
Karel Zak 0f6adf8673 lib/exec_shell: (and pager) use errexec()
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-01 15:38:24 +01:00
Karel Zak 3c29b695dd su: use errexec()
The new macro is fully compatible with original (coreutils) code.

Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-01 15:37:22 +01:00
Karel Zak cf654e1c3e include/c: add errexec()
The new errexec() macro consolidate and unify the way how util-linux
tools react to failed exec()-like functions:

 * exit code 126 when program located, but not usable
 * exit code 127 when could not find program to exec

The exit codes are compatible with coreutils.

Note that all the change is located in c.h; the file exitcodes.h
contains API specific (mkfs, fsck, ...) codes only.

Addresses: https://github.com/karelzak/util-linux/pull/311
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-01 14:58:52 +01:00
Karel Zak 79d6aa3811 findfs: don't include exitcodes.h
The code uses findfs return codes only.

Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-01 14:51:55 +01:00
Karel Zak 3bf6c44462 fstrim: don't include exitcodes.h
The code uses generic and libmount return codes only.

Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-01 14:49:49 +01:00
Karel Zak 8e066650e2 build-sys: gtkdoc-fixxref v1.27 requires module option
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-01 13:23:40 +01:00
Karel Zak 63c9c05d35 misc: remove %p from debug messages
From libs where suid program may be executed by non-root user.

Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-01 13:18:57 +01:00
Karel Zak 117d079199 lib/exec_shell: cleanup function attributes
Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-02-01 12:25:39 +01:00
Karel Zak 9a84ecc0d8 Merge branch 'libblkid-atari' of https://github.com/yontalcar/util-linux
* 'libblkid-atari' of https://github.com/yontalcar/util-linux:
  libblkid: atari - reject devices with blocksize != 512
  libblkid: atari - don't add duplicate entries
  libblkid: atari - test if any partition fits disk size
  tests: added missing expected outputs for partx (atari)
  libblkid: atari - fix bad variable name
  tests: added test for libblkid atari pt
  libblkid: Support for Atari partitioning scheme
2018-01-31 11:08:06 +01:00
Karel Zak cb1b3a203d docs: update TODO
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-01-31 11:06:40 +01:00
Karel Zak 900d77e419 tests: update cal(1) tests
* remove extra space after year output
	f066c107ce

* don't print blank space behind last char on row
	8315a2ff15

* print just specified number of month for -1, -3 and -n
        2bcf8f7934

Signed-off-by: Karel Zak <kzak@redhat.com>
2018-01-30 16:19:14 +01:00
Karel Zak f066c107ce cal: remove extra space after year output
Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-01-30 16:17:10 +01:00
Karel Zak 37bd991f77 cal: don't use year header for -1, -3 or -n
Signed-off-by: Karel Zak <kzak@redhat.com>
2018-01-30 16:14:15 +01:00
Karel Zak 8315a2ff15 cal: follow terminal width
* modify number of months in row according to the terminal width
* don't print blank space behind last char on row

Signed-off-by: Karel Zak <kzak@redhat.com>
2018-01-30 16:10:06 +01:00
Vaclav Dolezal 046351760f libblkid: atari - reject devices with blocksize != 512
Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
2018-01-30 13:50:15 +01:00
Mike Frysinger 2afbcec561 build-sys: (configure) fix bashisms
The `test` command only recognizes =, not ==.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2018-01-30 12:22:16 +01:00