Commit Graph

1743 Commits

Author SHA1 Message Date
christos 95e251ee4e Better fix for the va_list problem from paulus. 1997-03-14 01:53:29 +00:00
mycroft 16cc2efbbd Change _PATH_MASTERLOCK to /var/run/lpd.pid. 1997-03-14 01:17:34 +00:00
jtk 0f6d8d88b8 Add hash table walking functions to emit manifest constants for locator
offsets within cf->cf_loc[].
Also include locator names as strings in ioconf.c.

Still to do: wire the locator names into the cfdata.
1997-03-14 00:14:09 +00:00
mycroft b860cb428b Move all of the libwrap checking and subprocess startup into a separate
function.  Arrange for tcpmux() to be called like other builtins, and have it
call the aforementioned function recursively.  This allows tcpmux to be
wrapped, and always runs it after forking, so we don't freeze everything
else.
Also, use FD_CLOEXEC to close file descriptors, rather than iterating through
them ourself.
1997-03-13 20:15:04 +00:00
christos 28b883a7db put back filtering options, and rcsid police. 1997-03-13 19:08:15 +00:00
christos aae03a189a Fix for the void * arg hack; reported by cgd 1997-03-13 19:05:51 +00:00
mycroft a68a078f3e Fix typo. 1997-03-13 18:39:50 +00:00
mycroft 51fa5e9be7 Make the previous dependent on LIBWRAP_INTERNAL, which is not defined by
default.
1997-03-13 18:36:35 +00:00
cgd f919d5c499 fix an 'if' that could never be true to do what it really meant to do. 1997-03-13 18:23:19 +00:00
mycroft 249eced8da If we forked for an internal service, make sure we always exit afterward. 1997-03-13 18:19:35 +00:00
mycroft df6ec691b5 If we're using libwrap. always fork. This only affects the time and daytime
services anyway.
1997-03-13 18:08:19 +00:00
mycroft cf5f8c252d Slight rearrangement to forking code. Also, always close the new descriptor
after a fork failure, even for a waiting service.
1997-03-13 18:06:15 +00:00
mycroft 84626a507f Another bug fix to tcpmux. 1997-03-13 17:35:39 +00:00
mycroft cb666b197f Merge changes from Lite2 (with bug fixes). Adds tcpmux. 1997-03-13 17:22:23 +00:00
mycroft 7c7f4379a0 When rejecting a UDP connection, make sure to flush the right socket. 1997-03-13 14:57:34 +00:00
mycroft d6dc78d4c1 Oops; subprocess must exit when rejecting connection. 1997-03-13 14:29:15 +00:00
mycroft 9df028750a Do libwrap access checking *after* forking. 1997-03-13 14:15:40 +00:00
mikel 2b8bc7438f RCSid police 1997-03-13 06:19:07 +00:00
christos 86276488dc Resolve conflicts cleanup warnings. 1997-03-12 20:17:18 +00:00
christos e287272422 Import the latest pppd from Paul Mackerras. 1997-03-12 19:38:04 +00:00
mycroft 411b988dfb Use POSIX signal functions, and add an `interval' argument. 1997-03-12 19:10:54 +00:00
mycroft 5f00f8f048 Merge with 4.4BSD-Lite2 version. 1997-03-12 18:50:06 +00:00
scottr 6a8f5a85fd RCS Id police 1997-03-11 04:13:02 +00:00
is dd80c3d309 Back out the back-out. Don't ask. 1997-03-10 20:21:01 +00:00
is 9d29e526db backout previos change; was not intended for trunk. 1997-03-10 19:36:40 +00:00
is 4ce26afebe back out previoius commit---wasn't intended for The Trunk 1997-03-10 19:26:23 +00:00
is 0edaa1c1e5 adapt to new ARP code. still needs work for non-Ethernet. 1997-03-10 19:18:42 +00:00
scottr ed0d9160f1 Build rpc.lockd and rpc.statd 1997-03-10 06:30:32 +00:00
scottr 24ce527b89 Status monitor daemon by A.R. Gordon, ported from FreeBSD. While the
functionality was not significantly altered, the code was KNFed and
the build process cleaned up considerably.
1997-03-10 06:28:29 +00:00
scottr a6fdc939ab NFS locking daemon by A.R. Gordon, ported from FreeBSD. While the
functionality was not significantly altered, the code was KNFed and
the build process cleaned up considerably.
1997-03-10 06:26:19 +00:00
cgd 72b0837ae3 fix one more goofup in the buffer safety changes: snprintf() should be
called with enough space for the trailing NUL, because it (unlike strn*())
always NUL-terminates.
1997-03-10 06:13:16 +00:00
cgd 7262daa78a fix two bugs pointed out by Paul Sijben <Paul.Sijben@huygens.org>:
(1) incorrect check on length of data being written (fix provided by
    Paul Sijben <Paul.Sijben@huygens.org>), and
(2) inadequate buffer (too small) for data being sent to remote meant
    that properly-formed messages couldn't be created, so job removal
    didn't work properly.
1997-03-08 22:50:52 +00:00
cgd dd7fbd1461 doesn't need libkvm any more 1997-03-08 22:21:55 +00:00
cgd 1e9c4131dc update structure definitions for 64-bit safety (already done in the relevant
header files), and kill the note about checking /netbsd's nlist, since that
is no longer done (since the kernel namelist isn't actually used for
anything).
1997-03-08 22:20:21 +00:00
mikel 3190ec8ac6 prototype internal functions so this will build 1997-03-08 21:39:06 +00:00
mouse 9dd8997bcf alternate -> alternative, per PR 2643 1997-03-08 14:34:56 +00:00
mouse ee6a5b2cd6 alternate -> alternative, per PR 2643 1997-03-08 14:24:19 +00:00
mouse 80c0d60f84 alternate -> alternative, per PR 2643 1997-03-08 13:47:08 +00:00
mikel ba2d9f692b merge lite-2 changes.
also RCSid police, and add return types to all of the functions.
1997-03-08 08:01:26 +00:00
mikel 6aeb76c1f1 merge lite-2 changes.
also replace index -> strchr, add <string.h> for strchr prototype, and
  clean up .Nm usage.
1997-03-08 07:24:40 +00:00
mikel 54d63208ce RCSid police 1997-03-08 06:48:00 +00:00
mikel 961a0bd020 we don't need 'pseudo-device ether' anymore. also misc mdoc-macro-usage
cleanup, and add a missing quote (font-lock strikes again).
1997-03-07 07:41:25 +00:00
mikel 38e37321ab merge lite2 changes 1997-03-07 07:04:42 +00:00
thorpej 2622084d37 Fix possible buffer overflow, from Rick Byers <rickb@iaw.on.ca>,
PR #3293.
1997-03-06 23:37:04 +00:00
thorpej d214be029a Fix arithmetic botch that caused incorrect results for configs like:
config netbsd root on sd1a

Noted by Taras Ivanenko <ivanenko@ctpa03.mit.edu> in PR #3203
and by others.
1997-03-06 23:11:55 +00:00
mikel e65788c58e merge lite-2 changes.
RCSid and getopt() return type police.
1997-03-06 07:00:50 +00:00
mikel d917a6370d RCSid police; getopt() return type police; rindex() -> strrchr() 1997-03-06 06:26:07 +00:00
mikel bcecfb0095 merge lite-2 changes (just SCCS IDs).
RCSid police, update 'struct dkbad' definition in manpage.
1997-03-06 06:12:18 +00:00
mikel af995d547a RCSid police 1997-03-06 05:41:37 +00:00
mikel 2488f833e1 merge Lite2 version; RCSid and getopt() return type police. 1997-03-06 05:40:10 +00:00
mikel 96a22fa65f RCSid police, and eliminate obsolescent comment. 1997-03-06 05:23:00 +00:00
mikel 0bd8d27ab1 merge Lite2 manpage 1997-03-06 05:19:10 +00:00
mikel c4ecd9537c don't write the PID file until after calling daemon(3); from Enami
Tsugutomo in PR bin/3280.
fix a typo in the error message while I'm here.
1997-03-05 07:19:52 +00:00
mikel b5ce435d24 set proper length for sockaddr_un. fixes PR bin/3281 from Enami
Tsugutomo, but slightly differently; the code I added is basically
  identical to SUN_LEN(), but avoids the unecessary strlen() call.
1997-03-04 06:12:44 +00:00
jtk 46764eff41 PR # 3271: ignore SIGPIPE to avoid nasty clients causing apmd to die.
From Lennart Augustsson <augustss@cs.chalmers.se>.
1997-03-01 19:10:49 +00:00
christos cb8aa82b0c compare only the prefix "nfs", not the whole word, so we match "nfs3" too. 1997-02-26 15:06:46 +00:00
mrg 1cf9e54f49 link ipl.4 to ipfilter.4 1997-02-18 21:28:53 +00:00
mrg cda4cfcedd note that ipfilter also includes PFIL_HOOKS. 1997-02-18 21:28:19 +00:00
mikel cdc053b0b4 fix some typos and .Nm usage 1997-02-18 06:34:01 +00:00
mrg a4cf268e76 lite2 1997-02-13 05:39:12 +00:00
cgd dd84b718ce Re-fix the PR 3209. The right thing to do is cast to (long long) and
print with %qd.  'off_t' is _NOT_ 'long long' on all platforms, and gcc
complains with -Wformat %qd is used on an off_t on those platforms.
1997-02-11 22:40:25 +00:00
pk 3bb6ed1979 Fix format for quad argument (PR#3209) and two other format string
mismatches.
1997-02-11 22:26:14 +00:00
phil ec39037613 Add lastlogin to the list of subdirectories. 1997-02-11 18:47:04 +00:00
phil 38d6f43246 Import of lastlogin from John M. Vinopal, from PR #1932.
RCS ID changes from PR.  Updated man page for NetBSD 1.2 instead
of NetBSD 1.1.   If this program is merged with last(1), then
it will be removed.
1997-02-11 18:36:51 +00:00
mikel e405a28573 Xr Trpt -> Nm Trsp; pull in other bug fixes from trpt(8).
RCS ID police.
1997-02-07 06:53:17 +00:00
mikel f3b151f572 fix PR misc/3184, but somewhat differently.
include <unistd.h> for getopt() prototype, reorder includes.
eliminate some leftover unused variables.
1997-02-07 05:07:13 +00:00
thorpej c9fe001e3a Cross-reference options(4). While I'm hear, garbage-collect the
reference to config(8) left over from when this program was called
config.new.
1997-02-05 19:17:28 +00:00
thorpej f12fb4ba31 Patch from Gordon Ross to make this build under SunOS, useful in
cross-compiling environments.
1997-02-03 21:18:21 +00:00
cgd 1c4dda6b52 include string.h for protos 1997-02-03 20:12:34 +00:00
cgd f429382aa8 add bad144 to the alpha's SUBDIR list 1997-02-03 20:11:45 +00:00
thorpej e14a0d029f Add support for generating "option headers". These allow options to
be included in object dependencies.  config(8) is told to generate
a header for a particular option with the new "defopt" keyword, used
in the files.* system description files.  Options that are placed in
header files are not given -D... cpp flags.

This approach allows options to be turned into headers incrementally,
rather than all at once, and allows for non-header options, as well.
1997-02-02 21:12:30 +00:00
carrel eb7a3e7987 Display names for more frame buffer types
Patch from Klaus Klein.  Fixes port-hp300/3039
1997-02-01 13:04:36 +00:00
carrel 3d7d96333d add NetBSD CVS ids 1997-01-31 23:12:12 +00:00
carrel 914d884a22 fixed grfinfo to properly display errors
added man page
1997-01-31 23:06:52 +00:00
veego 8a514d0afa Remove the last change. fil.fr_icode ist char and NOT unsigned char.
Fix pr#3169
1997-01-31 10:10:11 +00:00
thorpej 07c71aa7f7 Implement new grammar and semantics for specifying file systems
and the root device:

- New "file-system" keyword is used to configure file systems into
  the kernel.
- New way of specifying root device, which allows root file system
  type to always be specified.  Examples:

	config gennetbsd swap generic
	config sdnetbsd root on sd0a swap on sd0b
	config nfsnetbsd root on nfs

  are replaced by:

	config gennetbsd root on ? type ?
	config sdnetbsd root on sd0a type ffs swap on sd0b
	config nfsnetbsd root on ? type nfs
	config lenetbsd root on le0 type nfs

  Note that specific network interfaces may now be specified as
  the root device.
- swapgeneric.c is no longer used; generate a swap*.c file for each
  "config" line in the kernel configuration file.
1997-01-31 03:12:30 +00:00
thorpej 2cd7214cae We no longer have to build config.old on the hp300. (Yay!! Woo!!) 1997-01-30 10:44:46 +00:00
thorpej a4f420d68a Ding dong, the old config is dead! 1997-01-30 10:41:27 +00:00
matthias 470161650e compression ratio was computed wrong. 1997-01-30 09:14:50 +00:00
mark ab4940de30 Cast -1 to an unsigned char for the test with fil.fr_icode as the fr_icode
field is declared as an unsigned char.
1997-01-29 18:39:47 +00:00
mark 3d14bc1b12 Use an integer rather than a char for the getopt() return value in order
to make it work with architectures that use unsigned chars.
1997-01-29 01:49:25 +00:00
mark 2ab96deb9a Use an integer rather than a char for the getopt() return value in main()
in order to make it work with architectures that use unsigned chars.
1997-01-29 01:29:09 +00:00
thorpej 509e392ad5 Remove the SIOCADDMULTI ioctl; it's not meant for user level code. Just
always set promiscuous mode on the interface.
1997-01-27 22:51:50 +00:00
cjs ca99d3bef4 Format and install ypinit manual page. (PR 3139 from
Andrew Wheadon <andrew@wipux2.wifo.uni-mannheim.de>.)
1997-01-27 00:28:31 +00:00
cjs 729dbf416c sendmail 8.8.5 merge 1997-01-24 04:01:18 +00:00
cjs df679e9b88 sendmail 8.8.5 1997-01-24 02:19:57 +00:00
cgd de97b4a289 stdlib.h for malloc() prototype 1997-01-24 02:16:22 +00:00
cjs 27e0e2605f sendmail 8.8.5 1997-01-24 01:53:10 +00:00
jtk 43130f9be2 apply typo fix per misc/3134 (from Thorsten Frueauf) 1997-01-23 00:31:14 +00:00
mycroft af2068bc6a Use ${.CURDIR} to find Makefile.inc. 1997-01-20 07:33:57 +00:00
tls b032699c54 rather amusing typo. Perhaps this was a tunafish? 1997-01-19 10:52:10 +00:00
lukem 72aedc7cd1 convert to public stringlist implementation (I forgot about this)
found by Klaus Klein <kleink@layla.inka.de>, noted in [bin/3215]
1997-01-19 03:30:14 +00:00
mikel c792bb5960 cast ether_ntohost() argument to proper type;
from Klaus Klein <kleink@layla.inka.de>
1997-01-18 02:22:21 +00:00
mikel 38f1be3526 use ether_aton() from libc; from Klaus Klein <kleink@layla.inka.de>,
with some modifications by myself.
1997-01-18 02:12:13 +00:00
scottr 1a49e59606 Remove timezone support. From Thorsten Frueauf, closes PR #3118. 1997-01-17 23:48:54 +00:00
perry 0dc57f52ff fix coredump per pr-3084 1997-01-16 22:27:01 +00:00
cgd 7bd18db5e6 pointer cast fixups for 64-bit cleanliness 1997-01-14 06:47:10 +00:00
cgd bf31af7965 pointer cast/printf fixups for 64-bit cleanliness 1997-01-14 06:45:01 +00:00
cjs f6d7620b76 Add tcpdchk and tcpdmatch. 1997-01-13 23:33:15 +00:00
tls 01221a35e5 b->mem 1997-01-12 20:42:41 +00:00
mikel 91e876159f fix problem with restarting service after SIGHUP (PR 3093)
indicate proper invocation point and RCS ID police (PR 3098)
1997-01-12 06:55:41 +00:00
mikel 35b9d06596 make testdb() fail if database version string has length zero. 1997-01-11 06:18:11 +00:00
cjs 7e5ed09d92 Add a list of programs which are not in /etc/inetd.conf but use libwrap
on their own (currently just /usr/sbin/sendmail). Also, mark all programs
in inetd as wrapped even without tcpd being called, since NetBSD inetd
wraps all programs.
1997-01-11 03:33:31 +00:00
cjs fbb40475d5 Import from tcp_wrappers_7.4. 1997-01-11 02:09:50 +00:00
cjs 84b4e9c069 Import from tcd_wrappers_7.4. 1997-01-11 02:06:52 +00:00
thorpej 05fe9cfe11 Grok and document CTL_DDB. 1997-01-09 05:38:54 +00:00
veego 21361a6567 Add ipf. 1997-01-08 21:58:34 +00:00
mrg eafab1cbd3 ipl -> ipfilter 1997-01-07 11:32:24 +00:00
veego ff73fbb75f Alphabetize the SUBDIRs (Fix pr#3088) 1997-01-06 23:33:36 +00:00
veego a3a8d0aba7 Add includes for 'struct tcpiphdr'.
Add $NetBSD$ id and restore the orginal Id.
1997-01-05 16:42:41 +00:00
mrg 3460d5fc46 update this for "pseudo-device ipl" 1997-01-05 14:53:55 +00:00
mrg 4810e839ab initial import of darren reed's ip-filter, version 3.1.2. 1997-01-05 13:06:38 +00:00
cjs 5416ba5d61 New manual page for ypinit(8). 1997-01-05 09:49:41 +00:00
cjs bce8700c83 Add reference to ypinit(8). 1997-01-05 09:49:07 +00:00
mouse ccf88919e4 Per mail from Herb Peyerl, use LOG_AUTH for libwrap logging. 1997-01-02 14:25:18 +00:00
pk 1b92c8c5c6 This program is now called `mdsetimage'. 1997-01-02 00:36:15 +00:00
pk b2c06715e2 Rename: rdconfig => mdconfig; rdsetimage => mdsetimage 1997-01-02 00:34:53 +00:00
pk 8ea56d49aa This program is now called `mdsetimage'. 1997-01-02 00:33:34 +00:00
pk 04287aa824 This program is now called `mdconfig'. 1997-01-02 00:23:45 +00:00
pk fa84b16b10 Device rename: `rd' => `md' 1997-01-02 00:22:43 +00:00
christos 2c22a216ba 64 bit patches (mostly long -> time_t) from Matthew Jacob (?)
sup now works on the alpha!
1996-12-31 18:08:00 +00:00
mouse f02c2e5693 Get the local-address-part code in here (instead of "comsat" you can
use "127.0.0.1:comsat").  While I'm here, do trailing whitespace
cleanup, .Nm usage police in the manpage, and a couple of trivial text
typo fixes.
1996-12-30 23:38:18 +00:00
cjs 234f178084 Configure sendmail use tcp_wrappers (/etc/hosts.allow) for validating
hosts connecting via TCP/IP.
1996-12-27 01:54:07 +00:00
cjs 8c6c957cfd 8.8.4 initgroups patch from Eric Allman 1996-12-27 00:29:11 +00:00
mikel a1e8465484 fix typo; PR bin/3038. 1996-12-24 02:44:58 +00:00
christos 9d10a25919 - add missing prototypes.
- fix function call inconsistencies
- fix int <-> long and pointer conversions
It should run now on 64 bit machines...
1996-12-23 19:42:01 +00:00
cgd 119b0ec653 fix dependency builds. Since we've got something to run a depend build
on, by all means _do it_, rather than not doing it.  Also (unrelated
problem) make the built .c file gets removed when cleaning.
1996-12-23 00:19:05 +00:00
veego df0caa2391 Add y.tab.h to CLEANFILES. 1996-12-22 16:57:40 +00:00
christos bdde499b0c PR/3042: filter parsing broke after libpcap upgrade causing infinite loops.
- removed all code stolen from libpcap and used the library functions directly,
  linking -lpcap.
