util-linux/misc-utils
Karel Zak 40b175084f lib/strutils: fix string_add_to_idarray() int vs. size_t
The function uses "int" as argument, but for array size (and index) is better
to use unsigned type (size_t). If we mix "size_t" in util (e.g. fdisk)
and "int" in lib/strutils.c then result is unexpected behavior on
ppc64.

	# sfdisk --list -o DEVICE,START,SIZE /dev/sdb
	Disk /dev/sdb: 50 MiB, 52428800 bytes, 102400 sectors
	Units: sectors of 1 * 512 = 512 bytes
	Sector size (logical/physical): 512 bytes / 4096 bytes
	I/O size (minimum/optimal): 4096 bytes / 32768 bytes
	Disklabel type: gpt
	Disk identifier: 3B8559DB-33AF-43E9-BEFC-C331D829B539
	lt-sfdisk: libfdisk/src/label.c:178: fdisk_label_get_field: Assertion `id > 0' failed.

The patch cleanup all code to use size_t everywhere.

Signed-off-by: Karel Zak <kzak@redhat.com>
2015-04-22 11:08:05 +02:00
..
.gitignore chkdupexe: remove, deprecated for years 2013-03-14 13:34:11 +01:00
Makemodule.am logger: add -DTEST_LOGGER 2015-03-16 14:01:53 +01:00
blkid.8 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
blkid.c libblkid: care about unsafe chars in cache 2014-11-27 13:39:35 +01:00
cal.1 cal: add -Y and -n <num> 2015-04-07 15:18:38 +02:00
cal.c cal: add -Y and -n <num> 2015-04-07 15:18:38 +02:00
findfs.8 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
findfs.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
findmnt.8 findmnt: add --mountpoint command line option 2015-03-19 12:12:21 +01:00
findmnt.c lib/strutils: fix string_add_to_idarray() int vs. size_t 2015-04-22 11:08:05 +02:00
getopt-parse.bash build-sys: move getopt to misc-utils/ 2012-06-26 20:48:23 +02:00
getopt-parse.tcsh build-sys: move getopt to misc-utils/ 2012-06-26 20:48:23 +02:00
getopt.1 docs: don't use bold or italics for "[option]" in synopsis of man pages 2014-12-19 09:57:23 +01:00
getopt.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
kill.1 docs: fix many wording and some formatting issues in the man page of kill 2014-07-14 15:49:30 +02:00
kill.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
logger.1 logger: add --no-act for testing 2015-03-16 12:38:46 +01:00
logger.c logger: --stderr and --no-act turn "auto-errors" on 2015-04-09 17:55:17 +02:00
look.1 docs: fix-up man-pages flaged by checkmans.sh 2015-01-13 11:43:46 -05:00
look.c look: remove dead code 2015-01-07 21:57:53 +00:00
lsblk.8 lsblk: implement SOMEOK (=64) return code 2015-01-29 12:35:26 +01:00
lsblk.c lib/strutils: fix string_add_to_idarray() int vs. size_t 2015-04-22 11:08:05 +02:00
lslocks.8 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
lslocks.c lib/strutils: fix string_add_to_idarray() int vs. size_t 2015-04-22 11:08:05 +02:00
mcookie.1 docs: adjust some formatting and wordings in a handful of man pages 2014-12-19 09:57:25 +01:00
mcookie.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
namei.1 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
namei.c textual: grammarize and harmonize the stat error message 2015-02-02 11:27:10 +01:00
rename.1 docs: adjust some formatting and wordings in a handful of man pages 2014-12-19 09:57:25 +01:00
rename.c rename: use strrchr() instead of rindex() 2015-02-10 13:21:23 +01:00
uuidd.8.in docs: sort the options in the man pages of hwclock and uuidd 2014-07-29 12:14:56 +02:00
uuidd.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
uuidd.rc.in uuidd: Fixed a typo in daemon logging message 2014-11-18 14:14:47 +01:00
uuidd.service.in uuidd: remove timeout from systemd service file 2014-04-29 10:37:26 +02:00
uuidd.socket.in build-sys: add missing files 2012-07-11 18:00:09 +02:00
uuidgen.1 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
uuidgen.c textual: add a docstring to most of the utilities 2015-01-06 11:27:38 +01:00
whereis.1 whereis: trivial spelling and grammar fix 2015-04-07 10:44:50 +02:00
whereis.c whereis: make "-BMS <dir> -f" more obvious in usage() 2015-03-05 10:31:18 +01:00
wipefs.8 docs: remove obsolete and unneeded comments from man-page files 2015-01-12 11:03:26 +01:00
wipefs.c wipefs: fix FD leak on error [coverity scan] 2015-01-29 12:42:58 +01:00