CVS commit: src/usr.sbin/ypbind

2018-03-14 Thread Brian Ginsbach
Module Name:src Committed By: ginsbach Date: Thu Mar 15 02:25:31 UTC 2018 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Initialize ypbind_resp before first possible error return condition. To generate a diff of this commit: cvs rdiff -u -r1.99 -r1.100 src/us

CVS commit: src/usr.sbin/ypbind

2017-08-08 Thread Brian Ginsbach
Module Name:src Committed By: ginsbach Date: Wed Aug 9 01:56:42 UTC 2017 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Make use of the defined YP errors when ypbind encounters one rather than just returning an empty (successful) RPC result. Don't exit when a

CVS commit: src/usr.sbin/ypbind

2014-09-20 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Sat Sep 20 11:16:05 UTC 2014 Modified Files: src/usr.sbin/ypbind: ypbind.8 Log Message: Add missing .El. From Henning Petersen in PR 49227. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/usr.sbin/ypbind/ypbind.8

CVS commit: src/usr.sbin/ypbind

2014-06-15 Thread Thomas Klausner
Module Name:src Committed By: wiz Date: Sun Jun 15 07:24:32 UTC 2014 Modified Files: src/usr.sbin/ypbind: ypbind.8 Log Message: Use more markup. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/ypbind/ypbind.8 Please note that diffs are not pub

CVS commit: src/usr.sbin/ypbind

2014-06-14 Thread David A. Holland
Module Name:src Committed By: dholland Date: Sun Jun 15 01:37:48 UTC 2014 Modified Files: src/usr.sbin/ypbind: ypbind.8 Log Message: Document exponential backoff behavior and SIGHUP support, plus a couple other minor edits. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.sbin/ypbind

2014-06-10 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue Jun 10 17:19:22 UTC 2014 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Instead of using magic numbers in what looks like a boolean (dom_alive), create a state enumeration (domainstates) and use it instead. Inst

CVS commit: src/usr.sbin/ypbind

2014-06-10 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue Jun 10 17:19:36 UTC 2014 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Add a SIGHUP handler; upon SIGHUP do an extra nag_servers on any domain that's in DEAD state. This lets you explicitly rescue ypbind from it

CVS commit: src/usr.sbin/ypbind

2014-06-10 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue Jun 10 17:19:48 UTC 2014 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Log state transitions. To generate a diff of this commit: cvs rdiff -u -r1.97 -r1.98 src/usr.sbin/ypbind/ypbind.c Please note that diffs

CVS commit: src/usr.sbin/ypbind

2014-06-10 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue Jun 10 17:18:45 UTC 2014 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: While there are times it's appropriate to call a state variable "evil", this isn't one of them. Since the logic involved is to wait until th

CVS commit: src/usr.sbin/ypbind

2014-06-10 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue Jun 10 17:19:12 UTC 2014 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Load up with comments. To generate a diff of this commit: cvs rdiff -u -r1.94 -r1.95 src/usr.sbin/ypbind/ypbind.c Please note that diffs

CVS commit: src/usr.sbin/ypbind

2014-06-10 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue Jun 10 17:19:00 UTC 2014 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Don't rake up the default domain until after processing arguments. Processing arguments just sets flags -- may as well do it first, and this

CVS commit: src/usr.sbin/ypbind

2014-06-10 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue Jun 10 17:18:18 UTC 2014 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Factor out some rpc validation code. To generate a diff of this commit: cvs rdiff -u -r1.91 -r1.92 src/usr.sbin/ypbind/ypbind.c Please no

CVS commit: src/usr.sbin/ypbind

2014-06-10 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue Jun 10 17:18:02 UTC 2014 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Don't store the default domain name in a global. While running we really don't care which domain is the system's default domain. To genera

CVS commit: src/usr.sbin/ypbind

2011-05-24 Thread David A. Holland
Module Name:src Committed By: dholland Date: Wed May 25 04:59:22 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Don't print uninitialized values off the stack, even as debug messages. To generate a diff of this commit: cvs rdiff -u -r1.87 -r1.88 src/

CVS commit: src/usr.sbin/ypbind

2011-05-24 Thread David A. Holland
Module Name:src Committed By: dholland Date: Wed May 25 04:33:52 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: When checking if /var/yp/binding/foo.ypservers exists, use the domain name of the domain being checked instead of the default domain name. D

CVS commit: src/usr.sbin/ypbind

2011-05-24 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue May 24 07:02:08 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Remove two entirely unused members of struct domain (previously struct _dom_binding). I guess these were there because it was cutpasted at s

CVS commit: src/usr.sbin/ypbind

2011-05-24 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue May 24 07:01:53 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Merge a couple more minor improvements from Wolfgang Stukenbrock's patch in PR 43900. To generate a diff of this commit: cvs rdiff -u -r1.

CVS commit: src/usr.sbin/ypbind

2011-05-24 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue May 24 07:01:40 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: The FILE* kept open for /var/yp/binding/foo.ypservers needs to be per-domain. Also, use the file for the domain we're servicing instead of a

CVS commit: src/usr.sbin/ypbind

2011-05-24 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue May 24 07:01:24 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: The been_ypset flag really needs to be per-domain also. Do that. Partly from Wolfgang Stukenbrock's patch in PR 43900. To generate a diff

CVS commit: src/usr.sbin/ypbind

2011-05-24 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue May 24 07:01:15 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: The ypbindmode really needs to be per-domain, so adjust accordingly. Partly from Wolfgang Stukenbrock's patch in PR 43900. To generate a

CVS commit: src/usr.sbin/ypbind

