Commit Graph

10840 Commits

Author SHA1 Message Date
Yuri Chornoivan
31fb945332 Fix minor typos 2016-10-20 19:08:57 +03:00
Karel Zak
e5cc93b5a8 build-sys: use ncurses-config rather than pkg-config
It's painful, but ncurses upstream does not distribute .pc files by
default and it seems that ncurses{6,5}-config is the preferred solution.

For better compatibility lets use ncurses-config.

Reported-by: Ruediger Meier <sweet_f_a@gmx.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-20 16:52:31 +02:00
Karel Zak
d7b32ebe12 build-sys: release++ (v2.29-rc2)
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-19 14:33:55 +02:00
Karel Zak
c555686771 docs: update v2.29-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-19 14:32:33 +02:00
Karel Zak
e68f36e0c4 docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-19 14:30:19 +02:00
Karel Zak
b40dc5a920 po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-19 14:27:56 +02:00
Karel Zak
1c5381de55 tests: update build-sys expected output
The su(1) change based on libseccomp has been reverted.

Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-19 14:21:15 +02:00
Karel Zak
2687686cf4 cramfs: revert crc32 changes
We cannot use our crc32 without changes in the code, because our
ul_crc32() assumes that post-conditioning (xor) is done by
application. The zlib implementation does everything.

Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-19 13:33:15 +02:00
Karel Zak
98fd13a169 cramfs: add missing includes
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-19 12:17:19 +02:00
Gustavo Zacarias
7f0d4d56a2 lib/crc32: prefix public functions
Make the publicly-visible crc32 library functions prefixed by ul_, such
as crc32() -> ul_crc32().
This is because it clashes with the crc32() function from zlib.
For newer versions of glib (2.50+) zlib and libblkid are required
dependencies and otherwise results in build failure when building
statically.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
2016-10-19 12:11:59 +02:00
Karel Zak
6a9aaf5491 fstrim: add -v to the systemd service
It seems to be good idea to have more verbose output in the log files
for weekly fstrim execution. The verbose adds details (one line) for
each filesystem.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1337304
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-18 12:09:53 +02:00
Karel Zak
c880563200 cal: support abbreviated month names
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-07 16:10:28 +02:00
Karel Zak
535fd6d2b6 cal: support alone month name parameter
For example 'cal August' to print August for the current year.

Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-07 16:02:36 +02:00
Karel Zak
e5927d5411 cal: cleanup man page
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-07 15:44:18 +02:00
Karel Zak
c49fb9cacd cal: remove err message from monthname_to_number()
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-07 15:24:32 +02:00
Karel Zak
8027dabdd2 docs: update AUTHORS file
Addresses: b86db3c7cf (commitcomment-19326504)
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-07 10:57:37 +02:00
Stanislav Brabec
f3b0d1505e losetup --nooverlap: fix typo
Option is documented and used as --nooverlap, bud coded as --nooverlaps.
--nooverlap is considered as shortened option, making the typo
invisible.

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
2016-10-06 14:56:39 +02:00
Tobias Stoeckmann
b56b13684e rev: Avoid out of boundary read
Check if the length of the parsed string is at least 1,
otherwise an out of boundary read would occur.
2016-10-06 14:56:39 +02:00
Tobias Stoeckmann
2571cf0f9b rev: Avoid calling free in a signal handler
free() is not a safe function for a signal handler. The next
line calls _exit() anyway, so there is no need for resource
management.
2016-10-06 14:56:39 +02:00
Tobias Stoeckmann
e8c20678f3 libblkid: Avoid strlen if only first char is checked
A strlen() call can lead to out of boundary read access if the
superblock in question has no nul-bytes after the string. This
could be avoided by using strnlen() but the calls in question
merely existed to check if the string length is not 0.

