Commit Graph

8371 Commits

Author SHA1 Message Date
dg
4c12c11b83 From Bruce Evans:
I ran into another manifestation of the problem reported in PR 211 and
fixed it. Try this:

as non-root:
	cd /tmp; mkdir x y x/z
as root:
	chown root /tmp/x/z
as non-root:
	cd /tmp/x; mv z ../y		# EACCES as expected
as root:
	cd /tmp/x; mv z ../y		# EINVAL NOT as expected

This is because ufs_rename() sets IN_RENAME and fails to clear it.

Reviewed by:	davidg
Submitted by:	bde
1995-05-15 07:31:09 +00:00
gpalmer
249601e430 Clean up the matcd entry so it deletes the *matcdl* entries before trying
to create new ones.

Reviewed by:	davidg, rgrimes
1995-05-15 06:55:18 +00:00
phk
ad0a2407f5 Create_Chunk_DWIM will not allocate anything in the last cylinder of a
CHUNK_BAD144 slice.
Also mknod the 'c' partition for freebsd slices, so bad144(8) will have
something to work on.
1995-05-15 00:58:25 +00:00
ache
c4c737dae7 End of listcan be not marked, fix it
Submitted by: Kai Vorma <vode@snakemail.hut.fi>
1995-05-15 00:03:32 +00:00
ache
a83afb990f Fix xterm entry by fallback to vt220 entry,
also compact VT* is/rs capabilities to prevent overflowing
1995-05-14 23:32:53 +00:00
ache
5999b41035 Fix false backspace reporting 1995-05-14 22:46:15 +00:00
ache
d015557a82 Parse ^? correctly now 1995-05-14 22:33:52 +00:00
ache
471b2e6d7b Parse ^? now, our termcap use it and some termcaps from other
systems use it too
1995-05-14 22:29:13 +00:00
dg
b6c456d4dd Added apersand constraint to make sure that the source and destination
registers aren't combined.

Reviewed by:	Bruce Evans and David Greenman
Submitted by:	John Dyson
1995-05-14 22:25:11 +00:00
rgrimes
eb9f4c619d Fix 3 printf's that had the wrong number of arguments.
Submitted by:	gibbs
1995-05-14 19:19:55 +00:00
nate
5d6f567956 Prototype for madvise() is missing from sys/mman.h
Submitted by:	Kai Vorma <vode@snakemail.hut.fi>
1995-05-14 19:19:07 +00:00
ache
4730235f67 Fix error returning address of local array 1995-05-14 19:14:53 +00:00
ache
e2ae692e16 Add dumpon 1995-05-14 18:43:25 +00:00
rgrimes
1e7f876bc0 This patch teaches info to read gzipped files (emacs info already
works) so one can gzip files in /usr/share/info and save a few
megabytes diskspace.

Submitted by:	Kai Vorma <vode@snakemail.hut.fi>
1995-05-14 17:54:44 +00:00
ache
492dcc2fc3 Install uuconv/uuchk with right permissions 1995-05-14 17:01:07 +00:00
gpalmer
58025d3c03 tcpdump is in (1) not (l) 1995-05-14 15:21:36 +00:00
bde
ed8adcf9bd Fix declaration of palette[] so that fade saver doesn't cause panics. 1995-05-14 12:54:30 +00:00
asami
e94bdaa5da Added "doc" to the list of subdirs, so that amdref.info* will get
installed in /usr/share/info...closes my own PR, docs/408 (aaah now
I need to figure out how to "close" PRs... ;)....
1995-05-14 11:24:41 +00:00
dg
dbe6eb85b5 After carefully reading three reference documents, and analyzing
the 802.3 frames generated by the DC21040 (which does automatic padding
of less-than-minimum frames) and the frames generated by the 'ed'
driver, I've found that there is indeed a bug in the size of "ETHER_MIN_LEN"
as reported by several people, John Hay being the most recent. The driver
was actually setting the length to 6+6+2+50 (64 bytes), which when adding
in the CRC (which is automatically appended to the frame and not included
in the length), the minimum frame is 4 bytes larger than it is supposed to
be. All of this is confirmed by tcpdump showing 50 bytes of data for
minimum frames from the 'ed' cards and 46 bytes from 'de' cards. This
analysis has also revealed that there is garbage in the un-filled in
portion at the end of the minimum frames from the 'ed' driver; I don't
plan to fix this.
1995-05-14 11:01:20 +00:00
rgrimes
9d5544b3d4 printf -> fprintf when you use a fd arg :-), oops! 1995-05-14 08:40:37 +00:00
rgrimes
f0c0a8b7ce Don't add a slash to the end of _PATH_DEV, it already has one.
Print a final newline to stderr after the scan finishes, only do it
at the right place in this version, 1.1.5.1 caused an extra newline
if you where not running -s, and it went to stdout instead of stderr.

Obtained from:	FreeBSD 1.1.5.1
1995-05-14 08:19:08 +00:00
rgrimes
08e7f4be2f Add bad144 -s option to scan entire slice of disk.
Obtained from:	FreeBSD 1.1.5.1 (Just the scan function itself was added)
1995-05-14 07:05:47 +00:00
phk
d8f95d4252 Reflect the fact that we do not swap on the first <dmmax> blocks of a
swapdev, to protect disklabels and other such magic stuff.
1995-05-14 03:37:40 +00:00
dg
cad5d541a0 Updated to work with Poul-Henning's recent kernel changes in the swap
device table layout...basically, don't output the cruft anymore - it
is now dynamic.

