summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv
Commit message (Collapse)AuthorAgeFilesLines
* MFC ↵ngie2017-05-301-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r314451,r314452,r314453,r314456,r314457,r314458,r314459,r314460,r314461,r314462,r314464,r314466,r314468,r314470,r314472,r314478: r314451: Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones The SRCTOP conversion simplifies pathing in make/displayed output. Also, while here, change a hardcoded path to ar5523.bin.uu in the make target with ${.ALLSRC} . r314452: Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones r314453: Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones r314456: Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones This simplifies pathing in make/displayed output. r314457: Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones The SRCTOP conversion simplifies pathing in make/displayed output. Also, while here, change a hardcoded path to ${RPCDIR}/ypupdate_prot.x in the make targets with ${.ALLSRC} . r314458: Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones This simplifies pathing in make/displayed output. r314459: Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones This simplifies pathing in make/displayed output. r314460: Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones This simplifies pathing in make/displayed output. r314461: Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones This simplifies pathing in make/displayed output. r314462: Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones The SRCTOP conversion simplifies pathing in make/displayed output. Also, while here, change a hardcoded path to ${RPCDIR}/ypxfrd.x in the make targets with ${.ALLSRC} . r314464: Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones This simplifies pathing in make/displayed output. r314466: Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones This simplifies pathing in make/displayed output. r314468: Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones Also, use :H where possible/sensical to manipulate .CURDIR-relative paths This simplifies pathing in make/displayed output. r314470: Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones This simplifies pathing in make/displayed output. r314472: Simplify/improve idioms in usr.sbin/ntp Makefiles - Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones. This simplifies pathing in make/displayed output. - Also, use :H where possible/sensical to manipulate .CURDIR-relative paths - Remove superfluous bsd.own.mk .includes which are already handled via src.opts.mk .includes r314478: Simplify idioms in Makefiles further - Use SRCTOP-relative paths instead of .CURDIR-relative ones where possible - Use :H to manipulate .CURDIR in areas instead of ..-relative paths.
* MFC r311469:ngie2017-02-041-2/+7
| | | | | Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of always building support into ypserv.
* Delay calling yp_malloc_dnsent() until after some additional sanitytruckman2016-05-251-3/+3
| | | | | | | | checks to avoid leaking memory on error returns. Reported by: Coverity CID: 1007416 MFC after: 1 week
* Call free(cur) if strdup(dirp->d_name) fails to avoid a memory leak.truckman2016-05-251-0/+1
| | | | | | Reported by: Coverity CID: 1007414 MFC after: 1 week
* DIRDEPS_BUILD: Regenerate without local dependencies.bdrewery2016-02-241-12/+0
| | | | | | | | These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division
* Generate ipnodes.by{addr,name} from /etc/hosts for compatibility withume2015-12-181-12/+5
| | | | | | | | | FreeBSD local name resolution. If /var/yp/ipnodes exists, we generate them from it for backward compatibility. Inspired by: NetBSD MFC after: 1 week
* - Keep hosts.by{name,addr} IPv4 only.ume2015-12-181-2/+13
| | | | | | - Add comment how we handle hosts and ipnodes. (from NetBSD) MFC after: 1 week.
* Don't need cast malloc.araujo2015-11-163-5/+5
| | | | | Approved by: rodrigc (mentor) Differential Revision: D4175
* Fix a ton of speelling errorseadler2015-10-211-1/+1
| | | | | | | arc lint is helpful Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com Differential Revision: https://reviews.freebsd.org/D3337
* Sync ypwhich(1) code with the OpenBSD version that is more modern.araujo2015-08-253-2/+413
| | | | | | | | | Update the BSD LICENSE and remove the 3rd clause. Reviewed by: rodrigc, kib, bapt Approved by: bapt (mentor) Obtained from: OpenBSD Differential Revision: D3249
* Serve /etc/eui64 via NIS.asomers2015-08-183-5/+42
| | | | | | | | | | | | The C library already knows how to lookup eui64 entries from NIS. For example, fwcontrol(8) does it. But /var/yp/Makefile.dist doesn't build the eui64 maps, and ypinit(8) doesn't push them to slaves. This change fixes that. Reviewed by: brooks, wblock MFC after: 2 weeks Sponsored by: SpectraLogic Corp Differential Revision: https://reviews.freebsd.org/D3404
* Staticfy and constify some variables and clean up the code a bit to make itaraujo2015-07-284-12/+10
| | | | | | | | more readable. No functional change. Differential Revision: D3166 Reviewed by: kib Sponsored by: gandi.net
* Add META_MODE support.sjg2015-06-131-0/+34
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-271-2/+1
| |\ | |/ |/|
| * Merge head from 7/28sjg2014-08-192-3/+3
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Merge from headsjg2013-09-053-5/+8
| |\ \
| * | | Updated dependenciessjg2013-03-111-0/+1
| | | |
| * | | Updated dependenciessjg2013-02-161-2/+0
| | | |
| * | | Sync with HEAD.obrien2013-02-081-1/+1
| |\ \ \
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+35
| | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | Convert usr.sbin to LIBADDbapt2014-11-251-2/+1
| |_|_|/ |/| | | | | | | | | | | Reduce overlinking
* | | | use .Mt to mark up email addresses consistently (part2)bapt2014-06-202-3/+3
| |_|/ |/| | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
* | | Fix compiler warnings.hrs2013-07-152-2/+6
| | |
* | | Fix a wrong memcpy of struct sockaddr.hrs2013-07-121-3/+2
| |/ |/| | | | | Spotted by: dt71@gmx.com
* | Fix socket calls on error post-r243965.kevlo2012-12-211-1/+1
|/ | | | Submitted by: Garrett Cooper
* Remove superfluous paragraph macro.joel2012-03-251-2/+0
|
* Consistently set RPCGEN_CPP when running rpcgen, so the C preprocessordim2012-02-071-1/+1
| | | | | | set via ${CPP} is used, instead of always using hardcoded /usr/bin/cpp. MFC after: 1 week
* Revert changes in r228790. It prevented the ypserv daemon from working withhrs2012-01-171-3/+1
| | | | with multiple socktypes.
* Spelling fixes for usr.sbin/uqs2011-12-301-1/+1
|
* - Fix style(9) bug I introduced in the last commiteadler2011-12-211-1/+1
| | | | Approved by: jhb
* - Remove extraneous null ptr deref checkseadler2011-12-211-2/+5
| | | | | | | | - Fix memory leak Submitted by: Slono Slono <slonoman2011@yandex.ru> Approved by: jhb MFC after: 1 week
* Protect NIS server with madvise(2) since this daemon is requiredglebius2011-10-251-0/+4
| | | | for succesful authentication of users.
* Add missing argument for -h in usage.kuriyama2011-06-201-1/+1
|
* Spelling fixes.joel2010-08-011-1/+1
|
* Simply ignore unsupported protocols listed in /etc/netconfig andhrs2010-01-201-4/+10
| | | | | abort only if no transport is available. This fixes (INET && !INET6) and (!INET && INET6) case, for example.
* Try a privileged port for binding whenever possible because thehrs2010-01-201-7/+12
| | | | | | | ypbind daemon requires the ypserv daemon is running on a privileged port. Reported by: Andrzej Tobola
* The last big commit: let usr.sbin/ use WARNS=6 by default.ed2010-01-021-0/+2
|
* (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.antoine2009-12-281-2/+2
| | | | | | | | | Fix some wrong usages. Note: this does not affect generated binaries as this argument is not used. PR: 137213 Submitted by: Eygene Ryabinkin (initial version) MFC after: 1 month
* To remove a server, one should use double backslash, and half of themmarck2009-12-271-1/+1
| | | | | | are eaten by shell. Fix this. MFC after: 2 weeks
* - Fix main() to use two separated sockets for the two transportshrs2009-12-132-116/+300
| | | | | | | | | | | | | | | | | | | | | when "-P port" is specified. It invoked svc{tcp,udp}_create() for only one of the two allocated sockets, and prevented the TCP socket from binding to as the result. - Use TI-RPC functions and handle sockets in a transport-independent way. At this moment only AF_INET ("udp" and "tcp") is supported because others need rewrites of ACL handling and yp clients. - Add '-h addr' to specify addresses to bind to. - Convert _msgout() to use variable argument lists and remove asprintf() for error strings. - Remove register storage class specifier. Discussed with: kuriyama MFC after: 1 week
* - In ypproc_all_2_svc(), yp_fork() is called only when !debug case.kuriyama2009-12-041-1/+4
| | | | | So _exit() in the bottom of this function should be called with the same case.
* - Replace magic number with YPOLDVERS macro (which may be missed inkuriyama2009-12-041-1/+1
| | | | r14262).
* Support shadow.byname and shadow.byuid maps, protecting them bybrian2009-06-253-27/+81
| | | | | | | | | | insisting on privileged port access. Include /var/yp/Makefile.local if it exists and suggest using it to override /var/yp/Makefile behaviour. Approved by: re (kib) MFC after: 3 weeks
* Add -P <port> option to allow binding to a specific port.matteo2008-02-032-3/+61
| | | | | | PR: bin/109494 Submitted by: mtm MFC after: 1 week
* o Re-arrange parentheses and fix a conition logic for !do_dns case.maxim2006-06-091-2/+2
| | | | | PR: bin/98625 MFC after: 1 month
* o Add /etc/shells to a source files list.maxim2006-06-081-0/+2
|
* o NIS clients ask for "shells" map not "shells.list".maxim2006-06-081-2/+1
| | | | | | PR: kern/86693 Submitted by: Victor Sudakov MFC after: 1 month
OpenPOWER on IntegriCloud