summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Enable inadvertantly disabled "securenet" access controls in ypserv. [1]cperciva2006-05-311-15/+22
| | | | | | | | Correct a bug in the handling of backslash characters in smbfs which can allow an attacker to escape from a chroot(2). [2] Security: FreeBSD-SA-06:15.ypserv [1] Security: FreeBSD-SA-06:16.smbfs [2]
* - Let make(1) track dependencies and regen netid map when needed.ru2006-04-131-8/+1
| | | | - Add missing dependency for netid.byname.
* Remove unused variables. int -> size_t for lenghts.charnier2005-05-202-3/+2
|
* add targets for ipnodes.byname and ipnodes.byaddr which carriesume2005-05-021-0/+38
| | | | | IPv6 addresses. these targets are off by default, and these are built when there is /var/yp/ipnodes.
* fix typo in previos commit.ume2005-05-021-2/+2
|
* teach IPv6 to async DNS resolver in ypserv:ume2005-05-023-27/+61
| | | | | - query AAAA RR on ipnodes.byname query. - query .ip6.arpa. on ipnodes.byaddr query.
* Use socklen_t where appropriate.stefanf2005-03-112-6/+10
|
OpenPOWER on IntegriCloud