wiz
5250421372
de-__P(), ANSIfy.
2002-07-06 00:47:55 +00:00
wiz
8891dbdc2d
ANSIfy, de-__P(), and remove unused SIG_PF define.
2002-07-06 00:46:12 +00:00
wiz
15badb287b
ANSIfy (overlooked some...)
2002-07-06 00:42:27 +00:00
wiz
1de018550a
Actually, SIG_PF isn't needed in this file at all -- remove it.
2002-07-06 00:31:07 +00:00
wiz
af4c38b82e
Use .Aq instead of \*[Lt]...\*[Gt] in two places. End sentence with a dot.
2002-07-06 00:21:14 +00:00
wiz
ce6c985b9d
De-__P(), ANSIfy the one function that wasn't, and unifdef __STDC__.
2002-07-06 00:18:48 +00:00
thorpej
8d88f50760
Fix some printf formats in debug code.
2002-06-18 02:57:53 +00:00
wiz
59cf1ed286
Do not xref to ourselves, use Nm.
2002-06-12 21:48:09 +00:00
wiz
10d6eb080d
Drop duplicate .Pp.
2002-03-05 15:09:26 +00:00
wiz
66df0333a1
s/seperate/separate/
2002-02-11 10:44:38 +00:00
ross
2a76afae02
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
2002-02-08 01:36:18 +00:00
wiz
07acb1b340
Use standard headers, mark up AUTHORS section.
2002-02-02 02:31:02 +00:00
wiz
e36ba1263a
Use standard headers, mark up AUTHORS section, drop a .Pp.
2002-02-02 02:30:32 +00:00
wiz
c6e6ff1581
Use standard headers, sort SEE ALSO.
2002-02-02 02:29:43 +00:00
wiz
067d6673ab
Use standard headers, mark up AUTHORS section.
2002-02-02 02:29:15 +00:00
wiz
1514a31617
Sort SEE ALSO, use standard headers.
2002-02-02 02:28:17 +00:00
wiz
bded6a9382
Use standard headers, mark up AUTHORS section.
2002-02-02 02:27:14 +00:00
wiz
d8e5f0a4f7
Drop a .Pp, use standard headers, mark up AUTHORS sections.
2002-02-02 02:24:49 +00:00
wiz
8f4d0be9a7
Sort sections, use standard headers and markup in AUTHORS section.
2002-02-02 02:20:30 +00:00
wiz
0d02730858
Sort SEE ALSO, use standard headers and markup in AUTHORS section.
2002-02-02 02:19:13 +00:00
wiz
a2d753e3ef
Whitespace nits.
2002-01-19 11:44:57 +00:00
tv
8e6f7afb5b
MKfoo=no -> NOfoo
2001-12-12 01:48:43 +00:00
itojun
c878544aa7
s/IPV6_BINDV6ONLY/IPV6_V6ONLY/ to follow changes made yesterday.
2001-10-16 01:51:26 +00:00
ad
e3af9d1d6b
getopt() returns -1 on error, not EOF.
2001-08-18 17:10:04 +00:00
christos
4e7d8e10f6
- Filter out the YP_ keys from mail.aliases. How did this ever work?
...
- Don't be verbose when creating the amd maps.
2001-08-06 18:28:19 +00:00
hubertf
86a406c1ce
* Allow generating more than one amd map, by storing the maps to create
...
in a variable that can be added other maps than amd.home. Patch submitted
in PR 11826 by Anthony Mallet <anthony.mallet@ficus.yi.org>
* Slightly optimize calculation of DOMAIN
2001-08-05 12:40:15 +00:00
garbled
3815ce799a
Add a -l argument to ypinit that allows adding servers in the format
...
server1,server2,server3 on the command line. This allows the user to
optionally avoid the interactive mode of ypinit. If the -l flag is not
supplied, the old behavior is retained.
This allows users to do things like rsh out creation of YP clients, and
sushi to generate yp clients/servers/slaves.
2001-08-01 07:01:03 +00:00
hubertf
b352d63150
Document -f option in synopsis
2001-07-27 22:35:51 +00:00
christos
26dfd4a9a0
Fix bogus awk + sed combination to handle continuations and empty lines.
...
It broke a sequence of:
key1 \
value1 \
value2 \
value3 \
key2 \
value4 \
etc.
Handle both the netgroup rule and the amd.home rule using a .USEBEFORE
macro rule, since they contain the same code.
XXX: Needs new make(1)
2001-07-03 18:15:06 +00:00
wiz
3f9984fc90
existent', not
existant'
2001-06-19 13:42:07 +00:00
wiz
f3f6c5b675
accessible' only has one
a'.
2001-06-19 12:52:20 +00:00
lukem
6a56b422c8
use mktemp(1) as appropriate
2001-06-18 11:21:54 +00:00
tron
ba90c54610
Don't force numeirc IP address for "-h" argument when invoking "ypxfr"
...
because neither "ypxfr" nor the YP bits of "libc" can handle IPv6. If the
hostname is used there will be an automatic fallback to IPv4 which makes
server pushed work again in mixed IPv4 and IPv6 environments. This fixes
bin/11755 by myself.
2001-03-16 22:14:45 +00:00
cgd
25bdbb661e
convert to use getprogname()
2001-02-19 23:22:40 +00:00
scottr
acef071496
Fix the sorting introduced in rev 1.9 for the netgroup map:
...
handle entries that span multiple lines correctly.
2001-01-16 07:15:18 +00:00
cgd
e3e65b0f8d
When building gethnamaddr.o and getnetnamadr.o from libc sources,
...
define _LIBC so that the weak aliases those files normally define if
built in libc get set properly. Otherwise, this doesn't link statically.
Static linking tested on NetBSD/i386 by sommerfeld, correct runtime
operation not verified (but should be no different than before).
2001-01-12 01:43:48 +00:00
lukem
631bc8fbd3
oops, forgot syslog.h
2001-01-11 01:54:08 +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
48565a8e05
use "ypserv" instead of __progname as ident arg to openlog
2001-01-11 00:34:51 +00:00
lukem
74590d002a
add openlog(...,pid, daemon)
2001-01-11 00:16:11 +00:00
lukem
443a19e035
convert to using .WAIT
2001-01-09 03:13:39 +00:00
enami
270db080e9
Use PRINTOBJDIR.
2001-01-07 08:00:54 +00:00
thorpej
1c3d23d12c
More IPv6-friendliness.
2000-12-09 22:39:12 +00:00
thorpej
c7b5409a74
Rewrite this to use getaddrinfo(), and to use the canonical name of the
...
host rather than the hostname as returned by gethostname() if the hostname
does not appear to be fully qualified.
2000-12-09 00:47:57 +00:00
thorpej
e0d4418a25
Convert to TI-RPC, modeled after mountd(8) since we do host-based
...
access checking (via libwrap) like mountd(8) does.
Also, garbage-collect a bunch of stuff that is normally created by
rpcgen(1) that we'll never use in this program.
2000-12-08 20:08:43 +00:00
itojun
0eafc475c2
/etc/mail/aliases, not /etc/aliases. PR 10167.
2000-10-11 16:51:55 +00:00
christos
2565bd1854
oops, use MAKEDBM_S
2000-09-19 18:24:54 +00:00
christos
06e8cfa1f8
add a non-enabled rule to build solaris and linux shadow files.
2000-09-19 18:23:43 +00:00
thorpej
a12b66cf79
Don't abort if pushing to one server in the ypservers map fails.
...
There might be serveral more waiting to be pushed to.
This is only 1/2 of the fix. ypxfer(8) also needs a change to
avoid a false error, but this allows pushes to continue to work,
at least.
Problem noted by aflury@zembu.com and agordon@zembu.com .
2000-09-13 21:40:15 +00:00
itojun
f96e3b36f6
generate ipnodes.{byname,byaddr} for IPv4/v6 lookups.
...
hosts.{byname,byaddr} is still an IPv4 only mapping.
obeys solaris8 practice. see comments in ypinit/Makefile.yp for details.
TODO: interop test with solaris8 (any takers?)
2000-07-30 02:33:13 +00:00
itojun
863848734f
with -n, permit non-IPv4 address in the output.
...
option name synchronized with solaris 8.
2000-07-30 02:25:08 +00:00
itojun
bbef2fbaac
errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd
2000-07-07 15:10:32 +00:00
itojun
7ebfc079d9
syslog() audit - do not use it with a variable alone. from openbsd
2000-07-07 11:39:41 +00:00
msaitoh
f6f00e2615
remove extra period in SEE ALL section
2000-07-05 15:45:28 +00:00
matt
3ab02a8704
More #include <stdlib.h> string, etc. cleanup
2000-07-04 20:27:35 +00:00
fvdl
07af740946
The interal SVCXPRT field xp_sock was used, but this is now xp_fd.
2000-06-03 14:33:18 +00:00
abs
3214d69367
Our db btree(3) implementation is tuned for ordered insertion, so pipe
...
through sort before makedbm.
This drops Erik Rungi's <rungus@openface.ca> passwd.byname generation for
3000 entries from 25-30 seconds down to 0.75 seconds.
1999-11-19 16:55:25 +00:00
msaitoh
e73ef7c8bf
s/ a a / a /
1999-10-08 19:55:43 +00:00
lukem
81a3e76281
remove superfluous casts
1999-07-26 03:01:09 +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
lukem
275da9fc4d
because the ypserv struct datum and the db(3) struct DBT are not exactly
...
the same (datum is { char *, int }, DBT is { void *, size_t /* u_int */ }),
copy info to appropriate temporary variables before calling underlying
db(3) operations.
1999-07-25 09:33:37 +00:00
lukem
811d7dca54
fix up lossage WRT free()ing invalid pointers.
...
noted in [bin/8064]
1999-07-25 09:01:04 +00:00
lukem
96c7d69308
fix up lossage WRT free()ing invalid pointers.
...
noted in [bin/8064]
1999-07-25 07:59:48 +00:00
agc
42de521154
Correct typo in synopsis.
1999-07-05 10:59:08 +00:00
mrg
b734ec4664
note that the calls to mktemp() are OK.
1999-06-07 03:06:08 +00:00
thorpej
653c3855f5
Use pidfile(3).
1999-06-06 02:38:00 +00:00
lukem
04833e78b6
split line
1999-04-25 06:28:10 +00:00
lukem
a3b1d07c9b
set MKLINT=no. noted by NAKAJIMA Yoshihiro <nakayosh@kcn.ne.jp>
1999-03-13 23:16:55 +00:00
mycroft
d77575d3c8
Clean up SYNOPSIS formatting.
1999-03-07 11:58:22 +00:00
abs
e88f10c5f0
Replace compile time RPC_SVC_FG with -f option to run in the foreground.
1999-02-18 06:03:47 +00:00
lukem
dcab0210a0
convert from NOxxx= to MKxxx=no.
...
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
mrg
69dfc0e846
KNF nit.
1999-01-31 10:14:02 +00:00
thorpej
56a0200695
Fix some debugging printf formats.
1999-01-23 01:08:55 +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
thorpej
002a1e7cb7
Remove old access control list definitions, and remove the home-grown
...
logging code.
1999-01-22 02:37:00 +00:00
thorpej
c87c1f135c
Throw out the old ypserv access control list code. Instead, use libwrap
...
for access control. Add a -l option, to enable logging of all requests.
Also, just use syslog(3) for all logging, not home-grown logging code.
1999-01-22 02:36:12 +00:00
lukem
c6e56aa78a
don't bother with nsdispatch(); just link in the relevant bits of
...
libc's gethostby*() and getnetby*() directly (with -UYP).
1999-01-19 03:53:27 +00:00
lukem
67ae78f9e1
fix error message
1999-01-18 23:42:38 +00:00
lukem
ab8486e250
* don't print out entries that couldn't be parsed
...
* don't look for comments; fparseln strips them
1999-01-17 07:01:26 +00:00
lukem
bb490684f2
don't bother looking for comments; fparseln() removes them
1999-01-17 06:56:51 +00:00
lukem
5921d0348f
convert from tweaking _res.lookups[] to calling nsdispatch(3) directly
...
for gethostby{name,addr}() (without methods for the yp lookups).
ypserv will now match names for the `hosts:' entry (ignoring `nis' if
specified).
1999-01-17 06:54:14 +00:00
kleink
3ed4fcf61e
In userland, pull in <errno.h> instead of <sys/errno.h> for the declaration
...
of errno.
1999-01-11 22:39:59 +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
tv
767b9acc8e
"featch" -> "fetched"
1998-08-19 12:29:00 +00:00
mrg
32f519716b
- use an array MAXHOSTNAMELEN+1 size to hold hostnames
...
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:56:06 +00:00
kleink
1f491461e0
Need <time.h> for time().
1998-06-24 10:26:08 +00:00
kleink
41dc2c91bd
Fix LP64 botches introduced in last commit.
1998-06-11 14:50:46 +00:00
kleink
8bced1141c
Fix an LP64 botch introduced in last commit; reported by Tim Rightnour.
1998-06-10 21:15:41 +00:00
lukem
211a72a8dc
convert from in-house read_line to fparseln()
1998-06-08 06:53:47 +00:00
lukem
d595bfe79d
add ypinit -c (setup yp client)
1998-06-08 06:29:25 +00:00
lukem
3ed28f5cc1
disable INSECURE=yes now that libc support master.passwd YP maps
1998-06-08 03:44:34 +00:00
kleink
e6be56ae0b
Need <stdlib.h> for mktemp() prototype.
1998-06-01 14:05:35 +00:00
fair
1628920950
Fix man to mdoc conversion mistakes, mostly of the form ^\.[A-Z][A-Z]
1998-04-28 07:19:28 +00:00
kleink
70ae83a7e1
Use <sys/param.h> instead of <sys/types.h>: <netdb.h> and MAXHOSTNAMELEN are
...
not related to each other, and it should not be assumed that inclusion of the
former makes visible the latter.
1998-04-23 19:32:40 +00:00
tv
482063559a
.y.c <sys.mk> rule fixes. Don't create a y.tab.h file unless asked for,
...
and use smarter creation of the header file.
1998-04-09 00:32:31 +00:00
perry
75a6e03535
change includes to fix compiler warning
1998-02-03 04:55:59 +00:00
thorpej
1679a04502
Change a couple of exit()s to _exit(), to make it safe for vfork().
1997-12-31 06:59:54 +00:00
thorpej
e07f4ba47c
Need <string.h> for prototypes.
1997-11-18 22:58:00 +00:00
lukem
8e4ac5fee0
use warn("%s", func()) instead of warn(func())
1997-11-18 07:01:50 +00:00
lukem
e91c20c007
overhaul code, provide saner error messages, etc
1997-11-18 00:44:19 +00:00