summaryrefslogtreecommitdiffstats
path: root/sys-utils
diff options
context:
space:
mode:
authorKarel Zak2017-04-05 14:19:13 +0200
committerKarel Zak2017-04-05 14:19:13 +0200
commitb28df75eece3b65b79b2e56f1c197c2f128ac3d9 (patch)
tree24cb7247f30d3391792d2eebe86e19a7b8bce563 /sys-utils
parentagetty: fix login-options desc in man page (diff)
downloadkernel-qcow2-util-linux-b28df75eece3b65b79b2e56f1c197c2f128ac3d9.tar.gz
kernel-qcow2-util-linux-b28df75eece3b65b79b2e56f1c197c2f128ac3d9.tar.xz
kernel-qcow2-util-linux-b28df75eece3b65b79b2e56f1c197c2f128ac3d9.zip
libfdisk: (gpt) don't access entries array directly
We blindly assume that our sizeof(struct gpt_entry) is the same on-disk stored header->sizeof_partition_entry. It seems more correct would be to use sizeof specified by header to access the entries array items. This patch introduces gpt_get_entry() to avoid direct access to gpt->ents[]. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils')
0 files changed, 0 insertions, 0 deletions