svn commit: r214583 - head/usr.bin/locate/locate

2010-10-30 Thread Garrett Wollman
Author: wollman Date: Sun Oct 31 02:36:05 2010 New Revision: 214583 URL: http://svn.freebsd.org/changeset/base/214583 Log: Make it possible to exclude directories by name no matter where they are in the filesystem from the locate database. By default, exclude ".zfs" directories, as users wh

svn commit: r214613 - head/usr.bin/locate/locate

2010-10-31 Thread Garrett Wollman
Author: wollman Date: Mon Nov 1 01:51:47 2010 New Revision: 214613 URL: http://svn.freebsd.org/changeset/base/214613 Log: jilles@ pointed out that using ${PRUNEDIRS:=".zfs"} in updatedb.sh made it impossible to override PRUNEDIRS to make it empty. Use the non-colon form to only set PRUNEDI

Re: svn commit: r214613 - head/usr.bin/locate/locate

2010-10-31 Thread Garrett Wollman
< said: > jilles@ pointed out that using ${PRUNEDIRS:=".zfs"} in updatedb.sh > made it impossible to override PRUNEDIRS to make it empty. Use the > non-colon form to only set PRUNEDIRS if it is completely unset. (For > parallelism, the other configuration defaults here could be done the

svn commit: r214615 - head/usr.bin/locate/locate

2010-10-31 Thread Garrett Wollman
Author: wollman Date: Mon Nov 1 02:20:18 2010 New Revision: 214615 URL: http://svn.freebsd.org/changeset/base/214615 Log: Style cleanup: make this look more like a 21st-century shell script and not something out of the early 1980s. Make sure all error messages go to stderr, not stdout. Si

svn commit: r216745 - stable/8/usr.bin/locate/locate

2010-12-27 Thread Garrett Wollman
Author: wollman Date: Mon Dec 27 23:46:47 2010 New Revision: 216745 URL: http://svn.freebsd.org/changeset/base/216745 Log: Merge three revisions from head: r214583 | wollman | 2010-10-30 22:36:05 -0400 (Sat, 30 Oct 2010) | 6 lines Changed paths: M /head/usr.bin/locate/locate/lo

svn commit: r230005 - head/usr.sbin/tzsetup

2012-01-11 Thread Garrett Wollman
Author: wollman Date: Thu Jan 12 05:50:32 2012 New Revision: 230005 URL: http://svn.freebsd.org/changeset/base/230005 Log: Use a reasonable-sized buffer when formatting error messages about installing zoneinfo. While we're in the vicinity, add some missing error checking to eliminate an unh

svn commit: r231181 - head/usr.sbin/tzsetup

2012-02-07 Thread Garrett Wollman
Author: wollman Date: Wed Feb 8 05:03:04 2012 New Revision: 231181 URL: http://svn.freebsd.org/changeset/base/231181 Log: It's not an error if unlink(2) fails because the pathname doesn't exist. Noticed by: kevlo Pointy hat to: wollman Modified: head/usr.sbin/tzsetup/tzsetup.c Modifi

svn commit: r241140 - head/sys/kern

2012-10-02 Thread Garrett Wollman
Author: wollman Date: Tue Oct 2 18:38:05 2012 New Revision: 241140 URL: http://svn.freebsd.org/changeset/base/241140 Log: Fix spelling of the function name in two assertion messages. Modified: head/sys/kern/uipc_socket.c Modified: head/sys/kern/uipc_socket.c

svn commit: r199781 - head/lib/libc/stdio

2009-11-24 Thread Garrett Wollman
Author: wollman Date: Wed Nov 25 04:21:42 2009 New Revision: 199781 URL: http://svn.freebsd.org/changeset/base/199781 Log: Eliminate dead store. Found by: Clang static analyzer MFC after:7 days Modified: head/lib/libc/stdio/fvwrite.c Modified: head/lib/libc/stdio/fvwrite.c ===

svn commit: r199782 - head/lib/libc/stdio

2009-11-24 Thread Garrett Wollman
Author: wollman Date: Wed Nov 25 04:27:55 2009 New Revision: 199782 URL: http://svn.freebsd.org/changeset/base/199782 Log: In __mbsconv(), if prec was zero, nconv could have been used uninitialized. Initialize it to a safe value so that there's no chance of returning an error if stack garba

svn commit: r199783 - head/lib/libc/stdio

2009-11-24 Thread Garrett Wollman
Author: wollman Date: Wed Nov 25 04:35:54 2009 New Revision: 199783 URL: http://svn.freebsd.org/changeset/base/199783 Log: Make all three if conditions look similar by always initializing nsec and moving the default initialization of prec into the else clause. The clang static analyzer erron

svn commit: r199784 - in head/lib/libc: gen rpc stdio yp

2009-11-24 Thread Garrett Wollman
Author: wollman Date: Wed Nov 25 04:45:45 2009 New Revision: 199784 URL: http://svn.freebsd.org/changeset/base/199784 Log: Eliminate more dead stores. Found by: Clang static analyzer MFC after:7 days Modified: head/lib/libc/gen/getcap.c head/lib/libc/gen/getusershell.c head

svn commit: r199785 - head/lib/libc/rpc

2009-11-24 Thread Garrett Wollman
Author: wollman Date: Wed Nov 25 04:49:41 2009 New Revision: 199785 URL: http://svn.freebsd.org/changeset/base/199785 Log: In svc_raw_reply(), don't leave stat uninitialized if the MSG_ACCEPTED && SUCCESS case succeeds. The stack garbage might be zero. Found by: Clang static analyzer

svn commit: r199786 - head/lib/libc/rpc

2009-11-24 Thread Garrett Wollman
Author: wollman Date: Wed Nov 25 04:52:12 2009 New Revision: 199786 URL: http://svn.freebsd.org/changeset/base/199786 Log: In clnt_raw_create(), avoid minor race condition initializing the file-scope variable clntraw_private. Found by: Clang static analyzer MFC after:7 days Mod

svn commit: r199787 - head/lib/libc/rpc

2009-11-24 Thread Garrett Wollman
Author: wollman Date: Wed Nov 25 04:53:38 2009 New Revision: 199787 URL: http://svn.freebsd.org/changeset/base/199787 Log: Style: use structure assignment rather than memcpy() to copy a structure. Modified: head/lib/libc/rpc/getrpcent.c Modified: head/lib/libc/rpc/getrpcent.c =

svn commit: r200016 - in stable/8/lib/libc: gen rpc stdio yp

2009-12-01 Thread Garrett Wollman
Author: wollman Date: Wed Dec 2 02:47:29 2009 New Revision: 200016 URL: http://svn.freebsd.org/changeset/base/200016 Log: MFC revs 199781,199782,199784,199785,199786: Eliminate dead stores. In __mbsconv(), if prec was zero, nconv could have been used uninitialized. Initialize

svn commit: r200017 - in stable/7/lib/libc: gen rpc stdio yp

2009-12-01 Thread Garrett Wollman
Author: wollman Date: Wed Dec 2 03:08:29 2009 New Revision: 200017 URL: http://svn.freebsd.org/changeset/base/200017 Log: MFC revs 199781,199782,199784,199786: Eliminate dead stores. In __mbsconv(), if prec was zero, nconv could have been used uninitialized. Initialize it to

Re: svn commit: r200369 - in head: etc share/termcap

2009-12-11 Thread Garrett Wollman
< said: > It's great, thank!! > I believe that our xterm entry was modified not to clear screen when > applications such as less(1) are terminated. Are there any chance to > back to the behavior? I don't understand why people put up with the unspeakably obnoxious "alternate screen" behavior.

Re: svn commit: r200274 - head/lib/libc/gen

2009-12-11 Thread Garrett Wollman
< said: > It's beginning to sound like our POSIX semaphores should be behaving more > like > umtx, which requires only a shared page, and less like file descriptors. Of > course, that would make the global namespace more tricky... Ultimately, the problem is that "POSIX semaphores" are actual

Re: svn commit: r200369 - in head: etc share/termcap

2009-12-13 Thread Garrett Wollman
< said: > It's not "what Linux does", it's what xterm does. It's also, not to put too fine a point on it, obnoxious and stupid. Let's please have the useful behavior. There's a good reason why our "xterm" termcap entry has never had this bogus behavior enabled (except for brief periods after so

svn commit: r186401 - head/usr.bin/ncal

2008-12-22 Thread Garrett Wollman
Author: wollman Date: Mon Dec 22 21:22:42 2008 New Revision: 186401 URL: http://svn.freebsd.org/changeset/base/186401 Log: Implement a new feature for the "-m" option: if the month number is followed by 'f' or 'p', use the following or preceding month of that number, respectively. Document

Re: svn: head/usr.sbin/mergemaster

2009-01-02 Thread Garrett Wollman
< said: > As I said in my first post, if there is overwhelming demand for this > down the road that is not met by the existing solutions I'll consider > adding a better implementation as an option, off by default. It would be much better if the options that *nearly every user will want to use* ar

Re: svn: head/usr.sbin/mergemaster

2009-01-02 Thread Garrett Wollman
< said: > Garrett Wollman wrote: >> It would be much better if the options that *nearly every user will >> want to use* are set correctly by default. > 1. Past experience indicates that your average _developer_ is not very > good at estimating what the average _user_

svn commit: r267840 - head/lib/libc/sys

2014-06-24 Thread Garrett Wollman
Author: wollman Date: Tue Jun 24 20:23:18 2014 New Revision: 267840 URL: http://svnweb.freebsd.org/changeset/base/267840 Log: Catch up with many years of changes: o Document PF_LOCAL as being an alias for PF_UNIX o Document POSIX standardization of this interface using AF_* constants

svn commit: r280930 - head/sys/rpc

2015-03-31 Thread Garrett Wollman
Author: wollman Date: Wed Apr 1 00:45:47 2015 New Revision: 280930 URL: https://svnweb.freebsd.org/changeset/base/280930 Log: Fix overflow bugs in and remove obsolete limit from kernel RPC implementation. The kernel RPC code, which is responsible for the low-level scheduling of incomin

svn commit: r334070 - head/usr.bin/getconf

2018-05-22 Thread Garrett Wollman
Author: wollman Date: Wed May 23 02:51:56 2018 New Revision: 334070 URL: https://svnweb.freebsd.org/changeset/base/334070 Log: Move unsigned limits to a separate table/recognizer and display them using the appropriate (unsigned) format specification. This prevents integer overflow when ULLO

svn commit: r334071 - head/usr.bin/getconf

2018-05-22 Thread Garrett Wollman
Author: wollman Date: Wed May 23 02:54:28 2018 New Revision: 334071 URL: https://svnweb.freebsd.org/changeset/base/334071 Log: Whoops, forgot to add this file in r334070. PR: 164049 Added: head/usr.bin/getconf/unsigned_limits.gperf (contents, props changed) Added: head/usr.b

svn commit: r292836 - head/sys/netinet6

2015-12-28 Thread Garrett Wollman
Author: wollman Date: Mon Dec 28 18:29:47 2015 New Revision: 292836 URL: https://svnweb.freebsd.org/changeset/base/292836 Log: in6_if2idlen: treat bridge(4) interfaces like other Ethernet interfaces bridge(4) interfaces have an if_type of IFT_BRIDGE, rather than IFT_ETHER, even though the

svn commit: r290203 - stable/10/sys/rpc

2015-10-30 Thread Garrett Wollman
Author: wollman Date: Fri Oct 30 19:26:55 2015 New Revision: 290203 URL: https://svnweb.freebsd.org/changeset/base/290203 Log: Long-overdue MFC of r280930: Fix overflow bugs in and remove obsolete limit from kernel RPC implementation. The kernel RPC code, which is responsible f

svn commit: r293358 - stable/10/sys/netinet6

2016-01-07 Thread Garrett Wollman
Author: wollman Date: Thu Jan 7 20:43:45 2016 New Revision: 293358 URL: https://svnweb.freebsd.org/changeset/base/293358 Log: MFH r292836: in6_if2idlen: treat bridge(4) interfaces like other Ethernet interfaces bridge(4) interfaces have an if_type of IFT_BRIDGE, rather than