aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/rpc.yppasswdd
Commit message (Collapse)AuthorAgeFilesLines
* Convert usr.sbin to LIBADDBaptiste Daroussin2014-11-251-2/+1
| | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275054
* use .Mt to mark up email addresses consistently (part2)Baptiste Daroussin2014-06-201-1/+1
| | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267668
* Handle NULL return from crypt(3). Mostly from DragonFlyKevin Lo2012-02-221-2/+3
| | | | Notes: svn path=/head/; revision=231994
* Consistently set RPCGEN_CPP when running rpcgen, so the C preprocessorDimitry Andric2012-02-071-1/+1
| | | | | | | | | set via ${CPP} is used, instead of always using hardcoded /usr/bin/cpp. MFC after: 1 week Notes: svn path=/head/; revision=231118
* Remove duplicated header filesKevin Lo2011-06-241-1/+0
| | | | Notes: svn path=/head/; revision=223492
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-1/+1
| | | | Notes: svn path=/head/; revision=201390
* yppasswdd assumed that a struct x_master_passwd is type punable to aWarner Losh2009-02-181-3/+21
| | | | | | | | | | | | | | | | | | | struct passwd. This is not the case when sizeof(unsigned long) != sizeof(time_t). Write a dinky function to do the assignment instead of relying on the punning. This does slow things down a little (1 extra function call, 11 pointer or int assignments), but is much safer and machines have been fast enough since the mid 1990s that nobody will notice the difference. time_t is a 64-bits int on arm and mips. Before this change, arm was silently broken. I guess there aren't that many ARM machines running master YP domain servers. :) The client side doesn't assume this type punning, so it doesn't need to be fixed. Notes: svn path=/head/; revision=188766
* - Whenever a password/shell is changed via rpc.yppasswdd, the daemon leavesRong-En Fan2008-10-301-0/+4
| | | | | | | | | | | | | | | | one zombie process because it does not do the cleanup. For a long running NIS/YP server, it will have lots of zombie processes on it. Fix that by ignoring the SIGCHLD signal since we don't really care about the exit status in this case. PR: bin/91980 Reported by: Arjan van der Velde <dj_noresult at hotmail.com> Submitted by: Jui-Nan Lin" <jnlin at csie.nctu.edu.tw> Reviewed by: delphij MFC after: 1 month Notes: svn path=/head/; revision=184459
* These are the things that the tinderbox has problems with because itJohn Birrell2007-11-201-0/+1
| | | | | | | | | | | doesn't use the default CFLAGS which contain -fno-strict-aliasing. Until the code is cleaned up, just add -fno-strict-aliasing to the CFLAGS of these for the tinderboxes' sake, allowing the rest of the tree to have -Werror enabled again. Notes: svn path=/head/; revision=173766
* Use socklen_t in place of socket operations, instead of intXin LI2005-05-021-2/+2
| | | | Notes: svn path=/head/; revision=145803
* Expand contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141851
* Expand *n't contractions.Ruslan Ermilov2005-02-131-3/+3
| | | | Notes: svn path=/head/; revision=141846
* Sort sections.Ruslan Ermilov2005-01-181-2/+2
| | | | Notes: svn path=/head/; revision=140442
* Utilize SCRIPTS.Ruslan Ermilov2004-10-181-5/+2
| | | | Notes: svn path=/head/; revision=136675
* Remove definition of struct dom_binding, it's non-standard C code andStefan Farfeleder2004-10-171-1/+0
| | | | | | | unnecessary since src/include/rpcsvc/ypclnt.h's revision 1.10. Notes: svn path=/head/; revision=136620
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-1/+2
| | | | Notes: svn path=/head/; revision=131500
* Fix yppasswdproc_update_master_1_svc() too.Martin Blapp2003-06-151-0/+32
| | | | | | | | | | | | | Only call pw_mkdb if passfile == _PATH_MASTERPASSWD. Otherwise, rename master.passwd to a temp filename, rename the new passwd to master.passwd, and let yppwupdate update passwd as it sees fit. Reviewed by: phk Tested by: genesys Notes: svn path=/head/; revision=116421
* Only call pw_mkdb if passfile == _PATH_MASTERPASSWD.Martin Blapp2003-06-151-9/+47
| | | | | | | | | | | | | Otherwise, rename master.passwd to a temp filename, rename the new passwd to master.passwd, and let yppwupdate update passwd as it sees fit. PR: 52601, 7968 Reviewed by: des Submitted by: Dan Nelson <dnelson@allantgroup.com> Notes: svn path=/head/; revision=116392
* Use __FBSDID over rcsid[]. Protect copyright[] where needed.David E. O'Brien2003-05-033-12/+6
| | | | Notes: svn path=/head/; revision=114601
* style.Makefile(5)David E. O'Brien2003-04-041-2/+1
| | | | Notes: svn path=/head/; revision=113091
* Implement nonblocking tpc-connections. rpcgen -m does stillMartin Blapp2003-01-161-0/+4
| | | | | | | | | | | produce backcompatible code. Reviewed by: rwatson Obtained from: NetBSD MFC after: 1 day Notes: svn path=/head/; revision=109363
* english(4) police.Jens Schweikhardt2002-12-271-1/+1
| | | | Notes: svn path=/head/; revision=108317
* Drop support for COPY, -c has been the default mode of install(1)Ruslan Ermilov2002-07-291-1/+1
| | | | | | | | | for a long time now. Approved by: bde Notes: svn path=/head/; revision=100872
* s/${INSTALL} -c/${INSTALL} ${COPY}/Ruslan Ermilov2002-07-181-1/+1
| | | | Notes: svn path=/head/; revision=100313
* The .Nm utilityPhilippe Charnier2002-07-141-6/+8
| | | | Notes: svn path=/head/; revision=99968
* de-__P()Alfred Perlstein2002-07-111-3/+2
| | | | Notes: svn path=/head/; revision=99824
* Unbreak Alpha build.Dag-Erling Smørgrav2002-05-151-1/+2
| | | | Notes: svn path=/head/; revision=96644
* unbreak build: fix multi-line string literalAlfred Perlstein2002-05-111-1/+1
| | | | Notes: svn path=/head/; revision=96391
* unbreak build: ditch multi-line string literalsAlfred Perlstein2002-05-111-1/+1
| | | | Notes: svn path=/head/; revision=96389
* Use libutil instead of pw_{copy,util}.c. Clean up a little. Warnsify.Dag-Erling Smørgrav2002-05-086-517/+169
| | | | | | | Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=96222
* ANSIfy and remove some dead code.Dag-Erling Smørgrav2002-02-064-42/+34
| | | | | | | Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=90298
* Apply the following mechanical transformations in preparation forDag-Erling Smørgrav2002-02-064-17/+17
| | | | | | | | | | | | | | | | | | | | ansification and constification: s{\s+__P\((\(.*?\))\)}{$1}g; s{\(\s+}{\(}g; s{\s+\)}{\)}g; s{\s+,}{,}g; s{(\s+)(for|if|switch|while)\(}{$1$2 \(}g; s{return ([^\(].*?);}{return ($1);}g; s{([\w\)])([!=+/\*-]?=)([\w\(+-])}{$1 $2 $3}g; s{\s+$}{\n};g Also add $FreeBSD$ where needed. MFC after: 1 week Notes: svn path=/head/; revision=90297
* Do a bit more of prototype cleanup.Ruslan Ermilov2002-02-063-6/+1
| | | | Notes: svn path=/head/; revision=90294
* Fix the breakage in rpc.yppasswd. Readded the svc_create() andAlfred Perlstein2002-02-052-78/+51
| | | | | | | | | | | | | | the registering of the "unix" transport, now it is fixed. Everywhere, rq_cred is taken to look what authentification we have. We can not be sure that transp>xp_verf.oa_flavor is also filled in. This seems to be the same for all sun source. they take the flavor of rq_cred, instead of transp. Submitted by: mbr Notes: svn path=/head/; revision=90253
* tab in pw_mkdb's arg for style.Alfred Perlstein2002-02-051-1/+1
| | | | Notes: svn path=/head/; revision=90247
* Constify things to unbreak world.Alfred Perlstein2002-02-052-3/+3
| | | | | | | Submitted by: David Wolfskill <david@catwhisker.org> Notes: svn path=/head/; revision=90246
* yp(4) -> yp(8).Ruslan Ermilov2002-01-141-1/+1
| | | | | | | PR: docs/30797 Notes: svn path=/head/; revision=89362
* Spelling police: sucessful -> successful.Dima Dorfman2001-11-241-1/+1
| | | | Notes: svn path=/head/; revision=86882
* Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-07-201-10/+9
| | | | | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before. Notes: svn path=/head/; revision=80029
* Remove whitespace at EOL.Dima Dorfman2001-07-151-1/+1
| | | | Notes: svn path=/head/; revision=79755
* Fix the type of the NULL arg to execl()Brian Somers2001-07-092-6/+7
| | | | | | | Idea from: Theo de Raadt <deraadt@openbsd.org> Notes: svn path=/head/; revision=79452
* Correct a typo in an error message.Dima Dorfman2001-06-161-1/+1
| | | | Notes: svn path=/head/; revision=78369
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+2
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74816
* Remove struct cmessage from sys/socket.h and reintroduce the privateAlfred Perlstein2001-03-221-0/+5
| | | | | | | | | definitions. Requested by: wollman Notes: svn path=/head/; revision=74660
* Unbreak world by removing struct cmessage already define in sys/socket.hAndrey A. Chernov2001-03-221-5/+0
| | | | Notes: svn path=/head/; revision=74657
* Set the default manual section for usr.sbin/ to 8.Ruslan Ermilov2001-03-201-2/+0
| | | | Notes: svn path=/head/; revision=74532
* Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) andAlfred Perlstein2001-03-191-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | associated changes that had to happen to make this possible as well as bugs fixed along the way. Bring in required TLI library routines to support this. Since we don't support TLI we've essentially copied what NetBSD has done, adding a thin layer to emulate direct the TLI calls into BSD socket calls. This is mostly from Sun's tirpc release that was made in 1994, however some fixes were backported from the 1999 release (supposedly only made available after this porting effort was underway). The submitter has agreed to continue on and bring us up to the 1999 release. Several key features are introduced with this update: Client calls are thread safe. (1999 code has server side thread safe) Updated, a more modern interface. Many userland updates were done to bring the code up to par with the recent RPC API. There is an update to the pthreads library, a function pthread_main_np() was added to emulate a function of Sun's threads library. While we're at it, bring in NetBSD's lockd, it's been far too long of a wait. New rpcbind(8) replaces portmap(8) (supporting communication over an authenticated Unix-domain socket, and by default only allowing set and unset requests over that channel). It's much more secure than the old portmapper. Umount(8), mountd(8), mount_nfs(8), nfsd(8) have also been upgraded to support TI-RPC and to support IPV6. Umount(8) is also fixed to unmount pathnames longer than 80 chars, which are currently truncated by the Kernel statfs structure. Submitted by: Martin Blapp <mb@imp.ch> Manpage review: ru Secure RPC implemented by: wpaul Notes: svn path=/head/; revision=74462
* Fix typo: seperate -> separate.Jeroen Ruigrok van der Werven2001-02-061-2/+2
| | | | | | | Seperate does not exist in the english language. Notes: svn path=/head/; revision=72091
* Prepare for mdoc(7)NG.Ruslan Ermilov2001-01-161-1/+1
| | | | Notes: svn path=/head/; revision=71102
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-3/+3
| | | | Notes: svn path=/head/; revision=68965