History log of /src/usr.sbin/ypserv/ypxfr/ypxfr.c |
Revision | | Date | Author | Comments |
1.21 |
| 04-May-2017 |
sevan | Drop main() prototype.
|
1.20 |
| 25-Apr-2011 |
wiz | branches: 1.20.34; Make usage match manpage.
|
1.19 |
| 05-Nov-2009 |
chuck | rev 1.18 un-covered some bugs:
1. add_interdomain and add_secure are optional... not all maps use these keys. if we are unable to add them due to a YPERR_KEY (meaning they are not being used), then we should not flag this as a general error.
2. if we have a failure (status <= 0) we unlink_db() the temp database as part of error handling. but we should not overwrite our error status code with the return value from unlink_db() because if the unlink_db() works (likely true) than that success will wipe out our error code and the calling yppush will think we worked.
|
1.18 |
| 05-Nov-2009 |
chuck | yppush RPC is supposed to return yppush_status error/status codes (e.g. YPPUSH_SUCC, YPPUSH_NOMAP, etc.).
Functions like yp_master, yp_order_host, yp_master_host, and yp_match_host return YPERR-style error codes. YPERR-style error codes do not directly correspond to yppush_status codes, so it is a bad idea to just directly YPERR codes into the yppush return status value (it causes failing yppush runs to print confusing error messages).
Change ypxfr.c to convert the YPERR codes to YPPUSH codes.
|
1.17 |
| 20-Oct-2009 |
snj | Follow upstream's lead and remove third and fourth clauses (except on from usr.sbin/mopd/common/pf.c, where only the ad clause is removed, because it has a shared UCB copyright) on Mats O Jansson's files.
thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares copyright.
|
1.16 |
| 19-Apr-2009 |
lukem | Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare)
|
1.15 |
| 29-Feb-2008 |
lukem | branches: 1.15.8; 1.15.10; Simplify ypdb_open() API and just use it for opening the DB for reading. Provide a separate ypdb_mktemp() API to open a temporary file read-write. Use mkstemp() instead of mktemp().
NOTE: makedbm & mkalias tested ok. I couldn't test ypxfer.
|
1.14 |
| 22-Mar-2006 |
bouyer | branches: 1.14.10; 1.14.16; In add_secure(), change (status > 0) to (status == 0 && value). It doesn't make sense to handle value only if there was an error. Fix coverity ID 1709.
|
1.13 |
| 19-Jun-2005 |
lukem | snprintf NUL terminates, so there is no need to explicitly do it afterwards
|
1.12 |
| 06-Jul-2002 |
wiz | de__P, ANSIfy.
|
1.11 |
| 19-Feb-2001 |
cgd | convert to use getprogname()
|
1.10 |
| 11-Jan-2001 |
lukem | use "ypxfr" instead of __progname as ident arg to openlog wrap all debug syslogs in #ifdef DEBUG (rather than just most of them)
|
1.9 |
| 25-Jul-1999 |
lukem | don't call ypdb_close() until after we're finished using data returned by a previous ypdb_*() operation. seems to fix a problem noted in [bin/8064]
|
1.8 |
| 22-Jan-1999 |
thorpej | Use syslog(3) to log debugging info, and only if we're compiled with -DDEBUG.
|
1.7 |
| 27-Aug-1998 |
ross | {} fixes from Erik Bertelsen <erik@erik-be.uni-c.dk> (PR 6047) to shut up egcs.
|
1.6 |
| 13-Oct-1997 |
lukem | add rcsid
|
1.5 |
| 07-Oct-1997 |
lukem | minor KNFify
|
1.4 |
| 18-Jul-1997 |
thorpej | Fix compiler warnings (and an awful lot of annoying little bugs).
|
1.3 |
| 22-Mar-1997 |
lukem | use O_EXCL with O_CREAT when making the temporary db files
|
1.2 |
| 15-Aug-1996 |
chuck | fix broken case statement for "-C", also check to make sure we've got the proper number of args for -C and give up if not. fixes yp slave servers.
|
1.1 |
| 09-Aug-1996 |
thorpej | branches: 1.1.1; Initial revision
|
1.1.1.1 |
| 09-Aug-1996 |
thorpej | A ypserv implementation, originally written by Mats O Jansson, with some changes by me, including misc. cleanup, minor bug fixes, and brand-new access control list code.
|
1.14.16.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
1.14.10.1 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.15.10.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.15.8.1 |
| 16-Feb-2011 |
bouyer | Pull up following revision(s) (requested by chuck in ticket #1550): usr.sbin/ypserv/ypxfr/ypxfr.c: revision 1.16 - 1.19 Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare) Follow upstream's lead and remove third and fourth clauses (except on from usr.sbin/mopd/common/pf.c, where only the ad clause is removed, because it has a shared UCB copyright) on Mats O Jansson's files. thorpej OK'd usr.sbin/rpc.yppasswdd/yppasswdd_mkpw.c, where he shares copyright. yppush RPC is supposed to return yppush_status error/status codes (e.g. YPPUSH_SUCC, YPPUSH_NOMAP, etc.). Functions like yp_master, yp_order_host, yp_master_host, and yp_match_host return YPERR-style error codes. YPERR-style error codes do not directly correspond to yppush_status codes, so it is a bad idea to just directly YPERR codes into the yppush return status value (it causes failing yppush runs to print confusing error messages). Change ypxfr.c to convert the YPERR codes to YPPUSH codes. rev 1.18 un-covered some bugs: 1. add_interdomain and add_secure are optional... not all maps use these keys. if we are unable to add them due to a YPERR_KEY (meaning they are not being used), then we should not flag this as a general error. 2. if we have a failure (status <= 0) we unlink_db() the temp database as part of error handling. but we should not overwrite our error status code with the return value from unlink_db() because if the unlink_db() works (likely true) than that success will wipe out our error code and the calling yppush will think we worked.
|
1.20.34.1 |
| 11-May-2017 |
pgoyette | Sync with HEAD
|