2011-05-24 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue May 24 07:00:34 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Allowing ypset is a global permission flag, not an operating mode like broadcast vs. configured/direct. Don't conflate the logic. As I propo

CVS commit: src/usr.sbin/ypbind

2011-05-24 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue May 24 07:00:07 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Fix initialization of struct domain; initialize all fields in all cases, merge duplicate code, make sure every domain gets an xid assigned.

CVS commit: src/usr.sbin/ypbind

2011-05-24 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue May 24 06:59:53 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: The name field of a domain should be dom->dom_name, not dom->dom_domain. (This and the previous patch make the code far more readable.) To

CVS commit: src/usr.sbin/ypbind

2011-05-23 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue May 24 06:59:35 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: The default name for a "domain" variable should be "dom", not "ypdb". Change them all, and make a couple other related adjustments. To gen

CVS commit: src/usr.sbin/ypbind

2011-05-23 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue May 24 06:59:07 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: ypbindlist -> domains To generate a diff of this commit: cvs rdiff -u -r1.76 -r1.77 src/usr.sbin/ypbind/ypbind.c Please note that diffs a

CVS commit: src/usr.sbin/ypbind

2011-05-23 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue May 24 06:58:55 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: xid2ypdb() -> domain_find() To generate a diff of this commit: cvs rdiff -u -r1.75 -r1.76 src/usr.sbin/ypbind/ypbind.c Please note that d

CVS commit: src/usr.sbin/ypbind

2011-05-23 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue May 24 06:58:42 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Rename struct _dom_binding -> struct domain. To generate a diff of this commit: cvs rdiff -u -r1.74 -r1.75 src/usr.sbin/ypbind/ypbind.c P

CVS commit: src/usr.sbin/ypbind

2011-05-23 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue May 24 06:58:19 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Move a bunch of messy sunrpc-related initialization stuff into its own function instead of blatting it all into main(). To generate a diff

CVS commit: src/usr.sbin/ypbind

2011-05-23 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue May 24 06:58:07 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Assimilate the open/flock combination used several times into its own function. To generate a diff of this commit: cvs rdiff -u -r1.72 -r1

CVS commit: src/usr.sbin/ypbind

2011-05-23 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue May 24 06:57:55 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Fix up calls to yp_log. They cannot use %m, because if the -d option is used the messages are sent via printf instead of syslog(3). Also, m

CVS commit: src/usr.sbin/ypbind

2011-05-23 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue May 24 06:57:30 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Abstract out some of the handling of the ypservers file. To generate a diff of this commit: cvs rdiff -u -r1.70 -r1.71 src/usr.sbin/ypbind

CVS commit: src/usr.sbin/ypbind

2011-05-23 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue May 24 06:57:04 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Check that the domain name is valid up front, instead of doing it after opening sockets and registering services and whatnot. To generate

CVS commit: src/usr.sbin/ypbind

2011-05-23 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue May 24 06:56:48 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Remove now-unnecessary extra forward decls; sprinkle a little more static. To generate a diff of this commit: cvs rdiff -u -r1.68 -r1.69 s

CVS commit: src/usr.sbin/ypbind

2011-05-23 Thread David A. Holland
Module Name:src Committed By: dholland Date: Tue May 24 06:56:16 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Sort contents of file. To generate a diff of this commit: cvs rdiff -u -r1.67 -r1.68 src/usr.sbin/ypbind/ypbind.c Please note that diffs

CVS commit: src/usr.sbin/ypbind

2011-05-22 Thread David A. Holland
Module Name:src Committed By: dholland Date: Mon May 23 02:54:53 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: sort includes To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/usr.sbin/ypbind/ypbind.c Please note that diffs are not p

CVS commit: src/usr.sbin/ypbind

2011-05-22 Thread David A. Holland
Module Name:src Committed By: dholland Date: Mon May 23 02:43:10 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Don't use _t as an identifier suffix meaning "variable containing a time". To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 s

CVS commit: src/usr.sbin/ypbind

2011-05-22 Thread David A. Holland
Module Name:src Committed By: dholland Date: Mon May 23 02:36:35 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Introduce DPRINTF() macro, remove most #ifdef DEBUG usages. No change to compiler output. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/usr.sbin/ypbind

2011-05-22 Thread David A. Holland
Module Name:src Committed By: dholland Date: Mon May 23 02:06:42 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: u_int32_t -> uint32_t and similar To generate a diff of this commit: cvs rdiff -u -r1.63 -r1.64 src/usr.sbin/ypbind/ypbind.c Please note

CVS commit: src/usr.sbin/ypbind

2011-03-29 Thread David A. Holland
Module Name:src Committed By: dholland Date: Wed Mar 30 05:24:06 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: Don't cast return value of malloc To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 src/usr.sbin/ypbind/ypbind.c Please note

CVS commit: src/usr.sbin/ypbind

2011-03-29 Thread David A. Holland
Module Name:src Committed By: dholland Date: Wed Mar 30 05:21:00 UTC 2011 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: use __printflike() To generate a diff of this commit: cvs rdiff -u -r1.61 -r1.62 src/usr.sbin/ypbind/ypbind.c Please note that diffs are

CVS commit: src/usr.sbin/ypbind

2009-11-05 Thread Chuck Cranor
Module Name:src Committed By: chuck Date: Thu Nov 5 19:34:06 UTC 2009 Modified Files: src/usr.sbin/ypbind: ypbind.c Log Message: in the case where ypbind is serving more than one domain (i.e. not just the yp_get_default_domain() domain), we must remove any old binding fil