Date: Sun, 16 Oct 2011 14:19:57 +0200 From: tcb <tcberner@gmail.com> To: svn-src-head@freebsd.org Subject: Re: svn commit: r226359 - head/usr.bin/look Message-ID: <op.v3f1vjgul2cepb@sam.firefly> In-Reply-To: <201110140724.p9E7OmMB052118@svn.freebsd.org> References: <201110140724.p9E7OmMB052118@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/svn-src-head > To unsubscribe, send any mail to "svn-src-head-unsubscribe@freebsd.org" -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.v3f1vjgul2cepb>