Commit Graph

1416 Commits

Author SHA1 Message Date
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