mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-20 15:26:43 +01:00
Build look(1) with WARNS=6.
This commit is contained in:
parent
c5d693c5d0
commit
583458543c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226359
@ -3,6 +3,4 @@
|
||||
|
||||
PROG= look
|
||||
|
||||
WARNS?= 2
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -134,7 +134,7 @@ main(int argc, char *argv[])
|
||||
do {
|
||||
if ((fd = open(file, O_RDONLY, 0)) < 0 || fstat(fd, &sb))
|
||||
err(2, "%s", file);
|
||||
if (sb.st_size > SIZE_T_MAX)
|
||||
if (sb.st_size > (off_t)SIZE_T_MAX)
|
||||
errx(2, "%s: %s", file, strerror(EFBIG));
|
||||
if (sb.st_size == 0) {
|
||||
close(fd);
|
||||
|
Loading…
Reference in New Issue
Block a user