summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * libfdisk: fix variable shadowingSami Kerola2019-07-121-1/+1
| | | | | | | | | | | | | | libfdisk/src/context.c:678:7: warning: declaration of ‘rc’ shadows a previous local [-Wshadow] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * lib/ttyutils: avoid checking same thing twiceSami Kerola2019-07-011-8/+8
| | | | | | | | | | | | Check cols and lines are not NULL only once. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | build-sys: Include <stdlib.h> in ./configure wchar_t testFlorian Weimer2019-07-151-0/+1
|/ | | | | | | | Without #include <stdlib.h>, this configure check fails for strict C99/C11 compilers which do not support implicit function declarations (which are a C90 feature removed from C99). Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: force to print PKNAME for partitionKarel Zak2019-06-271-0/+3
| | | | | | | | | | PKNAME (parent kernel device name) is based on printed tree according to parent -> child relationship. The tree is optional and not printed if partition specified (.e.g "lsblk -o+PKNAME /dev/sda1"), but old versions print the PKNAME also in this case. Addresses: https://github.com/karelzak/util-linux/issues/813 Signed-off-by: Karel Zak <kzak@redhat.com>
* TODO: fix typoSanchit Saini2019-06-211-1/+1
|
* Fix translations for losetup typo fixStanislav Brabec2019-06-2110-14/+14
| | | | Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
* losetup: Typo fixStanislav Brabec2019-06-211-1/+1
| | | | | | Fix a typo in usage introduced in a1a41597bf. Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
* agetty: Remove superfluous fflush()Stanislav Brabec2019-06-211-2/+0Star
| | | | | | | | | | | | | | eval_issue_file() contains fflush(stdout). It comes from an old code that used fputs() to write to the console. In the new code, we write to a temporary memstream, and fclose(ie->output) fully replaces possible fflush(ie->output) in this implementation. The new print_issue_file() does not need it as well, as it uses unbuffered write_all(). Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
* libfdisk: fix typosMarcos Mello2019-06-204-14/+14
|
* Revert "lib/loopdev.c: Inline loopcxt_has_device"Karel Zak2019-06-181-1/+1
| | | | | | ... no caller in that file, this change has no effect. This reverts commit 3bb960c7b5f1428f1bff885b2667787e8af5001b.
* libfdisk: add fdisk_assign_device_by_fd()Karel Zak2019-06-185-48/+99
| | | | | | | | It's possible that caller has the device already opened for some other task, so let's reuse the file descriptor. Requested-by: Lennart Poettering <lennart@poettering.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'su_err_msg' of https://github.com/jhrozek/util-linuxKarel Zak2019-06-181-1/+3
|\ | | | | | | | | * 'su_err_msg' of https://github.com/jhrozek/util-linux: su: More descriptive error message on malformed user entry
| * su: More descriptive error message on malformed user entryJakub Hrozek2019-05-311-1/+3
| | | | | | | | | | | | | | | | | | | | | | With users coming from LDAP, it is often the case that the entry in LDAP does not contain one or more attributes required by su or, because of misconfigured access control rights, the attribute might not be readable by the LDAP client. In that case, su just tells the user that the user does not exist. It might be more user-friendly to tell the user to check the user entry for all required fields.
* | Merge branch 'topic/wdctl'Karel Zak2019-06-174-86/+193
|\ \
| * | wdctl; read from /sys if necessaryKarel Zak2019-06-173-9/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The device can be inaccessible for non-root user or busy (already used by another process). In this case it seems better to read information from /sys. Note that /sys does not provide struct watchdog_info.options, so we cannot print list of supported watchdog features. Addresses: https://github.com/karelzak/util-linux/issues/804 Signed-off-by: Karel Zak <kzak@redhat.com>
| * | lib/path: make sure ul_path_read_buffer() derminate resultKarel Zak2019-06-171-2/+3
| | | | | | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
| * | wdctl: default to /dev/watchdog0Karel Zak2019-06-172-10/+36
| | | | | | | | | | | | | | | | | | | | | Let's use miscdev /dev/watchdog as fallback only. We need (if possible) cdev /dev/watchdog0 as this device has entry in /sys/class/watchdog. Signed-off-by: Karel Zak <kzak@redhat.com>
| * | wdctl: remove printing from main()Karel Zak2019-06-171-27/+35
| | | | | | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
| * | wdctl: add control structKarel Zak2019-06-171-27/+31
| | | | | | | | | | | | | | | | | | | | | * remove global variables * keep all together Signed-off-by: Karel Zak <kzak@redhat.com>
| * | wdctl: rename watch dog info structKarel Zak2019-06-171-27/+27
| | | | | | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | | include/closestream: avoid close more than onceKarel Zak2019-06-171-2/+5
| | | | | | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | | misc: replaces atexit(close_stdout) with new close_stdout_atexit()Karel Zak2019-06-176-6/+6
| | | | | | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | | libfdisk: fix fdisk_script_get_table()Karel Zak2019-06-172-14/+20
| | | | | | | | | | | | | | | | | | Make sure we never return NULL and we reuse the table in code. Signed-off-by: Karel Zak <kzak@redhat.com>
* | | libfdisk: (docs) add notes about fdisk_enable_wipe()Karel Zak2019-06-172-10/+24
| | | | | | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | | libfdisk: add fdisk_script_set_table()Karel Zak2019-06-174-13/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This small change improves possibility to modify by script described PT and use script API in another tools as primary way to create partitions. All you need is to compose script by fdisk_script_set_header() and fdisk_script_set_table() and than apply by fdisk_apply_script(). Requested-by: Lennart Poettering <lennart@poettering.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* | | lscpu: add a new columns to --cacheKarel Zak2019-06-172-6/+57
|/ / | | | | | | | | References: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-devices-system-cpu Signed-off-by: Karel Zak <kzak@redhat.com>
* | docs: we have 2019 alreadyKarel Zak2019-06-171-3/+3
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | build-sys: release++ (v2.34)Karel Zak2019-06-142-2/+6
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | docs: update v2.34-ReleaseNotesKarel Zak2019-06-141-0/+32
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | docs: update AUTHORS fileKarel Zak2019-06-141-1/+2
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | po: merge changesKarel Zak2019-06-1427-7042/+5785Star
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | po: update zh_CN.po (from translationproject.org)Boyuan Yang2019-06-141-599/+1045
| |
* | po: update uk.po (from translationproject.org)Yuri Chornoivan2019-06-141-179/+140Star
| |
* | po: update sv.po (from translationproject.org)Sebastian Rasmussen2019-06-141-216/+167Star
| |
* | po: update pt_BR.po (from translationproject.org)Rafael Fontenelle2019-06-141-188/+168Star
| |
* | po: update pl.po (from translationproject.org)Jakub Bogusz2019-06-141-192/+137Star
| |
* | po: update ja.po (from translationproject.org)Takeshi Hamasaki2019-06-141-154/+808
| |
* | po: update hr.po (from translationproject.org)Božidar Putanec2019-06-141-182/+152Star
| |
* | po: update fr.po (from translationproject.org)Frédéric Marchal2019-06-141-176/+137Star
| |
* | po: update es.po (from translationproject.org)Antonio Ceballos Roa2019-06-141-179/+142Star
| |
* | po: update de.po (from translationproject.org)Mario Blättermann2019-06-141-190/+152Star
| |
* | po: update da.po (from translationproject.org)Joe Hansen2019-06-141-911/+653Star
| |
* | po: update cs.po (from translationproject.org)Petr Písař2019-06-141-186/+153Star
| |
* | tests: update build-sys outputKarel Zak2019-06-141-29/+29
| | | | | | | | | | | | It seems, no more libgcc_s... Signed-off-by: Karel Zak <kzak@redhat.com>
* | libsmartcols: fix docsKarel Zak2019-06-132-1/+2
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | libmount: fix docs typoKarel Zak2019-06-131-1/+1
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | rev: be careful with close()Karel Zak2019-06-131-1/+2
| | | | | | | | | | Addresses: https://github.com/karelzak/util-linux/issues/807 Signed-off-by: Karel Zak <kzak@redhat.com>
* | findmnt: (verify) ignore passno for XFSKarel Zak2019-06-121-3/+9
| | | | | | | | | | Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1719069 Signed-off-by: Karel Zak <kzak@redhat.com>
* | lib/sysfs: fix reference counting for parentKarel Zak2019-06-111-1/+1
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | cfdisk: free libfdisk itemsKarel Zak2019-06-111-0/+1
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>