By changing the calls as proposed with this diff, these files are
in sync with other superblock files, which do exactly the same.
2016-10-06 14:56:39 +02:00
Karel Zak
c39447445c docs: update infor about TIOCSTI
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-06 10:28:33 +02:00
Karel Zak
2a8bdaf364 Merge branch 'master' of https://github.com/Zeuh/util-linux 2016-10-05 12:11:44 +02:00
Karel Zak
2df4efb934 wdct: mark usage() as noreturn [coverity scan] 2016-10-05 11:25:17 +02:00
Karel Zak
eeea7ef590 swapoff: fix mem leak [coverity scan] 2016-10-05 11:20:26 +02:00
Karel Zak
9a8fada18b setarch: let's keep analyzer happy [coverity scan] 2016-10-05 11:12:45 +02:00
Karel Zak
a325f3c206 rtcwake: make sure buffer is zero terminated [coverity scan] 2016-10-05 11:11:45 +02:00
Karel Zak
3e11eaa831 lsns: fix mem leak [coverity scan] 2016-10-05 10:53:02 +02:00
Karel Zak
12fbe36f0f findmnt: (verify) fix mem leak [coverity scan] 2016-10-05 10:52:24 +02:00
Karel Zak
17dd04c92a isosize: fix read() result check 2016-10-04 20:15:09 +02:00
Karel Zak
9e13b1c1c7 libmount: fix null-checking [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-04 16:33:14 +02:00
Karel Zak
e12e917bad libblkid: check blkid_parse_tag_string() return code [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-04 16:23:52 +02:00
Karel Zak
0b27fcc189 lib/randutils: remove unnecessary function
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-04 16:18:16 +02:00
Karel Zak
a86b9f252c lib/mbsalign: free buffer after error [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-04 16:14:48 +02:00
Karel Zak
2d1fa4fdc3 sfdisk: cleanup before going out of scope [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-04 16:08:55 +02:00
Karel Zak
6387bf33db sfdisk: free before going out of scope [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-04 16:03:11 +02:00
Karel Zak
4c906abea2 isosize: don't ignore read() result [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-04 15:56:59 +02:00
Karel Zak
10c66b0b9e fsck.cramfs: don't ignore read() result [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-04 15:53:55 +02:00
Karel Zak
39d726cef2 tests: (cramfs) check for test_sysinfo
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-04 15:53:19 +02:00
Karel Zak
cf9b302d46 cfdisk: fix mountpoint detection
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-04 15:02:00 +02:00
Richard Yann
219452a47c Fix: list all block device from /dev and all symbolic links to block devices
Before fix "fsck -y /d<tab>" will never show LVM VG from multipath or mapped devices
2016-10-04 14:48:06 +02:00
Karel Zak
23f7509326 Revert "su,runuser: add libseccomp based workaround for TIOCSTI ioctl"
This reverts commit 8e49250168.

Stupid hack...
2016-10-03 16:56:56 +02:00
Karel Zak
8b641fd6a2 tests: add chrt vs. nice test
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-03 12:06:55 +02:00
Karel Zak
88b60f0bde chrt: follow nice setting, prefer sched_setscheduler()
* do not reset 'nice' setting by sched_setattr(), if 'nice' setting
  is not zero then chrt ends with EPERM for non-root users:

  $ renice -n 5 -p $$; chrt -v -b 0 date
  12475 (process ID) old priority 0, new priority 5
  chrt: failed to set pid 0's policy: Operation not permitted

* it seems more elegant to always use old sched_setscheduler() API for
  non-deadline policies; in this case we do not need getpriority()
  to keep 'nice' unchanged.

Addresses: https://github.com/karelzak/util-linux/issues/359
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-03 11:02:35 +02:00
Karel Zak
b5a58919a9 tools: make ko-release-gen usable with gpg2
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-10-01 01:20:06 +02:00
Karel Zak
37301faa01 build-sys: release++ (v2.29-rc1)
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-09-30 11:24:42 +02:00
Karel Zak
66872edda5 docs: update v2.29-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-09-30 11:22:39 +02:00
Karel Zak
b86db3c7cf docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-09-30 11:13:00 +02:00
Karel Zak
0d74f118cc po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-09-30 11:05:42 +02:00
Karel Zak
82053f5e3d libsmartcols: add scols_column_add_width()
Signed-off-by: Karel Zak <kzak@redhat.com>
2016-09-30 11:01:41 +02:00
Sebastian Rasmussen
9abc823240 po: update sv.po (from translationproject.org) 2016-09-30 10:34:15 +02:00