Commit Graph

2312 Commits

Author SHA1 Message Date
perry a12002f43a change includes to fix compiler warning 1998-02-03 04:39:14 +00:00
frueauf fbebae54cf check_error uses type "const char *" instead of "char *" as argument.
reflects recent change to cron.h.
1998-02-01 14:36:36 +00:00
christos cced5db98f Determine endian-ness and define WORDS_BIGENDIAN if appropriate. 1998-02-01 13:48:08 +00:00
christos 1773ee5638 Add -DLBL_ALIGN to handle architectures that need memory alignment. 1998-02-01 13:46:53 +00:00
christos 12a6e4b92e Add missing ARGS_MAX 1998-01-31 15:07:14 +00:00
christos 0335fca704 Remove crappy globbing stubs. If the feature needs to be added it should
be using glob(3).
1998-01-31 14:44:47 +00:00
christos 9ac7be0692 Warnsify:
- add __RCSID
	- remove nested comments
	- remove register and auto keywords
	- change into posix signals
	- fix prototypes
1998-01-31 14:40:13 +00:00
veego 48b59e11c5 Back out the ipnat static change. 1998-01-24 19:15:04 +00:00
veego ccd79b8dca Update for the static ipnat programm. 1998-01-23 22:34:12 +00:00
veego a0f14625a7 Build ipnat statically and install it into /sbin. Fix pr4879. 1998-01-23 22:32:08 +00:00
lukem 93480d2ed5 use .Tn YP instead of YP 1998-01-23 13:38:24 +00:00
lukem a985fee84c * -insecure is for binding to insecure *servers*, not insecure *clients*.
noted by Bill Studenmund <skippy@macro.stanford.edu>.
* use .Tn YP instead of YP
1998-01-23 13:36:57 +00:00
mikel 332409ce59 update to match new reality (/usr/lib/supfiles -> /etc/supfiles) 1998-01-21 09:10:40 +00:00
mikel ef33c3eddc Add -DEE_XXX to CPPFLAGS so that system supfiles are obtained from
/etc/supfiles instead of /usr/lib/supfiles.
1998-01-21 09:07:04 +00:00
christos 9fab7a4ffa PR/4837: Jeff Thieleke: inetd does not compile without libwrap. 1998-01-20 16:44:22 +00:00
hubertf fdbf4d9eec Quote filenames handed off to tar, chmod, chown. (Fixes possible security
problem discovered while looking at pkgsrc/audio/tracker).
1998-01-19 00:24:03 +00:00
christos 02f88f3555 PR/4835: Izumi Tsutsui: rarpd does not set the link level address length.
While there change "6" to "ETHER_ADDR_LEN"
1998-01-17 11:38:36 +00:00
cgd 27ef674380 (char)-1 != (int)-1 on unsigned-char machines. 1998-01-15 22:58:28 +00:00
enami 491b9bd801 Remove redundant assignment. 1998-01-14 01:15:24 +00:00
hubertf 9bc65afc99 Check length of given user name to (slip)login. Fixed the exploit in
http://www.rootshell.com/archive-Rbf4ahcmxzw5qn2S/199801/sliplogin.c.
1998-01-12 08:59:56 +00:00
thorpej bc1733bc88 Add code to emit the cfdriver structures into ioconf.c. This requires
a change to the config grammar, to specify a device's class (i.e. DV_xxx)
like:

device	sd class disk: ...

Also emit an ioconf.h, which contains extern declarations of the
cfdriver structures.

While I'm here, add support for specifying multiple options per defopt
line, as well as specifying the file name in which the options will
appear.

defopt	foo bar baz

generates "opt_foo.h", "opt_bar.h", and "opt_baz.h"

defopt	opt_mumble.h foo bar baz

generates "opt_mumble.h" which contains all three options.

