Commit Graph

34 Commits

Author SHA1 Message Date
wiz 1ac719d147 Remove unnecessary Bk/Ek pairs from SYNOPSIS.
No effective change except where I used the opportunity to sort options
and/or option descriptions.
2012-04-08 22:00:37 +00:00
wiz 933a549c56 Make usage match manpage. 2011-04-25 22:51:26 +00:00
wiz 9ebf684514 Remove unimplemented -b option. From YOMURA Masanori. 2011-04-25 22:49:06 +00:00
chuck a8036503d8 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.
2009-11-05 21:26:25 +00:00
chuck fd40ef4f59 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.
2009-11-05 15:23:55 +00:00
snj 07ce40632e 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.
2009-10-20 00:51:13 +00:00
lukem d3d3aa621a Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare) 2009-04-19 06:06:39 +00:00
lukem cea4b7cdfd 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.
2008-02-29 03:00:47 +00:00
bouyer 17cb72c505 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.
2006-03-22 19:54:13 +00:00
lukem a0b1a25618 snprintf NUL terminates, so there is no need to explicitly do it afterwards 2005-06-19 23:43:51 +00:00
thorpej 5b0ca568cb YP -> NIS 2005-02-26 16:33:46 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz dfb66d510f instead, not insteed; from Adrian Mrva. 2002-12-21 12:58:38 +00:00
wiz cfa755ae92 de__P, ANSIfy. 2002-07-06 00:53:54 +00:00
wiz 10d6eb080d Drop duplicate .Pp. 2002-03-05 15:09:26 +00:00
wiz 07acb1b340 Use standard headers, mark up AUTHORS section. 2002-02-02 02:31:02 +00:00
wiz a2d753e3ef Whitespace nits. 2002-01-19 11:44:57 +00:00
cgd 25bdbb661e convert to use getprogname() 2001-02-19 23:22:40 +00:00
lukem a78cb15fc9 use "ypxfr" instead of __progname as ident arg to openlog
wrap all debug syslogs in #ifdef DEBUG (rather than just most of them)
2001-01-11 00:35:49 +00:00
lukem 7dc5b4fed5 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]
1999-07-25 09:36:02 +00:00
mycroft d77575d3c8 Clean up SYNOPSIS formatting. 1999-03-07 11:58:22 +00:00
thorpej dd2ecab580 Use syslog(3) to log debugging info, and only if we're compiled with
-DDEBUG.
1999-01-22 02:38:05 +00:00
ross b1934d6034 {} fixes from Erik Bertelsen <erik@erik-be.uni-c.dk> (PR 6047) to shut up egcs. 1998-08-27 20:31:00 +00:00
lukem 721843cf7a use ".Tn YP" instead of "YP", fix up some .Nd entries, use .Pa for mapnames 1997-11-08 15:03:21 +00:00
lukem 64718e58ff add rcsid 1997-10-13 03:15:30 +00:00
lukem 87ca3b181a minor KNFify 1997-10-07 15:00:35 +00:00
lukem dc497bdd46 cleanup typos, grammaros, thinkos, and misuse of mdoc macros 1997-10-07 14:23:50 +00:00
lukem ac64718550 - build common/* once, into a library, rather than recompiling each of
the files multiple times in the other subdirectories (saves about
  10% on compilation time)
- clean up the manual pages
1997-10-02 14:16:12 +00:00
thorpej 3d8138fc0e Fix compiler warnings (and an awful lot of annoying little bugs). 1997-07-18 21:57:00 +00:00
gwr 10e180cc49 Back out the .PATH.c changes. The .depend problem (and others)
will be fixed using the new .NOPATH make feature instead.
1997-05-08 21:11:01 +00:00
gwr 012e528f2e Use .PATH.c: ... 1997-05-06 20:44:56 +00:00
lukem 789002a23e use O_EXCL with O_CREAT when making the temporary db files 1997-03-22 03:32:36 +00:00
chuck 3745979128 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.
1996-08-15 22:17:57 +00:00
thorpej 60aa689c94 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.
1996-08-09 10:14:49 +00:00