Jordan K. Hubbard
365a44db75
MF22: pst's changes.
...
Submitted by: pst
1997-09-16 10:14:23 +00:00
Bruce Evans
0e6021ad31
Reject attempts to set an in-core label which says that the "disk"
...
or a partition is larger than the slice.
Now `disklabel -Brw sdX auto' should fail properly on sliced disks
without partition of type 165, e.g., on zip disks with the factory
default formatting. Previously it set a bogus in-core label for
the compatibility slice and used this to corrupt the MBR (the slice
has offset 0 and size 0, but setting the label in effect corrupted
its size to nonzero).
`disklabel -Brw sdX auto' already failed properly on normally (not
dangerously dedicated) sliced disks _with_ partition of type 165,
because the compatibility slice has a nonzero offset so the MBR
remained inaccessible when the size was corrupted.
This bug only affected in-core labels. On-disk labels are checked
carefully when they read and written.
1997-09-16 10:11:49 +00:00
Julian Elischer
72963672f5
devfs changes to allow old (better) and newer (braindamaged) behaviour.
...
I'm going to try migrate back, while keeping the newer code.
1997-09-16 09:10:18 +00:00
Joerg Wunsch
c6850a7698
Sigh, there's always one more buffer overflow. :-(
...
This one hinted to by the recently posted exploit (although not exploited by
it).
1997-09-16 08:33:52 +00:00
Poul-Henning Kamp
044839fb8b
Don't leak memory, from sef.
...
Stylistic nits and a blunder, from bde.
1997-09-16 08:05:09 +00:00
Joerg Wunsch
d2fb48929a
Make FDC_DEBUG a supported option.
...
Hide the bogus FDC ``chip type'' display behind a (mostly) undocumented
option, since people started to trust the bogus claim. Once we're going
to handle 2.88 MB controllers, we have to redo the chip detection, by
now just leave it hidden.
1997-09-16 07:45:45 +00:00
Philippe Charnier
bc8600f650
Police from style.9 and Bruce.
1997-09-16 07:11:13 +00:00
Peter Wemm
9e06e6da51
Some adjustments for the resolver use of poll(). For some reason I thought
...
an unimplemented syscall returned ENOSYS, rather than EINVAL. I have run
statically linked code with this wrapper and it does appear to work fine
on 2.2-stable which doesn't have poll(). ktrace shows the poll syscall fail
once and the fallback to select() working.
1997-09-16 06:03:54 +00:00
Peter Wemm
b7ecb08afa
Put a system call not present checking wrapper around the call to
...
__getcwd(). I've got this libc code running on one of my machines
at the moment without the __getcwd() syscall being present.
1997-09-16 06:00:50 +00:00
Andrey A. Chernov
0e257512d8
Remove revoke privs, not needed
1997-09-16 01:22:47 +00:00
Andrey A. Chernov
a292598d51
Remove HIDEGAME, it is not a game
1997-09-16 01:19:26 +00:00
Eivind Eklund
c0f3f3cd13
Comment the UID games -> GID games change - mention the known problems with
...
it and ask for feedback on any unknown ones.
1997-09-16 00:26:24 +00:00
Andrey A. Chernov
194a213eff
Prevent overflow with fragmented packets
...
Reviewed by: wollman
1997-09-15 23:07:01 +00:00
Wolfram Schneider
211fed7e35
Fix yet a minor stylistic nit from Bruce.
...
(`cvs diff -ib' print one new char ;-).
1997-09-15 19:37:23 +00:00
Wolfram Schneider
753da33042
Add a genclass.1 manpage.
1997-09-15 19:18:59 +00:00
Poul-Henning Kamp
7874d7a3bb
Solve race-condition, return path in normal order.
...
A couple of stylistic nits from Bruce.
If your libc contains version 1.11 or 1.12 of getcwd.c, (ie: if
you recompiled libc one of the last couple of days):
>>> Recompile LIBC before you boot a new kernel <<<
A new libc will deal with both old and new kernels.
1997-09-15 19:11:07 +00:00
Poul-Henning Kamp
36dff60096
Fix yet a minor stylistic nit from Bruce (Doesn't he have more
...
important things to do ?? :-)
Prepare for the likely case of a change in kernel algorithm.
1997-09-15 17:40:15 +00:00
Wolfram Schneider
11210c4ed5
Add a simple manpage.
1997-09-15 16:08:56 +00:00
Jordan K. Hubbard
d03802742b
revert: The warning was supposed to irritate someone into fixing this.
1997-09-15 11:02:10 +00:00
Jordan K. Hubbard
65de42dc08
Proper casting for clnt_broadcast() args.
1997-09-15 09:47:16 +00:00
Jordan K. Hubbard
9e55697463
Silence a warning with a cast.
1997-09-15 09:46:42 +00:00
Jordan K. Hubbard
0a214d26c9
unsigned char -> caddr_t for mmap's return value.
1997-09-15 08:31:20 +00:00
Poul-Henning Kamp
d56f6402d5
Deal more correctly with mountpoints.
1997-09-15 08:25:43 +00:00
Poul-Henning Kamp
9c2d6fcf05
Fix a buglet and a couple of stylistic nits from Bruce.
1997-09-15 08:25:14 +00:00
Poul-Henning Kamp
97bc6e857c
Fix a comment.
...
Submitted by: Mikael Karpberg <karpen@ocean.campus.luth.se>
1997-09-15 08:20:27 +00:00
John-Mark Gurney
6b4b86e517
remove redudant decls from this header file (used for 2.2.x compat)
1997-09-15 07:34:49 +00:00
Philippe Charnier
b17e90a9c9
Use err(3).
1997-09-15 06:41:09 +00:00
Philippe Charnier
401e64688b
Use err(3). Rewrote man page in mdoc format.
1997-09-15 06:39:25 +00:00
Philippe Charnier
d58316915f
Use err(3), add usage(). -Wall clean.
1997-09-15 06:37:10 +00:00
John-Mark Gurney
f7fdb354ff
add some preprocessor lines to prevent both controler snd0 and
...
device pcm0 from being loaded into the kernel at the same time. As
this generates compilation errors, I just error out.
Requested-by: Jordan
1997-09-15 06:35:13 +00:00
Philippe Charnier
55c5024e9c
Put includes in alphabetical order. various cosmetics.
1997-09-15 06:33:52 +00:00
Philippe Charnier
14b374a5c4
Remove unused #include. Statisize usage().
1997-09-15 06:32:01 +00:00
Rodney W. Grimes
825cbd5821
When calling the src/include Makefile use the shorthand ``all beforeinstall''
...
inplace of ``all installhdrs symlinks'' so those of us who run with
SHARED=copies get the right results.
1997-09-15 05:58:50 +00:00
Rodney W. Grimes
2b6f499962
Now that this has been merged over to RELENG_2_2 remove
...
the #if FreeBSD >= 3 wart I added while debugging.
1997-09-15 05:08:05 +00:00
KATO Takenori
b91a9de202
Synchronize with sys/i386/conf/files.i386 revision 1.176.
1997-09-15 04:00:32 +00:00
Peter Wemm
921af254ca
Regenerate _after_ the commit to syscalls.master
1997-09-15 02:03:45 +00:00
Andrey A. Chernov
dfb33229a0
Sense *.ISO_8859-1 and *.KOI8-R locales from environment
...
PR: 4290
Submitted by: "Anatoly A. Orehovsky" <tolik@www.tomsk.su>
1997-09-15 02:03:13 +00:00
Andrey A. Chernov
40d7476321
Fix neqn building:
...
1) Move it after Makefile.inc included since it uses DIST_DIR from there
2) Add neqn.sh dependance
1997-09-15 01:56:29 +00:00
Andrey A. Chernov
580117026e
Change manual declarations of some functions to proper includes
...
Rewrote allowed character test to be more efficient
Fix screen position calculations: control and 8bit characters was
not counted properly
1997-09-15 01:03:16 +00:00
Andrey A. Chernov
fe38e2f8f4
Allow backspace too
1997-09-15 00:42:04 +00:00
Andrey A. Chernov
4541df7be4
disable upper controls and enable all other
...
8bit codes due to lack of locale knowledge in daemon
1997-09-15 00:27:49 +00:00
Andrey A. Chernov
07484d1f24
Oops, fix upper controls test
1997-09-15 00:17:38 +00:00
Andrey A. Chernov
77caf2118f
Localize it. High controls disabled in any case.
...
Shut compiler warning about signal argument.
PR: 4466
1997-09-15 00:08:19 +00:00
Wolfram Schneider
c455f09b2d
Add a simple manpage.
1997-09-14 23:43:22 +00:00
John-Mark Gurney
c740608242
docment the new sound drivers in LINT and add the necessary files to
...
files.i386.
We aren't sure if this new code and the old sound code will co-exist in a
kernel, so the device pcm0 line is left commented out in LINT.
Submitted-by: Luigi Rizzo
1997-09-14 21:45:05 +00:00
John-Mark Gurney
b7da7b3e2a
Import of Luigi Rizzo's sound code. For more information about the driver
...
check out the README that is included.
Submitted by: Luigi Rizzo <luigi@labinfo.iet.unipi.it>
1997-09-14 21:42:12 +00:00
Wolfram Schneider
634a86ba38
Install gencat.1 manpage.
...
Obtained from: OpenBSD.
1997-09-14 20:23:02 +00:00
Poul-Henning Kamp
a3dd501081
In these days, waiting one full second for more to appear is far too long.
...
Let's try 250ms.
1997-09-14 19:02:13 +00:00
Joerg Wunsch
acb902182f
Fix the broken VT_WAITACTIVE ioctl for the case where the third arg
...
was 0.
PR: 4164
Submitted by: Joe Traister <traister@mojozone.org>
While i was at it, also fixed a broken return value for the VT_RELDISP
ioctl, iff the third arg was legally VT_TRUE, but the destination
screen was in process mode so the actual switch had to be deferred.
This was breaking the ability to directly toggle between two X servers
running on two VTs, since the server getting the bogus error return
was running wild, and competing with the other one for the hardware.
(Sigh, this was a very long-standing bug.)
1997-09-14 19:01:01 +00:00
Joerg Wunsch
755b925e24
Addf flags 0x10 to the sio0 line, so it is available as a potential
...
console. This features backwards-compatibility to the era when sio(4)
was always available for a console.
1997-09-14 18:57:01 +00:00