svn commit: r226359 - head/usr.bin/look

tcb tcberner at gmail.com
Sun Oct 16 12:44:37 UTC 2011


This seems to break portsnap on amd64.
As seen in ports/161703 (with error look: file too large).

mfg tobias

On Fri, 14 Oct 2011 09:24:48 +0200, Ed Schouten <ed at freebsd.org> wrote:

> Author: ed
> Date: Fri Oct 14 07:24:48 2011
> New Revision: 226359
> URL: http://svn.freebsd.org/changeset/base/226359
>
> Log:
>   Build look(1) with WARNS=6.
>
> Modified:
>   head/usr.bin/look/Makefile
>   head/usr.bin/look/look.c
>
> Modified: head/usr.bin/look/Makefile
> ==============================================================================
> --- head/usr.bin/look/Makefile	Fri Oct 14 07:24:23 2011	(r226358)
> +++ head/usr.bin/look/Makefile	Fri Oct 14 07:24:48 2011	(r226359)
> @@ -3,6 +3,4 @@
> PROG=	look
> -WARNS?=	2
> -
>  .include <bsd.prog.mk>
>
> Modified: head/usr.bin/look/look.c
> ==============================================================================
> --- head/usr.bin/look/look.c	Fri Oct 14 07:24:23 2011	(r226358)
> +++ head/usr.bin/look/look.c	Fri Oct 14 07:24:48 2011	(r226359)
> @@ -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);
> _______________________________________________
> svn-src-head at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/svn-src-head
> To unsubscribe, send any mail to "svn-src-head-unsubscribe at freebsd.org"


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


More information about the svn-src-head mailing list