- added a pdebug option to turn on pcap optimization debugging, if libpcap
  was compiled with debugging turned on.
1996-12-18 16:54:57 +00:00
thorpej c0fe650b17 Eliminate unsafe calls to strcpy() and sprintf(). 1996-12-16 22:30:43 +00:00
fvdl a90e5523d6 Use the 'nochdir' argument to daemon(), so as not to undo the chdir
already done. Close PR 3025,3026,3023
1996-12-14 12:06:48 +00:00
mycroft 11f8dfe58d Format police. 1996-12-12 00:43:28 +00:00
mrg 077acf5088 remove unsafe calls to strcpy(), strcat(), and sprintf(). some KNF. 1996-12-09 09:57:40 +00:00
mycroft 6020b18019 Use warnx() and hstrerror(), rather than herror(). 1996-12-08 13:59:11 +00:00
mycroft a6a278a7bf Fix typo. 1996-12-08 13:54:42 +00:00
mycroft ee7207b7ef Eliminate local variable `progname'. 1996-12-08 13:53:25 +00:00
mycroft 0d53a465b5 Use daemon() corrently.
Use err*(3) and warn*(3).
1996-12-08 13:44:26 +00:00
mycroft 5d4bdd4971 Use daemon() to background. 1996-12-08 13:28:21 +00:00
mrg 5b9f69465f if se_argv[0] is NULL, use se_service. 1996-12-07 00:37:00 +00:00
mrg 3e0b84a6d5 syslog allow/deny at the right severity. 1996-12-06 00:45:48 +00:00
mikel 857bb7c126 We don't need this (approved by mrg) 1996-12-05 06:04:30 +00:00
thorpej 170a88d9d9 amd works on the alpha now, so build it unconditionally. 1996-12-04 23:00:35 +00:00
thorpej b71cc83108 Do a 64-bit `friendliness' sweep, making amd(8) work on the alpha.
XXX These aren't the prettiest diffs in the world, but making them
XXX nicer would require a bit of restructuring of the code and
XXX possible amq protocol.
1996-12-04 22:59:01 +00:00
mrg b95b23e332 allow allow/deny severity to be compile-time configurable, use getservbyport()
correctly, and log the proto.  from <jbernard@tater.Mines.EDU> in several PR's.
1996-12-04 13:37:18 +00:00
mrg 62f3bbaa0a xref hosts_access.5 and hosts_options.5 1996-12-04 13:35:05 +00:00
mrg 057e9f509f inetd.5 -> inetd.conf.5, from <jbernard@tater.Mines.EDU> 1996-12-04 13:32:31 +00:00
mrg 64327b49fc merge 8.8.4 1996-12-04 06:35:51 +00:00
mrg 8b0617fdcf sendmail 8.8.4. sigh. 1996-12-04 03:27:20 +00:00
thorpej 041a23ac7f Make this compile with -DDEBUG. 1996-11-27 09:16:45 +00:00
thorpej 126bf2484b Protect against NULL pointer reference in yp_private(). This can happen
with, e.g. an empty "ypservers" map, causing a SEGV in the child which
handles an "all_2" proc.
1996-11-27 09:16:01 +00:00
mrg 4e76afacc8 use the new libwrap functionality to provide tcpd-like functionality
as part of inetd.  uses /etc/hosts.{allow,deny} as tcpd does, etc.  it
is basically exactly like tcpd except that you don't need to change
the server to /usr/local/sbin/tcpd.

