Commit Graph

2448 Commits

Author SHA1 Message Date
mrg 2beab49a06 - 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:45:41 +00:00
tron 1ea9bb436f When adding a binary package from a locale file "pkg_add" fails now if
a dependence can't be resolved unless "-f" is used, fixes PR pkg/5625
by Jeremy Cooper.
1998-07-05 21:15:55 +00:00
mrg c2b498a921 KNF. 1998-07-05 06:20:05 +00:00
mrg 5b9ccc383d use destination's size in 2 memcpy calls. 1998-07-04 21:31:59 +00:00
mrg 5a91a6622c KNF + check for fork failure. 1998-07-04 21:04:02 +00:00
mrg 26b338e7f0 ensure we do not overrun errbuf. 1998-07-04 20:47:24 +00:00
jonathan 50ca59e842 Fix braino. 1998-06-30 03:42:23 +00:00
jonathan eaa351c789 * Check that any declared option (def{opt,param,flag}, filesystem
is declared at most once.
* Do option dependency across all def{opt,param, flag}.
* Make the default value of otherwise-unspecified defopt's be 1,
  for consistency with non-defopt'ed options.
* Wrap an abstraction layer (macros) around tests for defopt, filesystem,
  defparam, etc. to catch outdated  defopt-vs-filesystem tests.
1998-06-30 03:30:56 +00:00
nathanw e14ca04293 Document shortcorename support and control. 1998-06-28 21:36:55 +00:00
scottr a5427da04d Add and document the -v flag, and only print option-related warnings
if this flag is specified.
1998-06-28 04:41:36 +00:00
tv bf6bf05ae1 Fix hannken's fix: The correct way to keep pstat.c from looking for any
"opt_*.h" files is to set a flag that tells the header files not to look for
anything in the kernel compile directory, i.e. _LKM.

Just rearranging includes doesn't work because it'll just break again,
eventually, as more stuff is defopted.
1998-06-26 19:52:29 +00:00
hannken 653c43d0f5 Make it compile again. Include <sys/socket.h> before setting _KERNEL.
Otherwise the chain pstat.c -> <sys/mount.h> -> <sys/socket.h> fails
with 'opt_compat_freebsd.h: No such file or directory' ...
1998-06-26 14:17:01 +00:00
jonathan 0925cf4fda Stronger checking of options:
* machinery for nonfatal warnings.
* new backend config-file keywords:
     defparam -- like defopt, but each defparam option is required
		 to have a value when configured via "options".
     defflag -- like defopt, but defflag options may not have a value.
		 Also, on "option FOO",  a needs-count style flag
		 (NFOO, either 0 or 1)  is emitted to the .h file.

* Warn about old-style options that aren't defined via def{opt,param,flag}
  and which are  added to IDENT. (These behave subtly differently
  to defopt options when  no explicit value is given.)
1998-06-24 11:20:54 +00:00
kleink 1f491461e0 Need <time.h> for time(). 1998-06-24 10:26:08 +00:00
tron 00d198478f Fix broken call to dbopen(), fixes PR bin/5637 by Azuma Okamoto. 1998-06-22 20:40:01 +00:00
lukem e31c1515a6 divide (not multiply) ratio by 256 1998-06-18 08:03: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
scottr e6eb7d0530 Implement option dependencies as part of the defopt action. We currently
restrict depended-on (or "implied") options to those that have been
previously defopt'ed, which inherently eliminates any cycles in the option
graph.
1998-06-10 04:33:31 +00:00
lukem fc90756956 Implement a new manual page category ``SECURITY CONSIDERATIONS''
(suggested by mycroft)
1998-06-08 12:41:41 +00:00
lukem d86c20ef36 remove unnecessary comment 1998-06-08 12:38:41 +00:00
lukem fa0c2d578e everything has bugs; either document them or don't bother with a BUGS section 1998-06-08 12:36:55 +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
lukem c5b39b1d5a treat single "+" as "+:::::::::" (pw_scan() doesnt like former). minor KNF 1998-06-08 03:23:07 +00:00
lukem 77a05c5b00 clear flags before calling pw_scan() 1998-06-07 14:40:29 +00:00
enami fcc684632c Remove comma at the end of SEE ALSO list. 1998-06-07 08:03:50 +00:00
frueauf dd2f801595 Add support for CONFLICTS entry, implement -C switch for pkg_create
and document that new feature.
1998-06-05 11:22:19 +00:00
msaitoh e167016fdb The service name of the rwhod(8) is not "rwho" but "who". 1998-06-04 13:31:40 +00:00
lukem ce2d32b0d7 don't leak unnecessary info 1998-06-03 00:13:02 +00:00
kleink e6be56ae0b Need <stdlib.h> for mktemp() prototype. 1998-06-01 14:05:35 +00:00
kleink cf82cd0b86 Need <stdlib.h> for setkey() prototype. 1998-06-01 14:00:11 +00:00
thorpej c7a84c77fa If the client requests a specific boot file, echo it back, per RFC951. 1998-05-31 00:37:38 +00:00
veego 7176ddee62 Ups, again put the NetBSD rcs id into this files. 1998-05-29 21:01:45 +00:00
veego 42364dd3bb Remove 14 and the hole results directory during a make clean. 1998-05-29 20:59:43 +00:00
veego e8450f8d3b A little better support to make it work in an NetBSD tree. 1998-05-29 20:57:10 +00:00
veego 8ed932e111 Fix a printf compiler warning. 1998-05-29 20:52:04 +00:00
veego 1e27ada63f Fix a compiler warning for the handlehup argument. 1998-05-29 20:50:55 +00:00
veego 1198b69377 Resolve conflicts from the import of IPFilter 3.2.7. 1998-05-29 20:46:45 +00:00
veego 5f1fcd9bd8 Import IP Filter 3.2.7 1998-05-29 20:14:16 +00:00
jeremy 52a7423256 Documented how the require and install scripts interact with the installation
process more clearly.
1998-05-28 02:30:39 +00:00
matt 40841db9cc NetBSD uses "normal" bit order for FDDI addresses. 1998-05-24 21:41:30 +00:00
thorpej 6ac52dea77 Display a more meaningful error message if the bpf open fails. 1998-05-24 20:30:55 +00:00
kleink 2a4b2482f5 Permit checking the availability of the POSIX File Synchronization Option
(a/k/a fsync(2)), System V style message queues, semaphores and shared memory
at runtime by adding a sysctl variable for each.
1998-05-24 19:52:01 +00:00
tv 2c23336179 Add missing colon in error message. 1998-05-22 19:29:00 +00:00
msaitoh f8c66df30b sort entries and delete extra periods in SEE also section. 1998-05-22 18:27:50 +00:00
veego 0d6591bf7b Partly apply the patch from bin/5466. One fix was allready imported during
the last ipf import.
1998-05-20 19:21:19 +00:00
hubertf c086a7443b No need to unpack file after fileGetURL(), which already did the work for us;
Fixes PR 5456 by "Heiko W.Rupp" <hwr@pilhuhn.de>
1998-05-18 23:47:23 +00:00
hubertf 55444efe60 return new dir; fixes PR 5456 by "Heiko W.Rupp" <hwr@pilhuhn.de> 1998-05-18 23:43:57 +00:00
mellon 9f60f89a46 Version 2.0 Beta 1 Patchlevel 1 1998-05-18 06:53:52 +00:00
veego 255d05844a Fix some warnings introduced in the new version:
- unused label finishbuf
- missing protoype for logopts
- unused function handlehup
1998-05-17 17:16:32 +00:00
veego 82423e3d01 Resolve conflicts 1998-05-17 16:50:15 +00:00
kml ac2b8eb7d6 Correct copyright date and NetBSD revision name formatting 1998-05-17 16:47:26 +00:00
veego d7c5c548fb Import IP Filter 3.2.5 1998-05-17 16:29:42 +00:00
veego 8e900f5ee8 Fix mkdir lossage from rev 1.22 and change two Makefiles to match the one
in tree.
1998-05-17 16:05:39 +00:00
kml d073a8144e Adding eshconfig, used to configure esh (HIPPI network interface) 1998-05-16 18:55:17 +00:00
is 6ee3015175 Avoid using FP where its no win. 1998-05-14 21:49:13 +00:00
thorpej 51e30a086a Quote confFOO, pointed out by enami@netbsd.org 1998-05-12 01:23:49 +00:00
thorpej a23636d506 oops, typo 1998-05-12 00:43:08 +00:00
thorpej 59c3272ca2 Add temporary mailer configuration for babylon.netbsd.org 1998-05-12 00:42:35 +00:00
kleink 37bede84a4 Use strerror(3) instead of sys_errlist and sys_nerr. 1998-05-09 17:22:07 +00:00
kleink f6c179f10e Fix arithmetics lossage on typeless pointers. 1998-05-08 19:03:41 +00:00
agc 47f6bce353 Add a check (from FreeBSD) so that the removal of the temporary dir
takes place only once, if pkg_add is interrupted, and exit after the
cleanup is done.
1998-05-06 15:05:29 +00:00
mrg 870d77713b commit BIND 4.9.7-TB1 changes (still no BIND 4.9.7 release): from the
BIND changes file:

808. [security] A number of routines did insufficient bounds checking which
              could cause crashes by reading from an invalid memory
              location. (From BIND-8).

807. [bug]    The server sometimes leaked the flushset (ns_resp.c).
              (From BIND-8).

806. [bug]    add_related_additional() leaked memory if the name
              was already in the related array.  (From BIND-8).
1998-05-06 05:21:45 +00:00
mycroft 9c56569322 Change some variable names to reflect changes in the previous revision. 1998-05-05 08:59:56 +00:00
christos ea4bc98c9f PR/5384: Tom Ivar Helbekkmo: We need a ctty to fsetown. 1998-05-02 15:28:32 +00:00
christos a6551c37bd Resolve conflicts 1998-05-02 14:55:19 +00:00
christos 1e38977381 Resolve conflicts 1998-05-02 14:31:10 +00:00
christos 30402427a8 Import the readme files, setup and FAQ 1998-05-02 14:21:43 +00:00
christos 57daeb39d8 Resolve conflicts. 1998-05-02 14:19:13 +00:00
thorpej 932b5508ac Note net.inet.tcp.ack_on_push. 1998-05-02 04:20:18 +00:00
tv 95fadaa10e Add CLEANFILES+=gram.h as noticed by tron (PR 5383) 1998-05-01 13:02:09 +00:00
thorpej 723fb3cccc Add support for specifying the send and receive socket buffer sizes. This
is especially useful for TCP servers which must specify the receive
socket buffer size before the connection is made so that the connection's
window scale factor can be properly advertised.

Example /etc/inetd.conf configuration line:

shell stream tcp,rcvbuf=1m nowait root /usr/libexec/rshd rshd

That line will cause the rshd to advertise a 1 megabyte window, which could
improve the performance of an rcp in some situations.
1998-05-01 01:57:26 +00:00
thorpej e1a08a949e Note the existence of net.inet.ip.mtudisctimeout. 1998-04-30 21:46:00 +00:00
thorpej 44bd3f51fe Note the presence of net.inet.tcp.: mssdflt, sack, win_scale, timestamps,
compat_42, cwm, cwm_burstsize.
1998-04-30 21:36:03 +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
fair dc026e0515 Change occurrences of "UNIX" to .Ux or .At as appropriate. 1998-04-28 06:00:51 +00:00
fair c46ab392dc Principally, change foo(N) to .Xr foo N
Also, do some other mdoc tagging.
1998-04-28 04:07:04 +00:00
fair c462d9c37d add documentation of /etc/ptmp and vipw failure modes per PR#5340 1998-04-27 21:10:25 +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 5c58321a6f mk-amd-map severe breakage fixes as pointed out by noud@knot.nl:
- use dbm_close() so that the file actually gets written to disk
- rename %s.db, not *s.{dir,pag}; we use Berkeley DB, not ndbm.
1998-04-23 11:51:07 +00:00
agc 62aaf11f0b In isdir() function, use lstat(2) instead of stat(2), so that we do
not traverse through any symbolic link.  This fix means that packages
which make symbolic links to directories can now be de-installed.
1998-04-23 10:40:04 +00:00
mrg b7e46f9175 support /var/run/rarpd.pid 1998-04-23 02:48:33 +00:00
ross aaa420bc1f Restore lost line breaks before .Nm. (David Brownlee PR# 5343)
Two more cases fixed, also.
1998-04-22 06:24:55 +00:00
frueauf 6326329eba Don't use "+CONTENTS" direct, use CONTENTS_FNAME instead. 1998-04-20 08:27:45 +00:00
tv 2fd6f54874 Make the yacc rules work on 1.3 as well as -current without updating the
.mk files:  build the .c and .h files manually.  This should be removed
after the next release.  XXX.
1998-04-16 18:47:05 +00:00
mrg aebb3d6c08 add a -l (logging) switch. 1998-04-15 15:06:06 +00:00
fair c0ad440bd6 fix my boo-boo documented by PR#5293 1998-04-14 20:20:16 +00:00
fair c85ab8db8e A few more error message changes for better information. 1998-04-14 04:51:19 +00:00
fair dd15ee1ce0 Handle the problem cited in PR#1328 (no checking for I/O errors).
Improve some of the error messages to provide more accurate information.

Repaired a bug by inspection (function pointer reference through a
free'd DB structure!! How did this *ever* work?)
1998-04-13 23:12:45 +00:00
kml fcf0227962 Fix to ensure that the correct MSS is advertised for loopback
TCP connections by using the MTU of the interface.  Also added
a knob, mss_ifmtu, to force all connections to use the MTU of
the interface to calculate the advertised MSS.
1998-04-13 21:18:19 +00:00
lukem 77a346fea2 use COPTS not CFLAGS 1998-04-13 14:42:03 +00:00
tv a40db43400 missed 3 lines on sync 1998-04-12 21:38:58 +00:00
tv 3d6a264267 sync with Makefile.inc 1998-04-12 21:09:35 +00:00
tv 5321eb363d PIC systems no longer build libamu.a; depend them on libamu_pic.a. 1998-04-12 20:45:05 +00:00
thorpej f483a368ce Fix ptrdiff type lossage on Alpha. 1998-04-09 17:17:28 +00:00
tv 99a2626b0e Make use of NOSTATICLIB addition to <bsd.lib.mk> 1998-04-09 00:52:06 +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
tv e1463ca305 sync with install changes from amd/Makefile 1998-04-07 19:33:09 +00:00