2003-02-05 Thorsten Kukuk <kukuk@suse.de> * release version 2.8 * lib/ypserv_conf.c (load_ypserv_conf): Fix debug output. * ypserv/server.c (ypproc_xfr_2_svc): Increase children before we fork, to make sure the variable will not become negative in sig_child. * lib/access.c (is_valid): If connection is refused, print status for debugging purpose. * lib/securenets.c (load_securenets): Fix debug output. 2003-02-04 Peter Breitenlohner <peb@mppmu.mpg.de> * yphelper/yphelper.c: Fix compiler warning. * ypxfr/ypxfr_xdr.c: Fix compiler warning. 2003-02-04 Thorsten Kukuk <kukuk@suse.de> * release version 2.7 * ypserv/Makefile.am (DEFS): Add MAX_CHILDREN define. * ypserv/ypserv.c (sig_child): Readd old sig handler for checking number of running children. * configure.in: Check only for gdbm library. * ypserv/server.c (ypproc_all_2_svc): fork for sending data to client. * etc/Makefile.am: Require automake 1.7 * scripts/Makefile.am: Likewise. * lib/Makefile.am: Require automake 1.7, rename CFLAGS to AM_CFLAGS * makedbm/Makefile.am: Likewise * mknetid/Makefile.am: Likewise * revnetgroup/Makefile.am: Likewise * rpc.yppasswdd/Makefile.am: Likewise * rpc.ypxfrd/Makefile.am: Likewise * yphelper/Makefile.am: Likewise * yppush/Makefile.am: Likewise * ypserv/Makefile.am: Likewise * ypxfr/Makefile.am: Likewise 2003-01-17 Thorsten Kukuk <kukuk@suse.de> * ypserv/ypserv.8.in: Remove -b/--dns option 2002-10-28 Thorsten Kukuk <kukuk@suse.de> * release version 2.6 * lib/yp_db.c: Make number of max. open file handles configureable. * lib/ypserv_conf.c: max. number of cached_filehandles is 255. * rpc.ypxfrd/ypxfrd.c: set cached_filehandles to 0 after loading config file, rpc.ypxfrd should not cache file handles. * ypserv/ypserv.c (sig_hup): Don't allow to decrease the max. number of cached file handles with SIGHUP. * etc/ypserv.conf.5: Add documentation about new files option. * makedbm/makedbm.c (create_file): If we find a <TAB> in a key, assume that <TAB> is the seperator between key and data. 2002-10-26 Thorsten Kukuk <kukuk@suse.de> * rpc.ypxfrd/ypxfrd_server.c (ypxfrd_getmap_1_svc): Close file handle of database (we don't need it). Reported by Tsutomu Hoshino <hoshino@sic.shibaura-it.ac.jp> 2002-08-08 Thorsten Kukuk <kukuk@suse.de> * release version 2.5 * configure.in: Check for in_addr_t 2002-08-06 Thorsten Kukuk <kukuk@suse.de> * yppush/yppush.8.in: Fix syntax error. 2002-08-06 Thorsten Kukuk <kukuk@suse.de> * lib/yp_db.c (ypdb_open): Check if map exist before allocating memory for extra data. * lib/access.c (is_valid): If map does not exist, return -2, not success. 2002-07-23 Thorsten Kukuk <kukuk@suse.de> * ypserv/server.c (ypproc_xfr_2_svc): Print also name of the expected master if we refuse to transfer a map. 2002-07-02 Thorsten Kukuk <kukuk@suse.de> * rpc.ypxfrd/Makefile.in (rpc_ypxfrd_LDADD): link against libyp.a before linking against libgdbm. * ypserv/Makefile.in (rpc_ypxfrd_LDADD): Likewise. (Reported by Todd R. Eigenschink <todd@tekinteractive.com>) 002-05-27 Thorsten Kukuk <kukuk@suse.de> * release version 2.4 * scripts/ypMakefile.in (MINUID/MINGID): increase both variables to 500 as defined by LSB and to be compatible with most Linux distributions. * lib/ypserv.conf.5: move from here ... * etc/ypserv.conf.5: ... to here. Remove mangle field description. * lib/Makefile.am: Remove ypserv.conf.5 * etc/Makefile.am: Add ypserv.conf.5 2002-05-23 Martin Vidner <mvidner@suse.cz> * yphelper/yphelper.c: Add -i option to getopt_long 2002-05-14 Thorsten Kukuk <kukuk@suse.de> * release version 2.3 * yppush/yppush.c (hostcmp): Get ride of this function, since it could remove correct slaves which have the same hostname but are in other domains. * yphelper/yphelper.c (is_master): New function, check if we are the master for a given map. * yphelper/Makefile.am (yphelper_LDADD): Link against dbm library. 2002-05-13 Thorsten Kukuk <kukuk@suse.de> * configure.in: Prefer libxcrypt over libcrypt. 2002-04-26 Thorsten Kukuk <kukuk@suse.de> * configure.in: Adjust for new autoconf. * config.guess: Deleted. * config.sub: Deleted. * acconfig.h: Deleted. * lib/ypserv.conf.5: Document trusted_master option. * yphelper/yphelper.c: Fix compiler warnings. * mknetid/mknetid.c: Use getline/getdelim instead of fgets to avoid static buffer. * scripts/create_printcap.in: Fix syntax error to get it to work with all awk implementations. 2002-04-06 Thorsten Kukuk <kukuk@suse.de> * yppush/yppush.c (yppush_xfrrespprog_1): Exit from thread if not YPPUSHPROC_NULL was called. 2001-12-16 Thorsten Kukuk <kukuk@thkukuk.de> * ypserv/server.c: Add missing break in switch statement. * ypserv/ypserv.c (main): getopt returns -1, not EOF. 2001-12-03 Thorsten Kukuk <kukuk@suse.de> * ypxfr/ypxfr.c (ypxfr): Don't replace name of master with FQDN, else ypserv cannot compare it later. 2001-11-26 Thorsten Kukuk <kukuk@suse.de> * release version 2.2 * scripts/ypinit.in (ypinit_master): Add missing else case (don't print error message in success case). Reported by Michael Sterrett <msterret@coat.com>. * lib/access.c (is_valid): Fix return value if host is not allowed to connect. * scripts/ypxfr_1perday.in: Add variable for maps. * scripts/ypxfr_1perhour.in: Likewise. * scripts/ypxfr_2perday.in: Likewise. 2001-10-29 Thorsten Kukuk <kukuk@suse.de> * acinclude.m4: New, contains macro for ElectricFence option * configure.in: Add option for dmalloc and ElectricFence * ypserv/server.c (ypproc_all_2_svc): Reset callback data at beginning to avoid bogus data if we abort with an error. (ypall_close): Abort if data is NULL. * yphelper/yphelper.c: Allow IP numbers as hostname, also lookup hostname from NIS map for compare. 2001-09-02 Thorsten Kukuk <kukuk@suse.de> * release version 2.1 * rpc.yppasswdd/yppasswdd.c: Implement --port parameter to bind to a special port. * rpc.yppasswdd/rpc.yppasswdd.8.in: Document new parameter. 2001-09-02 Martin Vidner <mvidner@suse.cz> * Fix various errors in manual pages 2001-08-30 Thorsten Kukuk <kukuk@suse.de> * lib/Makefile.am: Remove ypproc_all_2.c * ypxfr/ypxfr_xdr.c: Add special ypproc_all_2 function * ypxfr/ypxfr.8: Renamed from this ... * ypxfr/ypxfr.8.in: ... to this * yppush/yppush.8: Renamed from this ... * yppush/yppush.8.in: ... to this * configure.in: create ypxfr/ypxfr.8 and yppush/yppush.8 * revnetgroup/revnetgroup.8.in: New 2001-08-26 Thorsten Kukuk <kukuk@suse.de> * scripts/Makefile.am: Don't strip scripts * ypserv/server.c: Fix null byte termination of order number (reported by Juergen Holm <holm@Theorie.Physik.UNI-Goettingen.DE>) 2001-08-20 Thorsten Kukuk <kukuk@suse.de> * configure.in: Create ypserv/ypserv.8 * ypserv/ypserv.8: renamed from this .. * ypserv/ypserv.8.in: .. to this. 2001-08-12 Thorsten Kukuk <kukuk@suse.de> * configure.in: Rename variable MAIL_ALIASES to ALIASES. * lib/Makefile.am: Install ypxfrd.h into include/rpcsvc. * scripts/ypMakefile.in: Fix makedbm path. 2001-08-11 Thorsten Kukuk <kukuk@suse.de> * ypserv/ypserv.c (main): Fix missing format string, only change database directory if we are in debug mode. 2001-08-07 Thorsten Kukuk <kukuk@suse.de> * release version 2.0 2001-08-06 Thorsten Kukuk <kukuk@suse.de> * scripts/Makefile.am (varyp_SCRIPTS): Add ypMakefile * configure.in: Create scripts/ypMakefile 2001-08-05 Thorsten Kukuk <kukuk@suse.de> * lib/ypserv_conf.c (load_ypserv_conf): * etc/netgroup.5: Add comment about non existing getnetgrent manual page. * scripts/ypMakefile.in: Implement 'MINUID' for shadow map. * rpc.ypxfrd/ypxfrd.c (closedown): Removed external svs_fdset declaration. Patches from Miquel van Smoorenburg <miquels@cistron.nl>) * yphelper/yphelper.c (print_maps): Make a copy of gethostbyname result (we call gethostbyname later again) and fix a minor memory leak. Based on patch by Richard Gooch <rgooch@atnf.csiro.au> 2001-04-08 Thorsten Kukuk <kukuk@suse.de> * scripts/Makefile.am: Add ypinit script and manual page * scripts/ypinit.in: New. * scripts/ypinit.8.in: New. * scripts/create_printcap.in: New. * scripts/match_printcap.in: New. * scripts/pwupdate.8.in: New. * scripts/pwupdate.in: New. * mknetid/mknetid.c: New. * mknetid/mknetid.h: New. * mknetid/netid_hash.c: New. * rpc.ypxfrd: New. * rpc.yppasswdd: New. 2001-03-25 Thorsten Kukuk <kukuk@suse.de> * configure.in: Create revnetgroup/yphelper Makefile * Makefile.am (SUBDIRS): Add revnetgroup and yphelper directory. * revnetgroup/Makefile.am: New. * revnetgroup/revnetgroup.c: New. * revnetgroup/revnetgroup.8: New. * revnetgroup/getnetgrent.c: New. * revnetgroup/hash.c: New. * yphelper/yphelper.c: New. * yphelper/yphelper.8: New. * ypxfr/ypxfr.c (ypxfr): Check return value from NIS server for yp_order call. * lib/ypserv_conf.c (load_ypserv_conf): Don't free buffer allocated with alloca, use stpcpy instead of sprintf. 2001-03-11 Thorsten Kukuk <kukuk@suse.de> * ypserv/yp_db.c: Enable caching of gdbm file handles. 2000-11-19 Thorsten Kukuk <kukuk@suse.de> * ypxfr/ypxfr.c: Major rewrite. * ypxfr/ypxfr.c(ypxfr): properly terminate a string before run "atoi" on it (reported by Andy Stevens <stevens@2agent.com>) * ypserv/ypserv.c (main): Fix typo (install SIGCHLD handler) 2000-10-28 Thorsten Kukuk <kukuk@suse.de> * ypserv/ypserv.c: Add SIGCHLD handler for forked processes. * ypserv/yp_db.c (_db_open): Add hook to set gdbm cache size. 2000-10-24 Thorsten Kukuk <kukuk@suse.de> * lib/ypserv_conf.c (load_ypserv_conf): Parse for trusted_master * lib/ypserv_conf.h: Add prototype for trusted_master. * ypserv/server.c (ypproc_xfr_2_svc): Check if new map is from trusted master * ypserv/Makefile.am (noinst_HEADERS): Add access.h * start major rewrite of ypserv for version 2