pst [Mon, 5 Aug 1996 00:50:02 +0000 (00:50 +0000)]
Gratuitous whitespace change so that I can commit the source of the recent
buffer overflow patch.
Reviewed by: pst
Submitted by: Dave Andersen <angio@aros.net>
pst [Mon, 5 Aug 1996 00:44:59 +0000 (00:44 +0000)]
Bring xditview back from the grave (part 2).
Fix things so it *really* won't compile if the environment isn't there.
This commit has been sitting in my to-do list for 2 months. Xditview
should never have been half-removed, so now it's back with a vengance
because we want to keep groff intact as a package.
pst [Mon, 5 Aug 1996 00:21:15 +0000 (00:21 +0000)]
Convert STATS and PARANOID to run-time options.
Document the new -R (relax paranoia) option.
From NetBSD/Lite2: code and man page cleanups, Kerberos IV hooks
(relax, we're still exportable), and /etc/ftpchroot feature for
semi-anonymous accounts
pst [Sun, 4 Aug 1996 22:40:35 +0000 (22:40 +0000)]
If PARANOID is set, do not allow PORT commands to remote ports less than 1024
or addresses other than the requestor's address. This violates the FTP
protocol (hmm...as I write this, I'm going to change this to a run-time var.)
Require login before PASV and RNTO commands.
Close unused PASV ports so they don't hang around forever.
Do not allow file overwrites via rename or STOR when anonymous
(suspenders).
Clean up buffer utilization.
My code, but heavily inspired by Hobbit's changes to wu-ftpd as pointed out
by Mike Prettejohn and Kit Knox.
wpaul [Sun, 4 Aug 1996 22:13:05 +0000 (22:13 +0000)]
Fix a couple of bogons. The first two were brought to my attention
by Peter Wemm:
- In yppasswdproc_update_1_svc(), I wasn't paying attention and put
a couple of lines of code _after_ a return() instead of before.
(*blush*)
- The removal of certain temp files didn't always work (this showed
up mostly if you were using /etc/master.passwd as your NIS passwd
template instead of /var/yp/master.passwd). This is because the
whole temp file creation mechanism I was using was tragically
broken (you can't rename across filesystems).
This problem I found myself:
- If you have a very large password database (30,000 or more entries),
there can be a delay of several seconds while pw_copy() copies the
ASCII template file and subsitutes in the modified/new entry. During
this time, the clnt_udp() code in the RPC library may get impatient
and retry its request. This will get queued at the server and be
treated as a second request. By then the password change will have
been completed and the second request will fail (the old password is
no longer valid). To attempt to fix this, we save the IP address and
port of each request and ignore any subsequent requests from the
same IP and same port that arrive within five minutes of each other.
jraynard [Sun, 4 Aug 1996 14:14:05 +0000 (14:14 +0000)]
* Added lots more introductory material.
* Removed material that was duplicated in the installation instructions.
* Updated the address for an Australian supplier of CDROMs (supplied by
David Henshaw via Martin Butkus).
* Give more info about how to get started with the installation.
* Update references to 2.1.0 as "the latest release".
* Added pointer to a Web page explaining how to have multiple operating
systems on the same machine.
* Moved question about running DOS binaries out of the installation section.
* Added question re boot floppy not loading properly.
* Added explanation of disk geometry, moved things around so that "please
refer to the previous question" no longer sends the reader with a
non-booting system to a PLIP cable wiring diagram!
* Mention the time/space requirements for making a custom install floppy.
* Acknowledge a couple of people whose answers I've adapted in various
places (and who deserve credit anyway for answering so many questions!)
phk [Sun, 4 Aug 1996 10:54:13 +0000 (10:54 +0000)]
Add a callback pointer to the interfaces "init" routine.
Add ether_ioctl() which can take care of the SIOC[SG]IFADDR cases for
most (ethernet) drivers.
chuckr [Sat, 3 Aug 1996 19:51:06 +0000 (19:51 +0000)]
Add Mark Huizer <xaa@stack.urc.tue.nl> for the kaffe port.
I forgot his name whilst typing in the commit message on the
port, and he wasn't in the handbook (I guessed wrong, using Marc
Van Kempen, sorry to both). Now, his name is in here and I
won't get mixed up again!
jkh [Sat, 3 Aug 1996 13:00:35 +0000 (13:00 +0000)]
The bootstrap target in src/Makefile has the wrong order for lex/tsort
because lex has a library (libln.a) and bsd.lib.mk has been modified to use
'tsort -q'. Tsort has not been build yet...
tsort should be before lex. [Whoops! Thanks! -jkh]
jkh [Sat, 3 Aug 1996 11:58:54 +0000 (11:58 +0000)]
1. Add verbose flag to ftp_login()
2. Remove pkg_* support - tcl7.5's channel interface has rendered this
almost entirely unsupportable (at least in the way it currently stands). Submitted-By: jmz & jkh
bde [Fri, 2 Aug 1996 21:16:13 +0000 (21:16 +0000)]
Eliminated i586_ctr_rate. Use i586_ctr_freq instead.
Changed i586_ctr_bias from long long to u_int. Only the low 32 bits
are used now that microtime uses a multiplication to do the scaling.
Previously the high 32 bits had to match those of rdtsc() to prevent
overflow traps and invalid timeval adjustments.
peter [Fri, 2 Aug 1996 06:14:25 +0000 (06:14 +0000)]
dscheck() was returning without setting bp->b_error when given a negative
block number.. (assuming Debugger() returned). The disk drivers assume
that dscheck() sets both error markers (bp->b_error and set B_ERROR in
bp->b_flags) if it fails.
peter [Fri, 2 Aug 1996 06:10:49 +0000 (06:10 +0000)]
The sd and od drivers didn't check for negative block numbers (like wd.c
does) before calling dscheck(). dscheck() doesn't appreciate this and
calls Debugger() and returns without setting bp->b_error.
This can happen when there is a casting error and offsets > 2G are
converted to negative off_t's in the disk tools. (dumpfs used to do this).
jkh [Fri, 2 Aug 1996 04:50:44 +0000 (04:50 +0000)]
Close PR#1455. In a couple of weeks, I'll change bsd.lib.mk to use
tsort -q as well - I don't feel like adding tsort as Yet Another Item to the
bootstrap target.
jkh [Thu, 1 Aug 1996 10:58:54 +0000 (10:58 +0000)]
Close PR#1542. Don't just assume 24 lines, get the tty size.
Some things may still display text on the 24th line, but that's because
they've always been screens designed to fit into a minimal real-estate
and have hardwired assumptions about the dimensions. They'll be a little
harder to make dynamic.
Converted timer/run queues to 4.4BSD queue style. Removed old and unused
sleep(). Implemented wakeup_one() which may be used in the future to combat
the "thundering herd" problem for some special cases.
Some breakeages sneaked in. This fixes them.
(this relates to a name change in a library that was not properly backed
up by the author)
Reported by: too mant :-(
Add better support for retrieving management information from network
interfaces. This creates two new tables in the net.link.generic branch
of the MIB; one contains (essentially) `ifdata' structures, and the other
contains a blob provided by the interface (and presumably used to
implement link-layer-specific MIB variables). A number of things
have been moved around in the `ifnet' and `ifdata' structures, so
NEW VERSIONS OF ifconfig(8) AND routed(8) ARE REQUIRED. (A simple
recompile is all that's necessary.)
I have a sample program which uses this interface for those interested
in making use of it.
Fix a bug under time's "-l" option. The values reported for average
shared memory size, average unshared data size, and average unshared
stack size were too high by a factor of 128/100, because the program
used a hard-coded hz value of 100. The correct value is the frequency
of the statistics clock, currently 128. The program now uses sysctl
to get the stathz value from the kernel.