Commit Graph

15380 Commits

Author SHA1 Message Date
Masatake YAMATO c8d931ebe2 lib/fileutils: close fd if fdopen is failed
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2021-05-06 12:20:14 +02:00
Karel Zak f6c1168925 hwclock: follow timespec and use long int for nsec
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-06 11:56:14 +02:00
Karel Zak 9406284a92 script: fix time_t=long assumptions
References: ce3355cc54
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-06 11:37:10 +02:00
Karel Zak 01b37affc1 rtcwake: fix time_t=long assumptions
References: ce3355cc54
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-06 11:07:22 +02:00
Karel Zak 35c84bf76a lib/strutils: assume 64-bit time_t
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-06 11:06:45 +02:00
Karel Zak 634636301e hardlink: fix time_t=long assumptions
References: ce3355cc54
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-06 10:45:16 +02:00
Karel Zak 7e349033e0 test_uuid_parser: fix time_t=long assumptions
References: ce3355cc54
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-06 10:43:13 +02:00
Karel Zak c13ce8f4d6 fsck: fix time_t=long assumptions
References: ce3355cc54
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-06 10:40:32 +02:00
Karel Zak 7b20bb1acc scriptplay: fix time_t=long assumptions
Fixes: https://github.com/karelzak/util-linux/issues/1069
References: ce3355cc54
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-06 10:34:15 +02:00
Karel Zak f02286fd89 lib/pty-session: fix time_t=long assumptions
Fixes: https://github.com/karelzak/util-linux/issues/1069
References: ce3355cc54
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-06 10:22:07 +02:00
Karel Zak 4fb27d5c62 flock: fix time_t=long assumptions
This also fixes flock for archs (e.g. sparc64) where suseconds_t is not long.

Fixes: https://github.com/karelzak/util-linux/issues/1069
References: ce3355cc54
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-06 10:13:27 +02:00
Karel Zak d8d54e4bfc build-sys: keep adoc files in dist_noinst_DATA
* rename MANPAGES_EXTRA= to ADOCFILES_COMMON=

* keep track about individual adoc files by dist_noinst_DATA=
  This variable is not effected by automake conditions, so the files
  are always distributed.

Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-05 13:35:30 +02:00
Karel Zak 62009e0d2f tests: update sparc lscpu tests
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-03 20:30:42 +02:00
Karel Zak 5c09ab260e lscpu: assume L1d, L1i, L2, L3 for sparc
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-03 20:28:30 +02:00
Karel Zak 57fee04c14 lscpu: read Sparc caches files
Fixes: https://github.com/karelzak/util-linux/issues/1296
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-03 16:29:55 +02:00
Karel Zak fcbcb0cdaa meson: fix systemd dependence
Fixes: https://github.com/karelzak/util-linux/issues/1301
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-05-03 11:10:10 +02:00
Karel Zak 4e56c68abe Merge branch 'master' of https://github.com/arbego/util-linux
* 'master' of https://github.com/arbego/util-linux:
  Fixed wrongful time_t=long assumptions in hwclock.c and timeutils.c
  Changed int64_t casts to long long int casts
  Fixed format strings and type casts in hwclock to work with 64-bit time_t on 32-bit linux
2021-04-30 13:12:26 +02:00
Armin Begovic ce3355cc54 Fixed wrongful time_t=long assumptions in hwclock.c and timeutils.c 2021-04-29 11:56:37 +00:00
heitbaum 5ec1108c00 build-sys: add configure options to disable individual utils 2021-04-29 08:19:50 +00:00
Karel Zak 071d3135d3 lscpu: fix "caches" header
It's possible that lscpu does not print any caches if full caches size
is zero. In this case we do not need the header.

Addresses: https://github.com/karelzak/util-linux/issues/1207
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-28 10:51:07 +02:00
Mario Blättermann 1f54d9cc09 docs/TODO: Minor update and fix typo 2021-04-24 12:20:08 +02:00
Armin Begovic 56702ef2ea Changed int64_t casts to long long int casts 2021-04-23 23:28:37 +02:00
Armin Begovic a937ef8318 Fixed format strings and type casts in hwclock to work with 64-bit time_t on 32-bit linux 2021-04-23 22:48:13 +02:00
Karel Zak b9081962ef zramctl: (man) fix streams default number
References: https://www.kernel.org/doc/html/latest/admin-guide/blockdev/zram.html#set-max-number-of-compression-streams
References: da9556a236
Fixes: https://github.com/karelzak/util-linux/issues/1283
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-23 13:01:57 +02:00
Karel Zak d77714dcb9 scriptlive: (man) add missing parenthesis
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-23 11:35:20 +02:00
Karel Zak ad0963685b Merge branch 'fix-misspellings' of https://github.com/rffontenelle/util-linux 2021-04-23 10:49:10 +02:00
Karel Zak a51aadb348 Merge branch 'master' of https://github.com/mariobl/util-linux
* 'master' of https://github.com/mariobl/util-linux:
  po-man: Fix typos in de.po and po4a.cfg
  hardlink: fix typo
