Commit Graph

1152 Commits

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