XXX should document better somewhere
1996-11-26 17:23:34 +00:00
mikel 1668cf2082 Enable 255.255.255.255 netmasks. Fixes bin/2954.
Also RCSID police.
1996-11-26 08:19:29 +00:00
mikel f27059eb04 Read TTY-specific options after generic and command-line options.
Fixes PRs bin/2554, bin/2728, and bin/2935.
Also RCSID police.
1996-11-26 07:53:02 +00:00
thorpej 94a7999e9d Fix byte-order bug in net number comparison.
From Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>, PR #2961.
1996-11-25 20:04:42 +00:00
thorpej a0e4cacd4c Print a warning to stderr if a YP inclusion (`+') specifies a value of
0 for uid or gid.  Based on a patch posted to tech-userlevel by
Paul Kranenburg <pk@NetBSD.ORG>.
1996-11-24 21:13:27 +00:00
chuck c03ad89d2d include all host names for an address rather than just the first one 1996-11-24 20:16:43 +00:00
lukem 9e8841e359 Implement '-d directory' option, to override the default of '/'.
Useful for building ~ftp/etc/pwd.db without using chroot or unionfs.
Inspired by FreeBSD, closes [bin/2566]
1996-11-22 05:37:29 +00:00
mrg 374d8a5b5a minor tweaks. 1996-11-18 10:15:09 +00:00
mrg 59b7590636 merge in 8.8.3 1996-11-18 05:29:14 +00:00
mrg 7531efff40 sendmail 8.8.3 1996-11-18 04:29:19 +00:00
gwr 81aa081ab6 Eliminate the "dangerous trailing context" (actually both uses of
trailing context were unnecessary).  Remove unnecessary { } around
simple actions (just a return statement).  Fix some * vs + errors.
1996-11-13 18:42:18 +00:00
gwr 7fa1418031 Fix the bug I introduced in the last commit, which broke line contuation
where newline is followed by whitespace.  Do not return a newline token
to the parser in that case (logically still the same line).
1996-11-12 17:42:47 +00:00
gwr a0b75afc0b * Eliminate all shift/reduce conflicts in the grammar. This
requires that some ordering requirements are checked by the
  back-end C code instead of the parser (dirspecs, maxpart).

* Be more careful to require newline tokens in the grammer where
  they are expected, and deal with blank lines, etc.  This allows
  elimination of a trailing context on newline in the scanner.

* Let the parser set values for "needs-count" and "needs-flag"
  instead of making those special cases in the scanner.

* Get rid of '= ' preceeding actions (obsolete yacc syntax)

* Make the scanner not insert an extra newline after includes.
  (It was just an accidental side-effect of the ENDFILE stuff.)
1996-11-11 23:54:17 +00:00
gwr 91118cc6ae Move setupdirs() here -- it is now called from scan.l (include). 1996-11-11 23:41:54 +00:00
gwr 1ed260c698 Move some externs to where they are needed. 1996-11-11 23:40:09 +00:00
gwr 3b2cf54383 Be honest about the fact that this program builds only with flex. 1996-11-11 23:36:40 +00:00
mycroft 72d4e71f08 Remove remaining vector cruft. 1996-11-11 14:18:49 +00:00
gwr 26793c36d4 Minor changes to support building on other systems (i.e. SunOS). 1996-11-07 22:59:39 +00:00
christos e0d22b9baf Add support for printing RIP-V2 packets. 1996-11-04 21:33:02 +00:00
cgd 42b8d1922d correct a comment: profiled kernels go in FOO.PROF, not FOO.prof 1996-11-02 01:02:56 +00:00
cgd b031fda3b1 update comments to correctly indicate what files are being parsed when 1996-11-02 01:00:14 +00:00
explorer 37449d45b0 Fix the get-a-shell hole, even if we are not currently open to that attack.
(1.2 release is, however, and this should be pulled up and released ASAP)

The previous version (1.11) checked into current limits the duration of
setuid-root periods much more than the 1.2 released version does, so the
attacker DID get a shell, but it was not a root shell.
1996-10-25 22:07:53 +00:00
scottr c847b03d13 `Kb' means kilobits, `Mb' means megabits. Since we're talking about bytes,
not bits, use the uppercase `B' when reporting statistics, and be explicit
about it where appropriate.  Noticed by J.T.
1996-10-25 18:21:57 +00:00
cgd 26902ec586 recognize MNT_NOCOREDUMP and print the 'nocoredump' flag for file
systems which have MNT_NOCOREDUMP set.
1996-10-23 22:50:05 +00:00
cgd 8b3e8678eb add support for recognizing a bunch of flags which are in <sys/mount.h>
but which were never added to pstat -v: UNION, ASYNC, DEFEXPORTED,
EXPORTANON, EXKERB.  Also, sort according to the apparent local style
(order in mount.h, rather than alphabetical).
1996-10-23 22:19:23 +00:00
phil 3aa6054ce8 Fix the type in the description. -a => -m 1996-10-23 04:58:50 +00:00
explorer 3dc8e5446d | -> } in manual page; closes pr bin/2858; mailed patch to author 1996-10-18 17:10:52 +00:00
thorpej 2dbc89cee0 Always clean apm/apmd. Fixes PR #2854, from Dave Huang <khym@bga.com>. 1996-10-18 07:08:56 +00:00
thorpej c5306806ca Use ${INSTALL}. 1996-10-18 06:32:14 +00:00
thorpej 876693e4b5 Don't need to define our own INSTALL variable. 1996-10-18 06:31:29 +00:00
thorpej 150c33e60b Use ${INSTALL}. 1996-10-18 05:55:26 +00:00
jtk 2822e47b0e fix PR #2623: read the idle time from the kernel to determine whether
to wake up.  This is needed because the active filter applied in user
space may fail to match VJ compressed packets.  (The kernel applies its
copy of the filter before it runs VJ compression.)
1996-10-16 00:15:51 +00:00
cgd b7dcf10e80 If gethostbyaddr() fails, use inet_ntoa() to turn the IP address into
a dotted-quad string.  Make this compile with -Wunused and -Wnested-externs.
Kill unnecessary and trivial-to-remove global variables.
1996-10-14 19:28:09 +00:00
christos 1b15732725 <machine/endian.h> -> <sys/types.h> 1996-10-13 01:15:03 +00:00
cgd 3b6f768ed2 Create only /var/db/kvm.db, and only create it if it doesn't
already match the running kernel.  Fixes an inconsistency
where /var/db/kvm_filename.db would be created, but only
if /var/db/kvm_netbsd.db didn't match the running kernel.
1996-10-12 00:51:44 +00:00
cgd 5dd208e6fc u_long -> u_int32_t when dealing with address lists returned by the resolver. 1996-10-07 22:33:15 +00:00
cgd 5d2117b218 don't include bsd.subdir.mk, especially _before_ bsd.prog.mk:
(1) bsd.prog.mk already includes bsd.subdir.mk, and
(2) including bsd.subdir.mk first screws up the clean/cleandir targets
    in such a way that the program's objects don't get blown away
    when you make clean.
1996-10-06 18:08:15 +00:00
cgd 010a229c99 compare client names case-insensitively, since hostnames are case-insensitive. 1996-10-04 19:00:31 +00:00
christos 4871cd13ce RCSid police and a small bug fix in util.c... 1996-10-04 05:15:27 +00:00
cgd 45d20c6b1b add rdsetimage, sort 1996-10-04 00:22:07 +00:00
cgd 257aa69013 rdsetimage, a program to set kernel RAM disk images.
Written from scratch by me, today.
1996-10-04 00:18:55 +00:00
cgd 892f00d3e6 fix slight thinko in that last change 1996-10-03 23:14:23 +00:00
cgd 3e1fe814f0 since get_kerntext() is only used by the a.out code, move it there and
make it private.
1996-10-03 23:06:42 +00:00
cgd ca2617f88a use ECOFF header, not get_kerntext() to help calculate version's file offset 1996-10-03 23:05:27 +00:00
thorpej 06da3294e8 This file is no longer used. 1996-10-03 17:25:07 +00:00
mrg da3136f56a add dhcpd. 1996-10-03 06:58:10 +00:00
mrg 615a3ac588 update some minor things for netbsd. add dhcp2netbsd script. 1996-10-03 06:57:18 +00:00
mrg f6be9247c0 ISC dhcpd beta 5.13. 1996-10-03 06:33:24 +00:00
cgd 61dc0e200c fix pasto: Elf_{Off,Word} rather than Elf32_{Off,Word} 1996-10-03 04:55:31 +00:00
ws 199624cb52 Use an integer instead of a char to store the getopt() return value in
order to match prototypes.
1996-10-02 18:21:03 +00:00
thorpej 54ab7c44c8 Change name of ypservers file to /var/yp/binding/domain.ypservers.
This is a compromise between the Solaris 2.5 naming of this file
(/var/yp/binding/domain/ypservers and /var/yp/binding/domain/vers)
and traditional NetBSD naming (/var/yp/binding/domain.vers).
Changing to the Solaris naming makes the C library incompatible
with ypbind.  While it's easy to change the C library, I don't feel
right about introducing a gratuitous incompatibility.

The current name (/var/yp/domain/ypservers) conflicts with the name
of the YP map listing slave servers for a domain.

Per discussion w/ Chris Demetriou and Luke Mewburn.
1996-10-02 05:55:05 +00:00
thorpej 2b63ba3bc9 .ypservers -> ypservers, to match Solaris 2.5 1996-10-01 01:37:58 +00:00
thorpej 2b1e73085e Add Luke Mewburn's support for a .ypservers file, which contains a list
of YP servers a client should bind to, mostly verbatim, but slightly
modified for better semantics when nagging servers if a ypset has been
issued.  Default to broadcast mode if no .ypservers file is present.

Documentation changes to match, slightly tweaked by Scott Reynolds and
myself.

Closes PR #1759.
1996-10-01 00:22:27 +00:00
cgd a022251922 clean up Lite2 merge. Only real difference is this now includes <unistd.h>
and new Berkeley SCCS ID.
1996-09-30 19:48:44 +00:00
thorpej 63488d7365 RCS id police. 1996-09-30 18:26:58 +00:00
christos 4a55cd8d26 Use a better fix for vsnprintf on svr4. Apparently, svr4 stdio does not
have _IOSTRG, but it uses _IOREAD to indicate that _doprnt() should print
to the buffer and not to the file stream.
1996-09-30 04:19:55 +00:00
cgd c347bc09f1 Add ECOFF and ELF32/ELF64 support, both written from scratch.
Also, fix things so that on unexpected exit, no temporary file is
left around.
1996-09-29 02:19:55 +00:00
christos 4df3bfced1 Update for newer preen interface. 1996-09-28 19:20:44 +00:00
christos 07461ac8c7 Misc cleanups. 1996-09-28 19:06:07 +00:00
thorpej 8e6bc9ed5f Correct spelling of `successful'.
From Peter Seebach <seebs@solon.com>, PR #2783.
1996-09-28 15:30:08 +00:00
christos c1a92bcb82 This broke when preen.c moved from fsck_ffs to fsck. Update and cleanup. 1996-09-27 23:25:34 +00:00
thorpej f4fab42521 Discard setgid privileges if we don't need them.
From Mike Grupenhoff <kashmir@vanquish.umiacs.umd.edu>, PR #2646.
1996-09-27 02:39:46 +00:00
thorpej 34a7e2eb3d Correct pathname of bootpd and bootpgw.
From Erik Bertelsen <erik@sockdev.uni-c.dk>, PR #2744.
1996-09-27 01:38:55 +00:00
thorpej af1f12dc6e Add a -l flag, which displays the ttl of the returned packet.
From D'Arcy J.M. Cain <darcy@druid.com>, PR #2773.
1996-09-27 01:34:51 +00:00
christos a63ddeefe6 - kill the -c hack. It does not work properly with virtual consoles anyway.
Implement a better scheme where we `find' the login ttys by looking in
  /etc/ttys. Of course this scheme breaks when /etc/ttys changes, but such
  is life.
- some cleanups...
1996-09-26 19:06:37 +00:00
thorpej cb5947b47e - Fix the gecos botch ... sizeof() was incorrectly being applied
to a pointer; use the provided length of buffer instead.

- Patch from Eric - fix a one-byte buffer overflow...

Both changes obtained from FreeBSD.
1996-09-25 22:40:26 +00:00
jtc e1cfddbd32 Copyright has been assigned to The NetBSD Foundation 1996-09-25 00:53:45 +00:00
ghudson e312e1563e Don't canonicalize relative paths to the source tree any more; libkern
and libcompat can handle them as long as they begin with '.'.  If a
relative path doesn't begin with '.', add a "./" before it.
1996-09-23 05:04:23 +00:00
perry d8e1329af8 close out pr 2771, which added a -s ("secure") flag to lpd -- makes
lpd run in a mode where the it listens only to the local unix domain
socket and not to the network. Changes are similar but not identical
to the supplied patches.
1996-09-21 15:57:21 +00:00
explorer 30adb79d7d reduce differences between 8.7.6 and netbsd's version 1996-09-20 14:39:36 +00:00
explorer 3c01a04f97 fix botched conf.c update 1996-09-20 02:03:19 +00:00
explorer 1391818caf resolve conflicts 1996-09-20 02:00:51 +00:00
explorer f5d93398cb import sendmail 8.7.6, which fixes some security holes 1996-09-20 01:21:24 +00:00
cgd cec83b8146 declare the variable "bad", used to hold errors, as a long, so it can
safely be xdr_long()ed.
1996-09-19 04:25:08 +00:00
explorer c00fecf703 Update to 8.7.6 -- this is a well known attack, and in CERT Advisory CA-96.20
This should be in 1.2...
1996-09-19 02:52:09 +00:00
explorer d77cb628d8 fix where tcpdump lives 1996-09-18 02:48:58 +00:00
mycroft 9312574c1f Remove bogus setreuid() hack. 1996-09-17 15:03:01 +00:00
jtk 179716e7b0 bug fix: set fromlen to sizeof(from) 1996-09-17 00:46:31 +00:00
mycroft 6dbfdb34f7 Clear the sin_zero fields explicitly. 1996-09-16 17:22:04 +00:00
jtk 9869120050 add -o and -m options for owner/group and mode of the socket 1996-09-13 01:10:14 +00:00
explorer 4f6bc4307e fix two security holes; recently posted to freebsd-bugs 1996-09-11 23:53:38 +00:00
explorer d3a4eeb1fe Fix some potential buffer overflow problems.
From David Holland <dholland@hcs.harvard.edu>
1996-09-07 21:05:37 +00:00
thorpej cf8907875b Add a missing "break;", pointed out by Chris Demetriou. 1996-09-05 23:29:22 +00:00
christos b33b1aed5c - for portability make sure that we never use "" as a pathname, always convert
it to "."
- include sockio.h if needed to define SIOCGIFCONF (for svr4)
- use POSIX signals and wait macros
- add -S silent flag, so that the client does not print messages unless there
  is something wrong
- use flock or lockf as appropriate
- use fstatfs or fstatvfs to find out if a filesystem is mounted over nfs,
  don't depend on the major() = 255 hack; it only works on legacy systems.
- use gzip -cf to make sure that gzip compresses the file even when the file
  would expand.
- punt on defining vsnprintf if _IOSTRG is not defined; use sprintf...

To compile sup on systems other than NetBSD, you'll need a copy of daemon.c,
vis.c, vis.h and sys/cdefs.h. Maybe we should keep those in the distribution?
1996-09-05 16:50:01 +00:00
mycroft 6a6476be8b Add a `-t' option to update time stamps. 1996-09-05 09:56:48 +00:00
mycroft e73875ce0a Only record sizes for regular files. 1996-09-05 09:24:19 +00:00
mycroft 8441b8f88d Remove interrupt vector handling. This is done dynamically by all ports now. 1996-08-31 21:15:05 +00:00
mycroft ab6ebadde6 Add `source' and `build' directives, and corresponding options, per discussion
on tech-kern.  (See man page.)  Implementation by Greg Hudson.
Also, remove special case for i386 in vector handling, although this code isn't
actually used any more.
1996-08-31 20:58:16 +00:00
thorpej 52110e02f0 RCS id police. 1996-08-30 20:03:54 +00:00
jtk 16cc3ce6e6 fix for consistent comment names 1996-08-30 02:37:32 +00:00
jtk b86b695240 add Advanced Power Management driver
Includes bootstrap support from FreeBSD (Tatsumi HOSOKAWA and <ukai>)
1996-08-25 23:38:57 +00:00
explorer 1e7535e577 Do the timeout in bin/2701 a bit differently. 1996-08-16 21:36:18 +00:00
explorer 4022c55a29 Fix traceroute timeout problems and a printing problem. Closes pr bin/2701 1996-08-16 20:47:31 +00:00
chuck 3745979128 fix broken case statement for "-C", also check to make sure we've got
the proper number of args for -C and give up if not.   fixes yp slave servers.
1996-08-15 22:17:57 +00:00
chuck 6ad546e352 fix printf format (%s -> %d) in yplog debug statement 1996-08-15 21:47:53 +00:00
explorer 0072cebdef Add mailstats man page. From John M. Vinopal. Closes pr bin/2697.
I also mailed this to sendmail-bugs@sendmail.org, in hopes this won't
remain a local mod for long
1996-08-14 07:07:06 +00:00
mycroft b9ae4a5e3f Remove `config-dependent' and `device-driver' flags. 1996-08-12 00:55:54 +00:00
explorer 2ff0386692 allow comments in chat scripts. pr misc/2450 1996-08-10 23:57:22 +00:00
explorer 22018a843b Reference the new sl(4) page 1996-08-10 21:26:42 +00:00
explorer 75f3d0f63c Reference the new ppp(4) page 1996-08-10 21:25:45 +00:00
explorer aa3ab1608c demand.c: fixed a very minor problem where the top of the file claimed
to be auth.c.  pr bin/2539
main.c:  don't try to delete pid file "", since that will end up being
	a directory.  pr bin/2388 and bin/2551
1996-08-10 20:39:35 +00:00
explorer 66917416dd Fix printing over non-root-exported NFS at least.
The problem here is setuid(euid) is used far too much.  Since I removed
many of these calls, and added no new ones, I do not think this weakens
security.  In fact, it quite likely improves it quite a bit, since
access() is called as the real userid, and the file is opened for printing
as the real userid rather than the (setuid-root) effective one.
1996-08-10 20:09:19 +00:00
thorpej 7026126974 Alter the ypservers rule a bit to always make sure that this map
exists.
1996-08-09 21:04:32 +00:00
thorpej e20d4be867 Add a rule for the `ypservers' map (the map containing a list of
slaves for the YP domain).  This map is not built by default, but the
rule exists to make adding slave servers a bit easier.
1996-08-09 20:58:36 +00:00
thorpej 5bf41ee467 Error out if we can't determine the YP domain name to be used for
the RPC.
1996-08-09 20:24:34 +00:00
thorpej 34ca0ef5c8 Use the key, not the val from the datum when reading the `ypservers'
map.  SunOS ypservers maps place the host name in the key and the val,
but HP-UX and NetBSD ypservers maps place the hostname only in the
key, leaving the val empty.  Since there is no clear standard for this map,
best to play it safe.
1996-08-09 20:18:50 +00:00
thorpej 5c49628ed7 Remove hard-coded a /var/yp. 1996-08-09 15:16:30 +00:00
thorpej 012dde15fd Install the Makefiles with mode 0644, not ${BINMODE} 1996-08-09 15:11:47 +00:00
thorpej 236743c464 Make this script a little more sane. 1996-08-09 15:09:04 +00:00
thorpej eabc5cbaf3 Build rpc.yppasswdd and the ypserv suite. 1996-08-09 10:24:00 +00:00
thorpej d3e1a3664e An rpc.yppasswdd implmentation by Mats O Jansson, with some minor
cleanup and a race condition fix by me.
1996-08-09 10:19:48 +00:00
thorpej 60aa689c94 A ypserv implementation, originally written by Mats O Jansson, with
some changes by me, including misc. cleanup, minor bug fixes, and
brand-new access control list code.
1996-08-09 10:14:49 +00:00
ws 35a18894f5 xdr_bool wants a bool_t (which happens to be an int32_t on our port)
and not a char
1996-07-25 18:53:43 +00:00
explorer 86cec79d01 Document the new autonice sysctls 1996-07-17 21:38:46 +00:00
thorpej 401810260a -DDEAMON is no longer used, so remove it from CFLAGS. 1996-07-09 06:36:31 +00:00
thorpej 0d01b20301 Fix a misplaced #endif - if DEBUG wasn't defined, ypbind would never
detach from the controlling tty.
1996-07-09 06:34:12 +00:00
jtc d7eb41bd8e Changed to not use a compiled in table of baud rates. Evidently
there are some PC/Mac oriented devices that use non-standard speeds,
furthermore that's just not the way we do things anymore.

"Bad" baud rates are no longer caught with their own error message,
but the condition will still be diagnosed when the tcsetattr() fails.
1996-06-30 23:55:49 +00:00
jtc fe16013cee Fixed reversed inet_aton condition test; From PR #2579 1996-06-30 22:51:11 +00:00
thorpej 5ab89821de Use sigemptyset() rather than frobbing the sa_mask directly. 1996-06-23 22:08:43 +00:00
christos ebef85c991 Code cleanups.
- check malloc returns
- null terminate strncpy() strings
- use snprintf instead of sprintf
- pass the right arguments to the right functions
- check usage
- use err(3) and warn(3) instead of printfs.
1996-06-22 17:59:52 +00:00
gwr f1d623f2f2 Some corrections regarding boot file and path (suggested by cgd) 1996-06-19 16:08:34 +00:00
gwr 587d8cc1f5 Explain why the HP printers fail and how to work around the problem. 1996-06-19 15:15:40 +00:00
gwr 2a6455604b Minor fixes sent in since bootp-2.4.3 release:
Correct length arg to haddrtoa() in report of duplicate address.
The string value for a generic tag should not include the null.
(Including the null in reponses really annoys HP printers!)
When reading hardware addresses, allow colon separators
(only works if the whole H/W address is in quotes).
1996-06-19 14:52:34 +00:00
christos bb531c94ea General cleanup 1996-06-18 20:32:25 +00:00
briggs 14cd82db79 Minor formatting update. 1996-06-18 17:45:24 +00:00
briggs 3a5ebfc1d7 paths are specified as server:/path and the server and path are both
returned.
1996-06-18 17:30:16 +00:00
cgd cb40dc44d0 two devices instances which are otherwise the same but do not attach
via the same attributes are _not_ the same, and should not be treated
as aliases of each other.
1996-06-17 18:21:35 +00:00
pk fee478451f `/dev/printer' => `/var/run/printer' (PR#2552).
Also, change `.Os 4.2' => `.Os 4.4' (this man page is from 4.4 lite), and
for now, refer to the "BSD 4.3 Line printer manual", because that is what
we now have in lpr/SMM.doc (SMM.doc needs updating too).
1996-06-16 22:36:59 +00:00
thorpej 01c816cc43 Add the `ac' device (auto-changer) to the isscsidev() macro. (I can't
believe that's been missing for so long!)

While I'm here, remove all of the non-hp300 cruft.  The hp300 port is the
only thing that uses config.old(8) now'a'days.  Yes, this is a little
embarassing.
1996-06-10 02:32:20 +00:00
thorpej 5ac89b5cd9 Discard setgid privileges if not reading the running kernel, as suggested
by Mike Grupenhoff <kashmir@umiacs.umd.edu> in PR #2485.

While I'm here, do some long-overdue cleanup, including function prototypes,
and update for modern libkvm interfaces.
1996-06-07 00:44:18 +00:00
mrg 0d3d973470 remove nstest/nsquery references. 1996-06-06 16:32:10 +00:00
is 565cd65355 Sync "iteconfig -h" output with reality and man page.
From Hubert Feyrer, #2444
1996-06-04 16:27:56 +00:00
thorpej 3e82f2c697 Fix typo that can cause ypbind to assume an error when one doesn't
actually exist if the server takes a dive.
1996-06-03 20:44:51 +00:00
thorpej 5bd844ce5d Fix buglet in ypbindproc_domain_2() which caused:
ypbind; sleep 10; ypwhich

to fail (where failure is defined as ypwhich hangs until it gives up,
complaining about not being able to communicate with ypbind).  Failure
mode pointed out by Chris G. Demetriou <cgd@cs.cmu.edu>.
1996-06-03 20:32:55 +00:00
cgd 60da050b90 fix session pointer field width: make it two characters wider.
(The alpha will use all 8 chars.)
NOTE: use of (addr & ~KERNBASE) is VERY bogus.
1996-06-03 19:00:23 +00:00
cgd 6b52790dd2 warnx() already outputs newline; warnings for undefined symbols don't
need an extra one.
1996-06-03 18:50:26 +00:00
pk ef8fa9414c Fix formatting errors.
Also: `PGRP' => 'PGID'; and update `SESS' and `PGID' descriptions.
1996-06-02 21:47:41 +00:00
mrg a16f5e70fa some minor fixes/additions. 1996-05-31 04:07:20 +00:00
cgd 02bcd4f0c5 fix minor bogons (pastos) in last change 1996-05-31 00:29:59 +00:00
cgd 56aad3355b update documentation of what's in the DISC field output by pstat -t 1996-05-31 00:27:19 +00:00
cgd f73f528c42 add case for STRIPDISC to the tty discipline printing code, so that
ttys running Metricom Wireless IP have their discipline printed nicely.
1996-05-31 00:09:38 +00:00
mrg d3124e1c38 remove unnecessary test. 1996-05-30 23:33:16 +00:00
mrg 8493c7c772 pull in <paths.h> for _PATH_VARTMP. 1996-05-30 13:00:09 +00:00
mrg 0fae2c6fbd oops. print pstat -t header. 1996-05-30 08:08:27 +00:00
mrg 956fd533da use new ttylist to get tty stats. 1996-05-30 05:45:45 +00:00
thorpej eb46d3c03e Pull down yp/xdr fixes from release branch. 1996-05-29 20:11:10 +00:00
cgd 78dab63aec update for changes in libpcap function prototypes (u_long -> u_int32_t) 1996-05-26 23:51:40 +00:00
fvdl 9ba6417ed1 Don't try to print an NFS packet over TCP when there's not enough space
for an RPC header (--> garbage && coredumps).
1996-05-26 18:35:14 +00:00
ws 021326698d Fix PR 2462
While I am here do some reformatting, remove hardwired DEV_BSIZE values,
add old fs compatibility (stolen from libsa), and change to new RCSids.
1996-05-24 12:51:23 +00:00
mrg 30cdcc3b6b pull in <unistd.h> to make lseek() work ... 1996-05-24 08:52:41 +00:00
fvdl e5687b1276 Add PRECISE_SYMLINKS define (part of fix in PR #1917) 1996-05-23 22:51:02 +00:00
fvdl 6dacd1c9e2 Oops. Forgot to commit the nfsv2.h -> nfs.h change. 1996-05-23 22:49:53 +00:00
mrg 8849e59abd make some errors more verbose. inspired from pr#1509 1996-05-22 03:50:06 +00:00
mrg 8b5da257b3 CHAP is Challenge.... not Cryptographic.... (pr#2446) 1996-05-22 01:41:51 +00:00
mrg 64bd9cec8b don't use gets(). pr#2254 1996-05-21 13:00:31 +00:00
mrg 4a908fb362 use ABRT not IOT for "ndc stats". pr#2241 1996-05-21 12:53:48 +00:00
mrg 290aca3136 use LOG_INFO to say NIS isn't running. 1996-05-21 11:03:14 +00:00
fvdl d65ddbd4e0 Grok NFSv3 packets. Needs a bit of work but is ok for now. Enable dumping
of NFS packets over TCP. Upgrade to 3.0.4 while at it. 3.0.4 fixes previous
fix made to util.c too; 'official' fix applied instead (very minor difference).

Fixes to be sent to maintainers RSN.
1996-05-20 00:41:00 +00:00
is 0bc8c28078 Fix typo in last commit. 1996-05-19 20:17:42 +00:00
is 83f62ea033 Screenblank support:
- new fbio.h in arch/amiga/include, defining only FBIOSVIDEO
- add an IOCTL translation to arch/amiga/dev/grf.c
- add screenblank to the list of specials to build on amiga.
1996-05-19 20:06:02 +00:00
veego 26003d1ce4 print also the wrong mode number 1996-05-19 09:02:44 +00:00
cgd b165a43791 update comment for KERNTEXTOFF -> kerntextoff changes. 1996-05-16 22:48:09 +00:00
gwr 36c3560196 Use the symbol "_kernel_text" if it exists, instead of KERNTEXTOFF.
This allows /usr/sbin/kvm_mkdb to be shared among m68k machines.
1996-05-16 21:17:21 +00:00
thorpej 7356f2c747 Fix think-o in the code that deals with multiple field names passed
on the command line.
1996-05-16 16:00:55 +00:00
jtc a65aba5bdb Updated to use new password file functions in libutil.
From Greg Hudson <ghudson@MIT.EDU>.
1996-05-15 23:19:09 +00:00
mrg f485020d84 use BINDIR from ../../Makefile.inc 1996-05-14 13:55:47 +00:00
thorpej b2fd6338ed RCS id police. 1996-05-13 02:43:35 +00:00
christos 0e44adb42e Fix PR/2395: Segmentation fault de-referencing unitialized fp. 1996-05-12 15:35:09 +00:00
mycroft cc08bc1c86 Correct a thinko in that last. Make sure the programs are built at compile time,
not install time.
1996-05-11 14:46:39 +00:00
mycroft f012e6700f Fix bogons that caused this to not build with NOMAN set. From Luke Mewburn. 1996-05-11 14:36:24 +00:00
mycroft d779242948 Use the correct time zone info; not what the kernel says. (Forward to tcpdump
maintainers.)
1996-05-11 13:18:00 +00:00
thorpej 1eaf5ee379 New userland code to read the statistics kept by the NetBSD generic
disk framework, from John M. Vinopal <banshee@gabriella.resort.com>
1996-05-10 23:16:30 +00:00
christos d17eef343e Fix PR/2348: Support for NIS servers without YP_ORDER 1996-05-09 22:57:57 +00:00
christos 8627914b3f Fix PR/2371, a spelling error and missing -s from the description. 1996-05-06 16:36:44 +00:00
christos 134727973b Fix PR/2373 1996-05-06 13:49:16 +00:00
mrg ac90bb0fa5 merge sendmail 8.7.5 1996-05-04 14:13:20 +00:00
cgd eeee976759 handle the VISTTY vnode flag with the same letter ('I') that BSDI used.
Update the documentation of the vnode flags so that it lists only (and all)
of the flags understood by the program.  (The documentation is likely in need
of more cleanup.)
1996-05-02 00:13:08 +00:00
cgd dc6fe8f1a8 second argument to xdr_long must be a "long *", which means that the
'out' arg to svc_sendreply must point to a long if outproc is
xdr_long.  It was pointing to an 'int', and that was crashing on the
alpha, due to bad alignment.
1996-05-01 18:10:26 +00:00
pk ca9e50f43b Don't get distracted into kernel space.
Understand MNT_ROOTFS flag.
1996-04-30 00:41:51 +00:00
jtc 678bd1b2eb Use XS, not XC, flags when setting tty flags.
From Brook Milligan <brook@trillium.nmsu.edu>.
1996-04-30 00:07:00 +00:00
christos 5d0cf0b1fa - Fixed core-dump when key has no netgroups
- added -d flag for debugging.
- moved external functions to netgroup.h
1996-04-27 18:54:31 +00:00
gwr d87f04d7a2 Correct the "Vulnerabilities" announced in CERT advisory CA-96.08. 1996-04-25 01:00:12 +00:00
mrg d28f8743af Stylistic changes. 1996-04-24 14:54:06 +00:00
cgd 03ba0d2233 if a variable is a u_int32_t, it may never compare equally to -1L on
some machines (because on those (64-bit) machines, -1L is
0xffffffffffffffff, but a u_int32_t will never be sign extended).
Compare to 0xffffffff; that's what was really meant, anyway.
1996-04-09 05:29:25 +00:00
jtc 54e0c861ec Add to DPADD for each library in LDADD; Reported by Mike Long <mike.long@analog.com> in PR #2301. 1996-04-08 21:03:06 +00:00
jtc 58fae9f6e7 Add proper punctuation; Reported by Mike Long <mike.long@analog.com> in PR #2300. 1996-04-08 20:55:17 +00:00
cgd e9e09ebaca use fixed-size types where appropriate, to make timed work on 64-bit
machines (Alpha).  fixed sized types, not 'timeval's should go over
the net, and the stuff that goes over the net can't necessarily be
passed directly to functions that expect timevals.
1996-04-06 01:53:29 +00:00
cgd 9b70f26fe8 deal with the fact that fsck has moved 1996-04-05 04:17:54 +00:00
mrg 3fd9d3347e use local copy of resolver, with -DDEBUG. fixes pr#2275 (ken hornstein) 1996-03-31 13:55:34 +00:00
mark d907c07635 Use an integer instead of a char to store the getopt() return value in
order to match the function prototype and to work with compilers that
default to unsigned chars.
Compare the getopt() return value with -1 instead of EOF.
1996-03-30 23:53:51 +00:00
mark 3e43cc032f Use an integer instead of a char to store the getopt() return value in
order to match the function prototype and to work with compilers that
default to unsigned chars.
1996-03-30 23:51:42 +00:00
mark a8f4abc7d9 Use an integer instead of a char to store the getopt() return value in
order to match the function prototype and to work with compilers that
default to unsigned chars.
Compare the getopt() return value with -1 instead of EOF.
1996-03-30 23:49:48 +00:00
mark 630dc09e4b Use an integer instead of a char to store the getopt() return value in
order to match the prototype.
Compare the getopt() return value with -1 instead of EOF.
1996-03-30 23:46:04 +00:00
mark 1fe734c654 Use an integer instead of a char to store the getopt() return value in
order to work with compilers that default to unsigned chars.
Compare the getopt() return value with -1 instead of EOF.
1996-03-30 23:42:33 +00:00
cgd efa731795e apply patch from PR 2085: don't treat XIDs and domain mapping pointers
interchangeably, because this is fragile and doesn't work at all on
the alpha.  (get rid of the old hack used on the alpha, and fix RCS
Ids, too.)
1996-03-30 22:49:08 +00:00
mark 036d834ee8 Use an integer instead of a char for the getopt() return value in order
to work with compilers that use unsigned chars.
Compare the getopt() return value with -1 instead of EOF.
1996-03-30 22:34:25 +00:00
paulus e170d85c0d Minor bug-fixes to pppd; add -ccp option to disable CCP negotiation
if desired; delete interface addresses on exit.
1996-03-28 02:50:57 +00:00
paulus e8f5c6972e Fix problem of printing large numbers (as deltas) when the kernel
ppp stats get reset.
1996-03-28 02:42:29 +00:00
scottr 6bd0c1ff9b In link_down(), give a second arg to the close function. Fixes
a SEGV when pppd closes the link.
1996-03-23 05:43:11 +00:00
jtc cac62b2d65 Be pedantic, main() returns int in C. 1996-03-21 17:56:15 +00:00
jtc 8707bd0e20 Added -I. and -I${.CURDIR} to CFLAGS. 1996-03-19 03:03:04 +00:00
thorpej 280bbabcaa RCS id police. 1996-03-18 22:48:34 +00:00
mrg 25d96569e7 CLEANFILES=y.tab.h grammar.c scanner.c 1996-03-18 09:19:27 +00:00
cgd 315f091f18 fix (apparently long-standing) bug which prevented devices from attaching
to interface attributes on a device other than the interface attribute that
the device was named the same as, if that one was there.
1996-03-17 21:12:03 +00:00
christos 6b2a32d7dc Declare the mountroot functions and variables fully prototyped. 1996-03-17 20:36:25 +00:00
cgd 3ac7667c57 add BSDI-style expression support to optional file specifiers. Code mostly
taken from the parts of BSDI's 'config' which are freely-distributable
(under the LBL/UC Regents license), and adjusted to fit into our version.
1996-03-17 13:18:15 +00:00
cgd 50b3b61ea3 simplify nvlist creation slightly; change newnv() to take another arg: next 1996-03-17 11:50:09 +00:00
cgd 2dd7a7984c Fix PR 2218. As noted (both in mail from me included in the PR, and
in XXX-marked comments in the recent attachment changes), this was a
long-standing bug in config.

The problem: If a device is attached to a device via an attribute exported
by that device (i.e. foo* at bar0, where 'bar' exports an attribute that
'foo' attaches to), but the device attached to is not present in the
kernel configuration file, AND another device which exports an attribute
that 'foo' attaches to _is_ present (e.g. a device baz0, if one could
specify 'foo0 at baz0'), then: the configuration file will (incorrectly)
be accepted by config, and the resulting ioconf.c will include a bogus
cfdata entry for the device (in the example, 'foo*').  This typically
causes the resulting kernel to crash during autoconfiguration.

The solution: Be much more careful about keeping track of where a device
was attached, and, in particular, if a device was attached to another device,
_always_ keep track of what device it was attached to.  Then, when
cross-checking, if the attached-to device isn't present, give up and do not
check attributes.  Also, document the process much more thoroughly.
1996-03-17 07:05:50 +00:00
cgd 9c4f9d2daa spaces vs. tabs, spaces/tabs at EOL bogons. 1996-03-17 06:29:19 +00:00
cgd 95f205f10c fix bogon in device attachment name checking. the same rules should be
used for checking device attachment names as are used for device name
checking, because device names can be used as attachment names.  (Actually,
less strict rules could be used, but there's little point in that.)  This
was not a mistake of design, this was just a mistake; i misunderstood
the devbase name checking code.
1996-03-17 06:23:18 +00:00
cgd 9c70ac56a8 fix another just-discovered long-standing bug: foo0 at bar* is not legal
syntax.  (devices which specify 'at' can't be starred.  they can be
wildcarded, with ?, but not starred.)
1996-03-17 05:19:33 +00:00
cgd dfbb6d0884 fix a bug where definitions to be placed in headers wouldn't be
right/consistent.  If you had something like:

file	file.c		foo bar baz needs-flag

and any one of foo, bar, or baz caused it to be brought into the compile,
in the header you'd end up with:

#define NFOO	1
#define NBAR	1
#define NBAZ	1

even if only one of them were selected.  Other headers might have had a
different (inconsistent) set of definitions, depending on whether any of
their components were included, and any files necessary for the unspecified
options would not actually be present in the Makefile files list.  The
correct behaviour for the example above if only 'foo' is selected by
the config file is:

#define NFOO	1
#define NBAR	0
#define NBAZ	0

which is what config now does.  This bug has been present for a while.
(I don't know for sure that it was present in 4.4-Lite2, but from looking
at the Lite2 config sources, it appears to be there.)
1996-03-17 03:21:21 +00:00
thorpej cb6211e540 New device attachment scheme:
- split softc size and match/attach out from cfdriver into
	  a new struct cfattach.

	- new "attach" directive for files.*.  May specify the name of
	  the cfattach structure, so that devices may be easily attached
	  to parents with different autoconfiguration semantics.
1996-03-17 02:08:22 +00:00
pk cdd1abc966 Fix arguments to a printf() (PR#2219). 1996-03-16 12:37:45 +00:00
paulus 0a659c65f3 Files added to pppd to support demand-dialling and packet filtering. 1996-03-15 03:09:08 +00:00
paulus 44c91c8e53 Several enhancements and bug-fixes to the PPP daemon, including new
support for demand dialling, packet filtering, idle timeout, multiple
packet compression schemes (including PPP Deflate), and a limit on
connect time.
1996-03-15 03:03:34 +00:00
paulus 0b316ef301 Cleaned up the output of pppstats a bit, and changed the compression
ratio report to a more intuitive measure (i.e. uncomp / comp).
Corrected the man page.
1996-03-15 02:47:18 +00:00
christos 7758c3b701 Fix PR/2126; recognize mount option readdirsize. In addition, if rsize is
specified and readdirsize is not, make readdirsize use the value of rsize.
1996-03-06 00:21:21 +00:00
thorpej c5f7cf3a9e RCS id police. 1996-03-03 17:21:25 +00:00
veego 762a972b92 Added missing clean rules for grfconfig and videomode (amiga-port) 1996-03-01 19:45:13 +00:00
thorpej 1d94921b5e Copyright assigned to The NetBSD Foundation. 1996-02-28 01:25:08 +00:00
thorpej c479d69ad9 Copyright assigned to The NetBSD Foundation. 1996-02-28 01:13:20 +00:00
mrg a484d585d1 merge sendmail 8.7.4 1996-02-24 01:00:12 +00:00
cgd 7d351bb3f4 fix thinkos in emitobjs() and emitfiles() that would cause empty files
lists to not have a newline properly emitted.  (It was emitting a
newline only if the line position was != 7.  However, the only time the
line position was 7 was right after the initial variable assignment
string (e.g. "OBJS=\t") was printed.)
1996-02-23 00:39:42 +00:00
mycroft 0ffcbb494d Always swap most of the fields when updating a config file entry; otherwise
we can get weird lossage when deleting a field (e.g. the group).
1996-02-22 11:14:41 +00:00
thorpej e8c79c9ef1 RCS id police. 1996-02-22 06:59:15 +00:00
cgd 3afcb7a849 fix for new NFS include files. (checked with fvdl.) 1996-02-21 02:27:57 +00:00
fvdl baef289adb Sync with Lite2. 1996-02-20 16:06:55 +00:00
christos c7ce104884 Fix amd to compile and work after the NFSv3 commit.
This fix is a kludge:
	- make the nfs filehandle conditional on v2 and v3
	- set the nfs_args fields for the version and the
	  file handle size.
	- make the file handle pointer type void * so that
	  it works on both nfsv2 and nfsv3
	- fix the mountd rpc results parsing.

A proper fix should:
	- register an nfsv3 server for amd.
	- make amd try v2/v3 mounts exactly like mount_nfs does.
	- understand the nfsv3 mount options.
	- cleanup the #undef's in the protocol header.

Also in order to auto-recognize v2 vs v3, I moved the inclusion of
<sys/mount.h> to am.h.
1996-02-19 20:57:40 +00:00
mycroft d6864c438f Add #includes so this will compile. 1996-02-18 23:19:20 +00:00
mycroft e174025c48 Reorder #includes. 1996-02-18 23:18:56 +00:00
fvdl f916611f33 Bring in NFSv3 code by Rick Macklem (from Lite2). 1996-02-18 11:58:24 +00:00
fvdl 322cd1a032 Bring in NFSv3 code by Rick Macklem (from Lite2) 1996-02-18 11:57:50 +00:00
scottr de8fcf0996 Spelling correction 1996-02-13 23:08:24 +00:00
neil fee47471be Fixed Typo. Closes PR 2001. Keep them coming! 1996-02-11 16:34:23 +00:00
christos 1f4499519b fix pr/1226: allow rdate to use adjtime(2) 1996-02-10 18:44:54 +00:00
jtc b4c556ca62 Added explicit dependencies on yacc generated files. From Luke Mewburn
<lukem@supp.cpr.itg.telecom.com.au>.  Fixes PR #2032.
1996-02-06 18:30:58 +00:00
jtc 0f9ea1b77e Fix dangling 'The'; From Mike Long <mike.long@analog.com> 1996-02-05 06:11:16 +00:00
perry 71e2e03ced Added code to implement mode in which syslogd listens only to unix
domain socket (triggered by -s option) and documentation for
same. This closes pr 1761, although the code is slightly different.
1996-02-05 02:30:21 +00:00
mrg 9f1b8faa72 BINDIR=/usr/libexec (from jonathan) 1996-02-04 12:02:12 +00:00
scottr 38cd25875c Sleep after pulling DTR low when disconnecting. The ensures that the
modem has enough time for a reset or hangup should the line be marked
local, or a non-standard getty pulls DTR high again immediately.
1996-02-02 20:24:54 +00:00
scottr 6a334da2bd Be explicit about the fact that ip-up and ip-down are executed with
a null environment.  Closes PR #1866.
1996-02-02 20:17:53 +00:00
mrg 32c0edb470 update to bind 4.9.3-p1. 1996-02-02 15:30:57 +00:00
mrg 12e310738e update to bind 4.9.3-p1. 1996-02-02 15:29:24 +00:00
mrg c6357b052a update to bind 4.9.3-p1. 1996-02-02 15:29:21 +00:00
mrg 40405c0ec2 update to bind 4.9.3-p1. 1996-02-02 15:29:07 +00:00
mrg 03b98dd9c2 update to bind 4.9.3-p1. 1996-02-02 15:29:03 +00:00
mrg 631c443645 update to bind 4.9.3-p1. 1996-02-02 15:25:33 +00:00
mrg bcbd476ac7 these become subdirectories in the new bind 1996-02-02 14:15:59 +00:00
mycroft cbbb28608c If __FreeBSD__, don't swap the type field in the Ethernet II header. 1996-02-01 21:57:00 +00:00