Check for a full read, avoid warn when errno might be unmodified
authorgnezdo <gnezdo@openbsd.org>
Sat, 12 Aug 2023 13:43:22 +0000 (13:43 +0000)
committergnezdo <gnezdo@openbsd.org>
Sat, 12 Aug 2023 13:43:22 +0000 (13:43 +0000)
commitd4a5aacda412f32f85bea992823bf81bf9364c8e
tree2f8cc4f4ed79f6f5580989081632cd20c608538b
parent8afcf90fb39e4a84606e93137c2b6c20f44312cb
Check for a full read, avoid warn when errno might be unmodified

Promote size from int to size_t.

From: lucas at sexy dot is

Regress tests by gnezdo@

deraadt: yes
libexec/ld.so/ldd/ldd.c
regress/libexec/ld.so/Makefile
regress/libexec/ld.so/ldd/Makefile [new file with mode: 0644]
regress/libexec/ld.so/ldd/test.sh [new file with mode: 0755]