Reviewed by:	John Dyson and David Greenman
Submitted by:	Poul-Henning Kamp
1995-05-14 03:10:58 +00:00
dg
05c46323f6 Updated to work with Poul-Henning's recent changes to the swap device
table.

Reviewed by:	John Dyson and David Greenman
Submitted by:	Poul-Henning Kamp
1995-05-14 03:08:35 +00:00
dg
b649d7b9c7 Changed swap partition handling/allocation so that it doesn't
require specific partitions be mentioned in the kernel config
file ("swap on foo" is now obsolete).

From Poul-Henning:

The visible effect is this:

As default, unless
        options "NSWAPDEV=23"
is in your config, you will have four swap-devices.
You can swapon(2) any block device you feel like, it doesn't have
to be in the kernel config.

There is a performance/resource win available by getting the NSWAPDEV right
(but only if you have just one swap-device ??), but using that as default
would be too restrictive.

The invisible effect is that:

Swap-handling disappears from the $arch part of the kernel.
It gets a lot simpler (-145 lines) and cleaner.

Reviewed by:	John Dyson, David Greenman
Submitted by:	Poul-Henning Kamp, with minor changes by me.
1995-05-14 03:00:10 +00:00
rgrimes
8f5311b617 mlink bad144.8 to man8/bad144.8 so we can find the manual page.
Use /${MACHINE} for MANSUBDIR instead of hardcoded /i386

Obtained from:	FreeBSD 1.1.5.1
1995-05-14 02:30:19 +00:00
dg
9dfe5706e1 Take out special error message for EINVAL...we really do want it to be
"invalid argument".
1995-05-14 02:18:18 +00:00
asami
e8007e4e09 Don't conditionalize fake-pkg on NO_PACKAGE. 1995-05-13 23:37:16 +00:00
ache
cf6b207e9d Fix FtpPasv to not return address of local variable, close PR 399
Submitted by: John Capo <jc@irbs.com>
1995-05-13 22:09:52 +00:00
ache
87576e5822 Fix manpage lies about -P 1995-05-13 22:06:12 +00:00
rgrimes
b9f7f0bc61 Remove XXX comment that I had moved to netstart and forgot to remove from
here.
1995-05-13 20:16:11 +00:00
rgrimes
a34e9f9422 Very minor rework to eliminate useage of - operator by checking for
existance of ${CHROOTDIR}.

Remove -k option from make install for building chroot tree, makes it
error out early if you forgot to populate the pre-chroot obj tree.

Reviewed by:	phk
1995-05-13 19:51:57 +00:00
phk
33b9a83ec8 remove swapinfo. 1995-05-13 17:27:10 +00:00
phk
c542ac95d3 Make pstat act like swapinfo if so invoked. 1995-05-13 17:25:23 +00:00
ache
8eb426e095 Change ln -sf to rm -f and ln -s, first one work incorrectly
for directories when called second time
1995-05-13 16:58:37 +00:00
ache
c44bccb7ff Update other Makefiles to reflect uuconv/uuchk install place change 1995-05-13 12:57:44 +00:00
ache
2177a2ea4f Install uuconv/uuchk to /usr/sbin 1995-05-13 12:30:17 +00:00
asami
f6a6350e67 Add "include". 1995-05-13 12:07:08 +00:00
asami
335c8ec2f6 Add FORCE_PACKAGE, if this is defined, NO_PACKAGE will be turned off.
Ports for which we can't build packages should define NO_PACKAGE but
still prepare pkg/* files.  The user who really wants a package and
clear of the legal problems can say FORCE_PACKAGE from the command line
to build a package anyway.
1995-05-13 05:37:45 +00:00
rgrimes
3d871dc5c6 Submitted by: jkh
Build lib/libncurses and lib/libtermcap early in the libraries: target
as other libraries depend on them.
1995-05-13 03:34:23 +00:00
jkh
5fe2640375 "1 easy fix in 10 excrutiating steps"
A phone call from Manfred quickly pointed up the fact that I got the conflict
check backwards.  NOW we implement the conflict checking correctly!  Wheesh!
1995-05-13 00:09:38 +00:00
dg
80e3b4e2e2 Fix force flag: It is not a "negative" flag. Add MNT_FORCE to the acceptable
options for UFS (which fixes another bug).
1995-05-12 23:39:15 +00:00
dg
e6b57c33e6 Only use card's soft-configured irq if no irq was specified in the kernel
config file. This should fix a number of complaints regarding the auto
detection behavior.
1995-05-12 22:39:40 +00:00
dg
5e587399a6 pread/pwrite() should be static.
Submitted by:	sef
1995-05-12 21:39:48 +00:00
ache
1b3d9fbb64 Add Moscow and Kiev 1995-05-12 20:13:19 +00:00
ache
2810d3d8da Fix getsockopt(IP_ACCT_*) to not panic kernel
Submitted by: Bill Fenner <fenner@parc.xerox.com>
1995-05-12 20:00:21 +00:00
ache
9c36abb627 Add missing include 1995-05-12 19:21:46 +00:00
wollman
448bf32842 The death of `options NODUMP'. Now the dump area can be dynamically
configured (and unconfigured) on the fly.  A sysctl(3) MIB variable is
provided to inspect and modify the dump device setting.
1995-05-12 19:17:31 +00:00
wollman
a0ad6a34d3 Don't automatically default dumps to be on a swap device; if the user
wants dumps, he can either configure it explicitly (`dumps on' whatever) or
use the dumpon(8) utility.
1995-05-12 19:12:44 +00:00