Also, clean up and fix some bugs in the code that generates header files.
1998-01-12 07:37:40 +00:00
perry 3fe138c146 RCS Id Police. 1998-01-09 08:03:16 +00:00
perry 4db5a54188 RCS Id Police. 1998-01-09 06:06:02 +00:00
lukem 028802f851 document net.inet.ip.anonport{min,max} 1998-01-05 09:59:03 +00:00
lukem 0acc42ca87 fix rcsid 1998-01-05 05:59:45 +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
mikel 1f38aba134 auto-rebuild /etc/aliases.db to match 'traditional' behavior,
suggested by perry
1997-12-22 05:53:06 +00:00
kleink b90b902782 Update a comment: neither does POSIX define the `-h' option, nor does it
define symbolic links.
1997-12-21 18:34:30 +00:00
kleink 65d1679f46 Add a paragraph to document the clearing of the setuid and setgid bits unless
invoked by the super-user.
1997-12-21 18:11:19 +00:00
christos 0c52e80b3e Install the docs. 1997-12-21 16:14:41 +00:00
christos 24209f3874 Obj dir and groff fixes. 1997-12-21 16:00:49 +00:00
christos 8f09e5bcdb Use obj dirs 1997-12-21 15:53:38 +00:00
veego 65e263edc6 You can't use %\ns in a fprintf. 1997-12-21 13:35:34 +00:00
darrenr 19ab75620c add missing \n's for fprintf 1997-12-21 12:53:01 +00:00
christos 16c7b8eb7e PR/4569: Phil Nelson: inconsistent documentation / examples. 1997-12-20 20:36:04 +00:00
christos 24ef784453 PR/4383: Martin Husemann: ipnat fails to mention file name on open errors 1997-12-20 20:29:12 +00:00
christos 5e54e11fbe PR/3830: Enami Tsugutomo: ipnat -l prints netmask in dot-notation even if
contiguous.
1997-12-20 20:18:47 +00:00
christos 96b7728cb2 PR/3576: Enami Tsugutomo: getline overruns and bugs 1997-12-20 20:07:47 +00:00
bad 0a833b6587 Remove leftovers from last rcsmerge. 1997-12-15 16:23:46 +00:00
mrg 1d8157e01a use MAP_PRIVATE|MAP_FILE 1997-12-15 04:21:33 +00:00
thorpej c3b579a571 Mention net.inet.tcp.init_win. 1997-12-11 23:38:01 +00:00
thorpej 406a5ad503 Fix a paste-o. 1997-12-11 18:50:58 +00:00
mycroft a88cef6970 Ignore SIGPIPE, which may be caused by non-forking internal TCP services if
the remote side closes the connection before we answer.
1997-12-04 06:39:02 +00:00
mikel 57c740296d eliminate invalid options from SYNOPSIS; from Johan Danielsson in PR 4570 1997-12-02 08:21:45 +00:00
kleink 96720d8f9c Remove a paragraph obsoleted by the recently implemented `-h' option; add
Xref to lchown(2).
1997-11-26 17:37:53 +00:00
is d4fc5fab1b If we answer a RARP request, also add the mapping to the local arp cache.
[This was broken when the 4.4BSD ARP table changes were done, and never
repaired.]
Inspired by Jarle Greipsland, PR 4531; code stolen from arp.a and cleaned
up (mostly removing global variables).
XXX As pointed out in the PR, this should be in some library (libutil?),
to be usable by other servers like bootpd and dhcpd.
1997-11-24 18:43:12 +00:00
veego e7c9edc89c - New FILES section for /dev/ipauth, /dev/ipl and /dev/ipstate
- Add ipl(4), ipmon(8) and ipnat(8) to the SEE ALSO section
1997-11-24 14:39:27 +00:00
veego c72cabd3ae - Add /dev/ipauth, /dev/ipl, /dev/ipstate and /usr/share/examples/ipf
to the FILES section
- Add iptest(1), ipf(4), ipnat(5) and ipfstat(8) to the SEE ALSO section
- s/ipftest(8)/ipftest(1)/
1997-11-24 14:38:34 +00:00
veego cb4b3eba6c - New FILES section for /dev/ipauth, /dev/ipl, /dev/ipnat and /dev/ipstate
- Add ipl(4) and ipnat(4) to the SEE ALSO section
1997-11-24 14:36:27 +00:00
veego 0845d43628 Add ipsend(5) and resort the SEE ALSO section. 1997-11-24 14:35:52 +00:00
veego 398c9613b6 Add ipsend(1), iptest(1), hosts(5), protocols(5), and services(5) to the
SEE ALSO section.
1997-11-24 14:34:40 +00:00
veego 72c99f0790 s/ipsend(1)/ipsend(5)/ 1997-11-24 14:33:14 +00:00
veego ec33220e8b - remove the the empty FILES section
- s/ipresend(1)/ipsend(1)/ and add ipsend(5)
1997-11-24 14:31:30 +00:00
veego 111d2c1172 - New FILES section for /dev/ipnat and /usr/share/examples/ipf
- Remove ipftest(1) from the SEE ALSO section
1997-11-24 14:30:02 +00:00
veego d58e05351c - Add /dev/ipnat and /usr/share/examples/ipf to the FILES section
- Add hosts(5), services(5) and ipf(8) to the SEE ALSO section
1997-11-24 14:28:33 +00:00
veego e8363d9e81 New FILES section for /dev/ipnat and move the BUGS section at the end. 1997-11-24 14:27:45 +00:00
veego da4678c8db - Add /dev/ipnat and /dev/ipstate to the FILES section
- Add ipl(4) and ipnat(8) to the SEE ALSO section
1997-11-24 14:27:14 +00:00
veego a8799fada7 remove the empty FILES section and resort the SEE ALSO section 1997-11-24 14:26:17 +00:00
veego 04c6eee3a5 - s/vmunix/netbsd/
- s/ipl/ipstate/
- Add /dev/ipstate to the FILES section
1997-11-24 14:25:28 +00:00
veego be87239f57 Remove the reference to snoop(1m), etherfind(8c) and dlpi(7p). 1997-11-24 08:35:44 +00:00
veego 89b8e7ca72 Remove the refernce to etherfind(8c). 1997-11-24 08:34:35 +00:00
lukem 0e3b290810 fix .Nx usage (use 1.0 instead of 0.9a, etc), and other minor cleanups 1997-11-24 06:28:50 +00:00
veego 754a245e76 Sync with the ipresend changes. 1997-11-23 23:20:08 +00:00
veego 6e1753fbee Add the ipresend directory and sort the SUBDIR entries. 1997-11-23 23:14:34 +00:00
veego 8e1315283a Add ipft_pc.c to the SRCS line to fix a build error. 1997-11-23 23:06:32 +00:00
veego 68c9310ae3 s/IPF/MKFILTERS/ and add a FILES section. 1997-11-23 22:12:03 +00:00
veego 95fbaa5446 Fix the SEE ALSO section:
old: ipfstat(1), ipftest(1), ipf(5), mkfilters(1)
new: ipf(4), ipf(5), ipfstat(8), ipftest(1), mkfilters(1)
1997-11-23 21:58:51 +00:00
veego 77f0313d88 Fix the SEE ALSO section:
old: ipf(1), ipftest(1), mkfilters(1)
new: ipf(8), ipftest(8), mkfilters(1)
1997-11-23 21:58:28 +00:00
veego 47f9129923 Fix the formated SYNOPSIS section and fix the SEE ALSO section:
old: ipfstat(1), ipf(1), ipf(5)
new: ipf(5), ipf(8), ipfstat(8)
1997-11-23 21:57:55 +00:00
veego 95eb61a865 Remove the reference to dlpi(7p). 1997-11-23 21:57:02 +00:00
veego e805977ac0 This is section 8 and not 1.
Fix the SEE ALSO section:
old: ipfstat(1), ipftest(1), ipf(1), ipnat(5)
new: ipnat(5), ipf(8), ipfstat(8), ipftest(1)
1997-11-23 21:56:00 +00:00
veego 24ef9d9374 Fix the SEE ALSO section:
old: ipnat(1), ipf(5), ipnat(4)
new: ipf(5), ipnat(4), ipnat(8)
1997-11-23 21:55:30 +00:00
veego f70c10d1d4 Fix the formated SYNOPSIS section and fix the SEE ALSO section:
old: ipfstat(1), ipf(1), ipf(4), ipnat(5)
new: ipf(4), ipf(8) ipnat(5), ipnat(8), ipfstat(8)
1997-11-23 21:55:00 +00:00
veego 78cd44279b Fix the SEE ALSO section: ipf and ipfstat are in section 8 and not in
section 1.
1997-11-23 21:05:38 +00:00
veego 91cc2be060 Fix the SEE ALSO section: ipf(8) and not ipf (1) 1997-11-23 21:01:58 +00:00
veego ca3ac8917a update for mkfilters(1). 1997-11-23 20:59:42 +00:00
veego 423fabec06 Remove the '.if make(install)' for the rules subdirectory to build the
manpage for mkfilters.
1997-11-23 20:56:35 +00:00
veego 02effaf52c Add the mkfilters perl script and the manpage for it. 1997-11-23 20:54:14 +00:00
veego 69b4e69ea3 import missing files from ip-filter 3.2.1 1997-11-23 20:46:46 +00:00
mellon 0c2e0b74fe Build the dhclient.leases and dhclient-script man pages 1997-11-22 09:37:25 +00:00
mellon 911d9b399b Build the dhcpd.leases man page 1997-11-22 09:32:12 +00:00
mellon 5c92c77573 Build the dhcp-options man page 1997-11-22 09:31:00 +00:00
mellon eab517a1d1 ISC DHCP Snapshot on November 22, 1997 1997-11-22 09:13:21 +00:00
veego a77f2190fd Fix the case problem of the flags field and a problem with a # in the
middle of a line (pr#4545). Thx Ted.
1997-11-20 10:35:15 +00:00
christos ffb419d374 Enable CHAPMS and MSLANMAN. Make them compile. I don't have access to a test
setup to verify that it works.
1997-11-19 11:59:58 +00:00
fvdl 9bef2d1d82 If the arp cache is empty, don't even attempt to retrieve it. Fixes
'bad address' message when the cache is empty.
1997-11-18 23:14:38 +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 6236ac0333 use .Tn YP 1997-11-18 06:52:15 +00:00
mrg 732e64a580 fix PR#4412 (from darren reed). 1997-11-18 06:09:25 +00:00
lukem e91c20c007 overhaul code, provide saner error messages, etc 1997-11-18 00:44:19 +00:00
lukem a2a60bf6a6 note that INSECURE=no isn't yet supported for netbsd clients 1997-11-18 00:37:23 +00:00
lukem 48b4356758 rewritten yppush from Chuck Cranor. 1997-11-18 00:32:57 +00:00
mrg 8ad67291ce document -F s (from darren reed). 1997-11-17 14:57:47 +00:00
agc 5c0d2a645d Implement default -Ia arg to pkg_info a bit differently. 1997-11-17 12:08:59 +00:00
christos f5024bbed0 PR/4509: Jarle F. Greipsland: avoid redefinition of rfc931_timeout. 1997-11-16 21:30:25 +00:00
is c4aac00e95 Make deleting proxy arp entries on ARCnet interfaces work again.
Fixes my own last PR, whose number I don't know yet.
1997-11-16 11:25:08 +00:00
msaitoh 39c2acb633 fix typo 1997-11-15 21:01:36 +00:00
msaitoh 6bbe51cef1 fix typo 1997-11-15 17:42:07 +00:00
mrg d2143111bd merge ip-filter 3.2.1 1997-11-14 12:57:55 +00:00
mrg 61cbfaca09 import ip-filter 3.2.1 1997-11-14 08:03:01 +00:00
thorpej ade3ce9789 Fix int vs. size_t lossage. 1997-11-13 18:35:57 +00:00
thorpej 0e42d89fac Oops! Forgot this yesterday: Add read_line.o goo. 1997-11-13 17:09:04 +00:00
thorpej 481e558f6c Oops! Forgot to commit this: build read_line.o 1997-11-13 17:05:20 +00:00
hubertf 793d82f785 Alter the default behaviour of pkg_info. With no options given, behave as
if -Ia was given, instead of showing usage.
1997-11-13 15:15:48 +00:00
veego 84123ddbb6 - s/samples\/ipf/examples\/ipf/
- Added missing ipf examples from the import of 3.2
1997-11-13 09:46:41 +00:00
thorpej e6889efbce Make sup(1) handle lines continued with '\'. Fixes PR #4430, from
Ty Sarna <tsarna@endicor.com>.
1997-11-13 01:05:28 +00:00
veego 67ed3b4d0c Add the ipftest.1 manpage. 1997-11-11 10:14:42 +00:00
veego 5048b71642 Fix some manpage section numbers and remove the SEE ALSO entry for
snoop(1m).
1997-11-11 10:11:19 +00:00
mrg dc05f41d80 add missing .Nm sections 1997-11-11 10:07:34 +00:00
veego 13cfd2b17f Updated for the missing ipftest.1 manpage. 1997-11-11 10:07:31 +00:00
veego 525c710d19 import a missing manpage from ip-filter 3.2 1997-11-11 10:02:25 +00:00
hubertf fa829ce599 Document $PKG_PATH and $PKG_DBDIR 1997-11-10 00:29:21 +00:00
cjs 60c8449a61 sendmail 8.8.8 merge 1997-11-09 22:25:58 +00:00
cjs 3016f7f3b8 sendmail 8.8.8 import 1997-11-09 22:15:17 +00:00
cjs 3acc53a34a sendmail 8.8.8 import 1997-11-09 22:14:04 +00:00
lukem 4cda73731b more fixes for OPTIMIZE_DB (seems like this code was an unfinished idea;
i've fixed a lot of bugs in it):
* implement yp_close_map(struct opt_map *), to close a specific map,
  using the guts of yp_close_last()
* simplify yp_close_last() to use yp_close_map()
* ypdb_open_db(): add the st_dev, st_ino, and st_mtime of each map to
  the cached info, and check if changes if the db is cached; if so, close
  the map and reopen it fresh. also uncache entries if the domain or
  file disappear
1997-11-08 15:36:09 +00:00
lukem 721843cf7a use ".Tn YP" instead of "YP", fix up some .Nd entries, use .Pa for mapnames 1997-11-08 15:03:21 +00:00
thorpej 3d2b522093 Don't prototype ether_aton() here if __NetBSD__. 1997-11-08 05:57:15 +00:00
mrg 507e5c88b3 use warn not warnx to find out why the open failed (as old quot did). 1997-11-06 14:36:45 +00:00
lukem 699d49fc00 don't ignore blank lines after a continuation backslash 1997-11-06 00:27:58 +00:00
fair f97bb69df7 grammatical errors fix from PR#4409 1997-11-05 18:46:07 +00:00
lukem 71d53f5fd6 use in-house localhostname instead of gethostname - returns FQDN 1997-11-04 11:43:49 +00:00
lukem 1140eceb13 add { } in the right place; indentation alone isn't sufficient for
if (test1)
		if (test2)
			error()
	else {
		...
	}
this happened when i changed test2 from a void statement to actually
checking its return value.

the effect of this? a YP_MASTER_KEY value wasn't being added to the
generated databases, which was Not Good.
1997-11-04 11:28:46 +00:00
ross 4b634c4e10 Much cleaner fix for alignment error bug. 1997-11-03 21:17:17 +00:00
lukem a8b7ec8d99 ensure sizeof hostname buf for ether_(ntohost|line) is >= MAXHOSTNAMELEN + 1 1997-11-02 14:25:25 +00:00
lukem c32b6d75d3 ensure sizeof hostname buf for ether_(ntohost|line) is >= MAXHOSTNAMELEN + 1 1997-11-02 14:25:23 +00:00
lukem f4fb444bd9 * rewrite read_line(), partially based on get_line in netgroup_mkdb.c:
- use fgetln() instead of fgets()
	- store info in internal buffer
	- fix \\ support
	- count line numbers internally, so \\ lines don't mess up count
* ypdb_store():
	- ensure that the length of key or val doesn't exceed YPMAXRECORD
* makedbm, mknetid, revnetgroup, stdethers, stdhosts:
	- improve error handling
	- take advantage of rewritten read_line(), and cleanup line parsing
	- don't print trailing ` ' for key/val pairs with an empty val
* Makefile.yp:
	- fix up building of ypservers (from Chuck Cranor)
* ypinit.sh:
	- remove leading spaces in variable assignment (from Chuck Cranor)
1997-11-01 14:24:50 +00:00
enami af29cb2306 Sync with release branch so that it compiles.
- include arpa/inet.h in ipsopt.c
- declare yyerror() in iplang_l.l
1997-11-01 09:12:21 +00:00
lukem 3e8e744696 getopt returns -1 not EOF 1997-11-01 06:49:14 +00:00
ross ba9c8e00db Eliminate some alignment assumptions in packed IP/UDP frames. (port-alpha issue) 1997-10-31 23:32:24 +00:00
mrg 60c28e1f95 sigh. merge ipfilter 3.2 onto the trunk. merge to the branch was a mistake. 1997-10-30 16:08:54 +00:00
mrg 44c002beb1 import ip-filter 3.2 1997-10-30 05:27:24 +00:00
christos 1815a8d4a4 Resolve RCSID conflicts; hopefully this is the last time :-) 1997-10-26 00:24:41 +00:00
christos 5d8bee0f9f New version from Erez 1997-10-26 00:02:11 +00:00
lukem 736ba086df WARNSify, KNFify 1997-10-25 13:45:55 +00:00
fvdl b592c266f8 3rd argument to msync() is now needed by NetBSD as well. 1997-10-25 10:49:36 +00:00
lukem ad4916f857 fix spellos and incorrect man page references 1997-10-25 10:18:36 +00:00
lukem 0a94f4f077 use CPPFLAGS instead of CFLAGS 1997-10-25 06:57:53 +00:00
thorpej bab116cf5f To print a size_t, cast to u_long and use %lu printf format so that
this works on the Alpha.
1997-10-25 01:29:30 +00:00
enami 7a8787ba53 Make this compile again on NetBSD/alpha; cast off_t variable to long long
so that it matches printf format `%qd'.
1997-10-24 03:12:06 +00:00
mrg bc13fc9251 prefer snprintf() to sprintf() 1997-10-24 01:41:47 +00:00
mrg d23e58fc15 while catman doesn't `work' properly yet, use snprintf() when creating the
man paths, and add man section 9.  hopefully, this program will actually
work soon.
1997-10-24 01:31:35 +00:00
enami a5372bf523 Add missing newline at the end of exit message. 1997-10-23 12:35:12 +00:00
enami 758c6a0d0f Work around GCC uninitialized variable warning. 1997-10-23 12:30:32 +00:00
enami 7ffe3c6167 Make this compile on NetBSD/alpha; to print size_t variable,
- use %lu instead of %d.
- cast the variable to (u_long) so that this also compiled on NetBSD/i386.
1997-10-23 12:26:02 +00:00
lukem 44c22033e4 use CPPFLAGS instead of CFLAGS 1997-10-23 06:31:59 +00:00
lukem 6e1d64c8d1 quieten gcc -Wall 1997-10-23 06:29:16 +00:00
lukem f0fe153c0a use CPPFLAGS instead of CFLAGS 1997-10-23 06:27:34 +00:00
fair 461f420e35 initialize "cp" in hasquota() to avoid gcc/sparc compiler error:
repquota.c:287: warning: `cp' might be used uninitialized in this function
1997-10-23 04:53:03 +00:00