hrs
d1ed694608
Simply ignore unsupported protocols listed in /etc/netconfig and
...
abort only if no transport is available. This fixes
(INET && !INET6) and (!INET && INET6) case, for example.
2010-01-20 16:50:13 +00:00
hrs
479b4bd55d
Try a privileged port for binding whenever possible because the
...
ypbind daemon requires the ypserv daemon is running on a
privileged port.
Reported by: Andrzej Tobola
2010-01-20 09:29:07 +00:00
ed
073cafdd42
The last big commit: let usr.sbin/ use WARNS=6 by default.
2010-01-02 11:07:44 +00:00
antoine
bfd388c026
(S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.
...
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
2009-12-28 22:56:30 +00:00
marck
bb1ee4e3ed
To remove a server, one should use double backslash, and half of them
...
are eaten by shell. Fix this.
MFC after: 2 weeks
2009-12-27 16:00:17 +00:00
hrs
f1fc4c2cca
- Fix main() to use two separated sockets for the two transports
...
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
2009-12-13 15:19:01 +00:00
kuriyama
e3200f9d91
- In ypproc_all_2_svc(), yp_fork() is called only when !debug case.
...
So _exit() in the bottom of this function should be called with the
same case.
2009-12-04 14:12:37 +00:00
kuriyama
05883b79c2
- Replace magic number with YPOLDVERS macro (which may be missed in
...
r14262).
2009-12-04 14:08:57 +00:00
brian
804f2f79ee
Support shadow.byname and shadow.byuid maps, protecting them by
...
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
2009-06-25 16:15:39 +00:00
matteo
a53bf17cee
Add -P <port> option to allow binding to a specific port.
...
PR: bin/109494
Submitted by: mtm
MFC after: 1 week
2008-02-03 17:39:37 +00:00
maxim
f39caee822
o Re-arrange parentheses and fix a conition logic for !do_dns case.
...
PR: bin/98625
MFC after: 1 month
2006-06-09 14:01:07 +00:00
maxim
e0f73680ab
o Add /etc/shells to a source files list.
2006-06-08 14:49:38 +00:00
maxim
fd2485a7f0
o NIS clients ask for "shells" map not "shells.list".
...
PR: kern/86693
Submitted by: Victor Sudakov
MFC after: 1 month
2006-06-08 09:12:07 +00:00
cperciva
4e501fd8a3
Enable inadvertantly disabled "securenet" access controls in ypserv. [1]
...
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]
2006-05-31 22:32:22 +00:00
ru
f3ca421d95
- Let make(1) track dependencies and regen netid map when needed.
...
- Add missing dependency for netid.byname.
2006-04-13 13:03:35 +00:00
charnier
5dd180da44
Remove unused variables. int -> size_t for lenghts.
2005-05-20 13:04:10 +00:00
ume
effe5f40cc
add targets for ipnodes.byname and ipnodes.byaddr which carries
...
IPv6 addresses. these targets are off by default, and these
are built when there is /var/yp/ipnodes.
2005-05-02 11:19:52 +00:00
ume
a77586e165
fix typo in previos commit.
2005-05-02 09:42:59 +00:00
ume
359f287f51
teach IPv6 to async DNS resolver in ypserv:
...
- query AAAA RR on ipnodes.byname query.
- query .ip6.arpa. on ipnodes.byaddr query.
2005-05-02 09:34:07 +00:00
stefanf
8655a91f58
Use socklen_t where appropriate.
2005-03-11 14:17:12 +00:00
ru
6b6b8c04f6
Expand contractions.
2005-02-13 23:45:54 +00:00
ru
1541af42f1
Expand *n't contractions.
2005-02-13 22:25:33 +00:00
ru
c05985f13f
Sort sections.
2005-01-18 20:02:45 +00:00
ru
c5d8886d04
Utilize FILES, SCRIPTS, and SYMLINKS. While here, fixed a bug in
...
the implementation of the following feature in revision 1.4:
- Install Makefile.yp as /var/yp/Makefile.dist and link it to
/var/yp/Makefile only if /var/yp/Makefile doesn't already exist.
Suggested by Peter Wemm.
The actual code was only symlinking when no /var/yp/Makefile.dist
existed, i.e., never.
2004-10-18 21:42:15 +00:00
ru
6651f20e0d
Sort SEE ALSO references (in dictionary order, ignoring case).
2004-07-04 20:55:50 +00:00
ru
6294018a20
Mechanically kill hard sentence breaks.
2004-07-02 23:13:00 +00:00
ru
bb7ece5c43
Eliminated two dozens of superfluous cats and two r-cats (sorry, Jordan).
...
Suggested by: Dan Nelson
2003-06-13 16:13:28 +00:00
obrien
7293a24a2b
Use __FBSDID over rcsid[]. Protect copyright[] where needed.
2003-05-03 21:06:42 +00:00
obrien
a920d12f89
style.Makefile(5)
2003-04-04 17:49:21 +00:00
robert
8e2e191c15
Add a target for the creation of a /etc/shells map and add it to
...
the maps which are built by default.
2003-03-21 11:44:03 +00:00
mtm
1a8e59f0ba
ypserv(8) is now started from rc.d
...
Approved by: markm (mentor)(implicit)
2003-01-23 06:03:30 +00:00
schweikh
86f7487fb6
Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/
...
Add FreeBSD Id tag where missing.
2002-12-30 21:18:15 +00:00
schweikh
fec6546e12
english(4) police.
2002-12-27 12:15:40 +00:00
ru
041d1287e8
Uniformly refer to a file system as "file system".
...
Approved by: re
2002-12-12 17:26:04 +00:00
markm
f49cc792fa
The resolver library does a pretty acceptable set of domain
...
suffix attempts before failing. No need to try again by hand,
particularly when it fills your log with failures because
localhost.example.com..example.com fails to resolve. Also improve the
log message that helped find this error.
There is still (maybe) an uninitialised pointer problem here, but in a
month of testing I haven't triggered it.
2002-09-20 20:09:27 +00:00
ru
ce971426f4
mdoc(7) police: Removed redundant .Ns calls.
2002-08-13 16:07:28 +00:00
ru
a8adf98c82
Drop support for COPY, -c has been the default mode of install(1)
...
for a long time now.
Approved by: bde
2002-07-29 09:40:17 +00:00
ru
cd7c90d38f
s/${INSTALL} -c/${INSTALL} ${COPY}/
2002-07-18 12:07:49 +00:00
charnier
d2168fe021
The .Nm utility
2002-07-14 14:47:15 +00:00
des
b1c4fde84a
Fix a boatload of format errors and constness violations.
...
Sponsored by: DARPA, NAI Labs
2002-05-08 15:41:15 +00:00
des
e48f76df85
Spell void * as void * rather than caddr_t. This is complicated by the
...
fact that caddr_t is often misspelled as char *.
Sponsored by: DARPA, NAI Labs
2002-04-28 15:18:50 +00:00
markm
bc43ca23fc
Sort out the documentation WRT TCP_WRAPPERs, which is now enabled.
2002-02-06 20:48:03 +00:00
markm
5396b38d3d
Fix an inconsistency between what FreeBSD NIS and AMD think the
...
AMD map name should be.
2002-02-06 20:42:36 +00:00
markm
5351d0d669
Enable TCP_WRAPPERs for the NIS server. The protection afforded is
...
not massive, but usable.
2002-02-06 20:39:36 +00:00
des
d7b064e238
ANSIfy and remove some dead code.
...
Sponsored by: DARPA, NAI Labs
2002-02-06 15:26:07 +00:00
des
0f2cb9b020
Apply the following mechanical transformations in preparation for
...
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
2002-02-06 13:30:31 +00:00
ru
7aa3bf6364
yp(4) -> yp(8).
...
PR: docs/30797
2002-01-14 16:59:03 +00:00
ru
f858dca3dc
mdoc(7) police: join split punctuation to macro calls.
2001-08-10 17:35:21 +00:00
sheldonh
7950d85ec2
can not -> cannot
2001-08-08 18:32:06 +00:00
kris
e737b9651c
sprintf -> snprintf
2001-07-23 09:22:21 +00:00