summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* po: update zh_CN.po (from translationproject.org)Wylmer Wang2017-05-121-210/+223
|
* po: update pt_BR.po (from translationproject.org)Rafael Fontenelle2017-05-121-435/+392Star
|
* po: update fr.po (from translationproject.org)Stéphane Aulery2017-05-121-7031/+806Star
|
* po: update da.po (from translationproject.org)Joe Hansen2017-05-121-576/+874
|
* lib/parse-date: don't use xalloc in lib-like codeKarel Zak2017-05-121-3/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove duplicate includesKarel Zak2017-05-123-3/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add AC_STRUCT_TIMEZONEKarel Zak2017-05-121-0/+1
| | | | | | | | | new datetime parsing code assumes macros: lib/parse-date.c : HAVE_STRUCT_TM_TM_ZONE lib/parse-date.c : HAVE_TZNAME Signed-off-by: Karel Zak <kzak@redhat.com>
* wipefs: add note about no-act to the man pageKarel Zak2017-05-111-2/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: fix type dialogKarel Zak2017-05-111-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'master' of https://github.com/pali/util-linuxKarel Zak2017-05-118-45/+14Star
|\ | | | | | | | | | | | | * 'master' of https://github.com/pali/util-linux: tests: Add UDF CD-ROM hybrid image (ISO+Joliet+UDF) created by Nero 6 tests: Fix test output for low-probe-udf to contain UDF data Revert "libblkid: Probe UDF volumes for ISO9660 info as well"
| * tests: Add UDF CD-ROM hybrid image (ISO+Joliet+UDF) created by Nero 6Pali Rohár2017-05-052-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This image was created by Nero Burning ROM version 6 via option CD-ROM (UDF/ISO) with UDF version 2.01 and enabled ISO Joliet extension. Moreover for testing purposes it has set custom Disc label (and also every other identifier) which is different for ISO, Joiliet and UDF part. It contains ISO/Joliet/UDF string prefix to distinguish between them. So reading this image as basic ISO would produce different label as when reading it as ISO with Joliet image and also different as UDF image. Windows detects its label as "UDF Label". Before commit ccfb5b0a1d318c1ac96884c70c7b5090331849fc blkid show label for this image as "Joliet Label" and after as "UDF Label". Note that it is not common to have such images with different label stored in Joliet part and in UDF part. Moreover it is very hard to generate them.
| * tests: Fix test output for low-probe-udf to contain UDF dataPali Rohár2017-05-051-5/+2Star
| | | | | | | | | | | | | | | | | | Label was really not changed because of fix by commit 2f2730bc77c972d613cfec421468c84f15749708. UUID is different due to fact that ISO image does not have UUID and libblkid generate one from compilation date. Plus "Joliet Extension" in UDF context does not make sense.
| * Revert "libblkid: Probe UDF volumes for ISO9660 info as well"Pali Rohár2017-05-055-40/+3Star
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 8053b51c7601c4a7e5f2eca45610b8228f53d408. Reporting meaningless ID_FS_LABEL=UDF_Volume written in that commit was caused by reading wrong value for UDF label and it was fixed in commit 2f2730bc77c972d613cfec421468c84f15749708. So after this revert blkid reports for UDF filesystems label of UDF filesystem and not label of ISO (if present) like other systems. In most cases UDF and ISO labels are same (sometimes just one is upper case). Commit 8053b51c7601c4a7e5f2eca45610b8228f53d408 just fixed result, not reason why blkid reported different UDF Label as Windows. Real reason was fixed in 2f2730bc77c972d613cfec421468c84f15749708.
* | tests: update wipe-partitionKarel Zak2017-05-101-0/+2
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | docs: make column.1 example to use ascii outputSami Kerola2017-05-101-5/+5
| | | | | | | | | | | | In same go ease reading by having data and arguments in same order. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | switch_root: use getopt_long() to parse optionsSami Kerola2017-05-101-6/+18
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | vipw: use getopt_long() to parse optionsSami Kerola2017-05-101-7/+16
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | col: avoid extra newline if no inputSami Kerola2017-05-101-0/+2
| | | | | | | | | | | | | | | | | | BSD fix missed for 22 years, and all util-linux releases so far. Backported-from: https://github.com/dspinellis/unix-history-repo/commit/2a15260a2a3230e02f57c096fb4c5e1f797bf4f3 Addresses: https://github.com/karelzak/util-linux/issues/422 Reported-by: Pavel Raiskup <praiskup@redhat.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | lib/mbsedit: fix typo in commentSami Kerola2017-05-101-1/+1
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | fdisk: inform on 'p' about wiped partitionsKarel Zak2017-05-091-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The wipe operation is potentially dangerous. Let's inform about it always by 'p' (list) command to make sure user knowns about it. Command (m for help): p ... Device Boot Start End Sectors Size Id Type /dev/sdc1 2048 204799 202752 99M 83 Linux Filesystem/RAID signature on partition 1 will be wiped. Addresses: https://github.com/karelzak/util-linux/issues/437 Signed-off-by: Karel Zak <kzak@redhat.com>
* | libfdisk: add fdisk_partition_has_wipe()Karel Zak2017-05-094-0/+18
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | fdisk: add to the man page missing optionKarel Zak2017-05-091-0/+11
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | lscpu: reuse the same bufferKarel Zak2017-05-091-14/+9Star
| | | | | | | | | | | | | | | | Now we use libsmartcols for the default output and all is allocated in the smartcols table. So, we can reuse the same buffer for all sprintf/scanf calls. Signed-off-by: Karel Zak <kzak@redhat.com>
* | lscpu: make cpu_{max,min}_mhz() usage more elegantKarel Zak2017-05-091-16/+12Star
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | lscpu: Read available CPUs max and min frequenciesMamatha Inamdar2017-05-091-5/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem:"lscpu frequency-info" command was always reading CPU0 max and min frequencies. If CPU0 is guarded or offline then it used to display max and min frequencies as NULL. This patch will read overall CPU max and min frequencies. Test Results: Before Patch: #lscpu (CPU0 is guarded/offline) Architecture: ppc64le Byte Order: Little Endian CPU(s): 120 On-line CPU(s) list: 8-127 Thread(s) per core: 8 Core(s) per socket: 3 Socket(s): 4 NUMA node(s): 4 Model: 2.1 (pvr 004b 0201) Model name: POWER8E (raw), altivec supported CPU max MHz: (null) CPU min MHz: (null) L1d cache: 64K L1i cache: 32K L2 cache: 512K L3 cache: 8192K NUMA node0 CPU(s): 8-31 NUMA node1 CPU(s): 32-63 NUMA node16 CPU(s): 64-95 NUMA node17 CPU(s): 96-127 With Patch: # ./lscpu Architecture: ppc64le Byte Order: Little Endian CPU(s): 120 On-line CPU(s) list: 8-127 Thread(s) per core: 8 Core(s) per socket: 3 Socket(s): 4 NUMA node(s): 4 Model: 2.1 (pvr 004b 0201) Model name: POWER8E (raw), altivec supported CPU max MHz: 4322.0000 CPU min MHz: 2061.0000 L1d cache: 64K L1i cache: 32K L2 cache: 512K L3 cache: 8192K NUMA node0 CPU(s): 8-31 NUMA node1 CPU(s): 32-63 NUMA node16 CPU(s): 64-95 NUMA node17 CPU(s): 96-127 [kzak@redhat.com: - cpu_{max,min}_mhz() refactoring] Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* | sulogin: add missing typeKarel Zak2017-05-091-1/+1
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | Merge branch '2017wk16' of git://github.com/kerolasa/lelux-utiliteetitKarel Zak2017-05-0921-221/+330
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | * '2017wk16' of git://github.com/kerolasa/lelux-utiliteetit: chfn, chsh: use readline(3) to receive user input findfs: use getopt_long() to parse options logger: make month names, login name, and tag read-only objects sulogin: reduce vulnerability surface partx: add --list-types option libblkid: add blkid_partitions_get_name() docs: try to convince open(2) O_DIRECT rather than using raw device blkid: add long options lsipc: fix options parsing and sync with man page
| * chfn, chsh: use readline(3) to receive user inputSami Kerola2017-05-033-14/+36
| | | | | | | | | | | | | | The readline offers editing capabilities while the user is entering the line, unlike fgets(3) and getline(3) that were used earlier. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * findfs: use getopt_long() to parse optionsSami Kerola2017-05-031-9/+17
| | | | | | | | | | | | | | This change makes the findfs(8) more coherent with other commands in the project source tree. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * logger: make month names, login name, and tag read-only objectsSami Kerola2017-05-031-6/+6
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * sulogin: reduce vulnerability surfaceSami Kerola2017-05-033-58/+54Star
| | | | | | | | | | | | | | | | | | | | | | | | | | Hopefully these changes are unreachable code, but better safe than sorry when dealing with setuid root code that is installed everywhere. Quite obviously the introduced abort() calls protect from impossible inputs. Secondly set all possible data to be read-only in attempt to make it more difficult to alter anything at all. Reference: https://www.securecoding.cert.org/confluence/display/c/DCL00-C.+Const-qualify+immutable+objects Reviewed-by: Petr Vorel <petr.vorel@gmail.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * partx: add --list-types optionSami Kerola2017-05-033-17/+21
| | | | | | | | | | | | | | Use libblkid as the source of truth what partition type names exist, and are supported. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * libblkid: add blkid_partitions_get_name()Sami Kerola2017-05-034-0/+19
| | | | | | | | | | | | | | | | This new function can be use to enquiry what partition names libblkid is aware of. First use of this information will be in partx(8) to make bash completion to work without a magic list. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * docs: try to convince open(2) O_DIRECT rather than using raw deviceSami Kerola2017-05-031-0/+4
| | | | | | | | | | | | | | Tell in manual page that one should use open(2) O_DIRECT flag rather than raw device. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * blkid: add long optionsSami Kerola2017-05-033-113/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | This change attempts to make tab completion more reasonable by alloging memorizable option names. That also has positive impact to manual page, in which referrals to other options are now easier to understand. All short options are kept exactly as they were to avoid ABI breakage. The only exception is -f option that getopt(3) recognized, but was not found from anywhere else. The -f has been part of blkid since the initial commit. Commit: 51410fc6deb29cae54a2669aafabae6c49f964fc Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * lsipc: fix options parsing and sync with man pageSami Kerola2017-05-032-4/+6
| | | | | | | | | | | | | | | | | | Option --pid was never implemented so remove it from struct options and manual page. Interestingly this option was not in usage(). Short option string had 'u' that has never appear anywhere else, so it is also removed. Finally add options --bytes and --numeric-perms to manual page. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | column: be robust on empty tableKarel Zak2017-05-051-2/+4
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | column: require column names for JSONKarel Zak2017-05-051-1/+7
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | blkid: fix return code when display the versionAlexey Gladkov2017-05-051-0/+1
| | | | | | | | Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
* | column: use libsmartcols to avoid circular dependencesKarel Zak2017-05-051-4/+3Star
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | libsmartcols: add scols_line_is_ancestor()Karel Zak2017-05-054-0/+22
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | column: add note that circular dependencies are ignoredKarel Zak2017-05-051-1/+2
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | column: add --tree to the man pageKarel Zak2017-05-051-3/+20
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | column: fix --tree id-parent loop crashKarel Zak2017-05-051-1/+5
| | | | | | | | | | | | The loop is silently ignored. Signed-off-by: Karel Zak <kzak@redhat.com>
* | tests: add new build-sys testsKarel Zak2017-05-032-0/+4
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | testsL update build-sys testsKarel Zak2017-05-0318-18/+84
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | build-sys: fix lsmem dependenceKarel Zak2017-05-031-0/+1
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | build-sys: remove column-old.cKarel Zak2017-05-032-498/+0Star
|/ | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* column: parent and child has to be independentKarel Zak2017-05-021-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add tests for new column featuresKarel Zak2017-05-0210-0/+454
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>