2021-04-23 10:44:46 +02:00
Karel Zak 638d1277cc docs: update TODO
Addresses: https://github.com/karelzak/util-linux/issues/1291
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-23 10:43:06 +02:00
Karel Zak da5d1468c1 build-sys: add .stamp to gitignore
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-23 10:39:35 +02:00
Karel Zak 5e42ec32fb build-sys: fix typo
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-23 10:38:31 +02:00
Rafael Fontenelle 993556aaa5 Fix misspellings 2021-04-22 20:31:05 -03:00
Mario Blättermann 74699e0e94 po-man: Fix typos in de.po and po4a.cfg 2021-04-22 18:50:46 +02:00
Mario Blättermann 113f0b3464 Merge remote-tracking branch 'upstream/master' 2021-04-22 18:41:50 +02:00
Karel Zak a73035dc74 build-sys: disable po-man by default, cleanup summary
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-22 15:59:54 +02:00
Karel Zak 64936a9ddb build-sys: add uninstall to po-man
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-22 15:23:42 +02:00
Karel Zak 8f5fff5350 build-sys: add targets to generated translated man pages
* add --enable-poman (disabled by default)
* add po-man/Makefile.am for "make all" and "make install"
* install man pages to $mandir/$lang/man{1,3,5,8}

Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-22 15:23:42 +02:00
Karel Zak 2b84ac2dbd Merge branch 'topic/po4a' of https://github.com/mariobl/util-linux
* 'topic/po4a' of https://github.com/mariobl/util-linux:
  mount.a.adoc: Fix markup
  Asciidoc: Add missing macro definition in uclampset.1
  Asciidoc: Fix markup in example man page
  Asciidoc: Fix markup
  Asciidoc: Remove artifact from merge conflict
  Asciidoc: Convert man-common/README to Markdown
  po-man: Fix the example man page
  po-man: Fix typos in po-man/README.md
  po-man: Update the example man page
  po-man: Add po-man/README.md
  po-man: Add (incomplete) de.po for testing purposes
  po-man: Add (incomplete) de.po for testing purposes
  po-man: Adjust paths in po4a.cfg and update .pot file
  po-man: Move Po4a config file and translation template to po-man
2021-04-22 15:23:27 +02:00
Karel Zak e5bde19ae2 build-sys: cleanup Makefiles
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-20 14:39:32 +02:00
Karel Zak 0216836e8b build-sys: fix test_loopdev build
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-20 14:22:34 +02:00
Karel Zak d4423cce9b lib/loopdev: fix is_loopdev() to be usable with partitions
The current implementation of the function does not care if the device
is whole-disk device or partition, all is loopdev. This is regression
as the original is_loopdev() version was based on whole-disk devices
major numbers only.

Fixes: https://github.com/karelzak/util-linux/issues/1202
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-20 13:20:12 +02:00
Karel Zak 01480c61e1 hardlink: fix typo again
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-19 15:30:57 +02:00
Karel Zak 9f17b992e3 libfdisk: do not reset default if undefined by script
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-19 13:19:23 +02:00
Karel Zak 35d5db6ebb hardlink: fix typo
Reported-by: Mario Blättermann <mario.blaettermann@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-04-19 10:10:17 +02:00
Karel Zak 20ac96ffe2 Merge branch 'fix-swapon-summary-heading-alignment' of https://github.com/sebras/util-linux
* 'fix-swapon-summary-heading-alignment' of https://github.com/sebras/util-linux:
  swapon: Keep headings and fields aligned in summary output.
2021-04-19 10:05:05 +02:00
Karel Zak 7c35325c49 Merge branch 'fix-typo' of https://github.com/sebras/util-linux
* 'fix-typo' of https://github.com/sebras/util-linux:
  Fix typo in help message.
2021-04-19 10:00:42 +02:00
Karel Zak 60f2d1f0a7 Merge branch 'fix-first-lba' of https://github.com/samueldr/util-linux
* 'fix-first-lba' of https://github.com/samueldr/util-linux:
  libfdisk: Include table-length in first-lba checks
2021-04-19 09:59:42 +02:00
Karel Zak a7ca670346 Merge branch 'lsblk-E-completion' of https://github.com/scop/util-linux
* 'lsblk-E-completion' of https://github.com/scop/util-linux:
  bash-completion: (lsblk) fix -E/-M arg (non-)completion
2021-04-19 09:33:28 +02:00
Karel Zak fcff5b4f9b Merge branch 'update-lsns-man-page' of https://github.com/masatake/util-linux
* 'update-lsns-man-page' of https://github.com/masatake/util-linux:
  man: add ioctl_ns(2) to SEE ALSO of lsns(2)
2021-04-19 09:32:12 +02:00
Mario Blättermann b4c04b3dab mount.a.adoc: Fix markup 2021-04-18 12:16:37 +02:00
Mario Blättermann 0a1cd4c1e2 hardlink: fix typo 2021-04-18 09:17:31 +02:00