Commit Graph

151652 Commits

Author SHA1 Message Date
apb
1889c0e175 Use ${HOST_SH} instead of the host system's /bin/sh wherever possible:
* Try to guess a suitable value for HOST_SH, if it was not set in
  the environment.  First try host-specific heuristics (Solaris has
  /usr/xpg4/bin/sh); then try to find the name of the shell that was used
  to run build.sh itself (by parsing the output from ps -p $$ -o comm);
  then fall back to "sh".

* Having found a value for HOST_SH, copy it to BSHELL and CONFIG_SHELL.

* Use ${HOST_SH} instead of /bin/sh when creating the make wrapper.

* Use ${HOST_SH} instead of unqualified sh when running shell scripts.
2006-09-29 19:53:54 +00:00
christos
804dfaa036 Coverity CID 2960: Don't print NULL vnode (from Arnaud Lacombe) 2006-09-29 19:41:16 +00:00
dsl
4bde2b5d8d Redraw the 'welcome' message when we redisplay the 'utility' menu.
Otherwise it will sit atop the last data output by the last executed
utility.  Even a blank screen looks funny.
2006-09-29 19:41:07 +00:00
christos
1d0edbd583 Coverity CID 2951, 2953, 2954: Add KASSERTS before null deref 2006-09-29 19:39:43 +00:00
dsl
a178085551 Reap any dead children that we have at startup.
If there are any undead ones set a flag so we don't report the 'Child (pid)
not in table' message when they die - it is impossible to (portably) find
the childrens pids.
This happens when make is run as 'make -f- ... <<EOF' and the shell uses
a child of (what will be) make to write the data into a pipe.
2006-09-29 19:38:48 +00:00
christos
f1a4e9cae0 Coverity CID 2949: comment out dead code (from Arnaud Lacombe) 2006-09-29 19:37:11 +00:00
macallan
8c774caf8c Add gimpy's OF device tree dumping tool.
Tested on macppc and sparc64
2006-09-29 19:03:11 +00:00
tsutsui
7db79c4e79 - KNF
- u_intNN_t -> uintNN_t
- misc cosmetics
2006-09-29 18:56:29 +00:00
plunky
ebb327f7cd back off previous changes since the 'memory leak' fix - we dont need any of
that, just use the _nocopy version of the function.
2006-09-29 18:48:17 +00:00
christos
e02941da8f Coverity CID 2714: Fix reversed test (from Arnaud Lacombe) 2006-09-29 18:40:57 +00:00
christos
f89dbcf8f7 Coverity CID 2435: Add KASSERT before NULL deref (from Arnaud Lacombe) 2006-09-29 18:30:37 +00:00
tsutsui
60abfbb6b9 ANSIfy. 2006-09-29 18:27:51 +00:00
tsutsui
0afee5cb99 TAB/space cleanup. 2006-09-29 18:20:02 +00:00
christos
8da6ea8890 Check for cert being NULL too. 2006-09-29 17:07:32 +00:00
christos
a0feefba6a Avoid buffer overflow. 2006-09-29 17:02:04 +00:00
tsutsui
ab86520375 Set a timeout only if any TX packet is actually queued. 2006-09-29 16:46:49 +00:00
tsutsui
7d6d7a0b22 rtk_intr() should return 1 only if any interrupts are actually handled. 2006-09-29 16:40:15 +00:00
cube
155a80cb76 A local change crept in when it wasn't meant to, I suppose. [hi rjs!] 2006-09-29 16:39:27 +00:00
tsutsui
4c0a796caa Use SIMPLEQ_EMPTY()' rather than SIMPLEQ_FIRST() == NULL'. 2006-09-29 16:38:16 +00:00
tsutsui
a63cbd1696 Handle more wraparound case on RX ring-buffer calculation.
(it might cause problem only if RTK_RXBUFLEN < 64KB)
2006-09-29 16:33:41 +00:00
drochner
429dff1c3d Flush regular files before setattr also if the mode bits are going to
be set. Linux NFS servers (at least) reset suid/sgid bits if a write
happens afterwards. Add a comment why this is done.
This fixes system builds on diskless systems for me where suid bits
were missing after install(1).
Approved by yamt.
2006-09-29 16:19:50 +00:00
christos
36ac62d963 PR/34658: der Mouse: identd truncates queries to first segment 2006-09-29 15:49:29 +00:00
christos
a5239739d0 PR/34656: Geoff C. Wing: pppd has stuffed up wtmpx code 2006-09-29 15:44:46 +00:00
pooka
751537fe38 Make these work again. I know, I'm a bit impatient, since they've
only been broken for 12 years, but some things are better done
sooner than later.

While meddling here, introduce mp_vchain, which prints the vnode
chain given a mount point.
2006-09-29 15:43:06 +00:00
christos
897b34d36d http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-2937
OpenSSL 0.9.7 before 0.9.7l and 0.9.8 before 0.9.8d allows
    remote attackers to cause a denial of service (inifnite loop
    and memory consumption) via malformed ASN.1 structures that
    trigger an improperly handled error condition.

http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-2940
    OpenSSL 0.9.7 before 0.9.7l, 0.9.8 before 0.9.8d, and earlier
    versions allows attackers to cause a denial of service (CPU
    consumption) via certain public keys that require extra time
    to process.

http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-3738
    Buffer overflow in the SSL_get_shared_ciphers function in
    OpenSSL 0.9.7 before 0.9.7l, 0.9.8 before 0.9.8d, and earlier
    versions has unspecified impact and remote attack vectors
    involving a long list of ciphers.

http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-4343
    Unspecified vulnerability in the SSLv2 client code in OpenSSL
    0.9.7 before 0.9.7l, 0.9.8 before 0.9.8d, and earlier versions
    allows remote servers to cause a denial of service (client
    crash) via unknown vectors.
2006-09-29 15:41:08 +00:00
yamt
aef2b2eac9 yamt-splraiseipl: amiga. 2006-09-29 15:34:47 +00:00
christos
f0f6b1cde9 Using (void)&foo; shuts up gcc-4 but does not stop the compiler from clobbering
the variables in the setjmp/longjmp cases. Use volatile instead as we are
supposed to (from our anonymous user).
2006-09-29 14:59:31 +00:00
christos
43fe375242 Coverity CID 3664/2964: Add KASSERTS before dereferencing l, p; these really
can't be NULL at this point, but adding the checks does not hurt
(from Arnaud Lacombe)
2006-09-29 14:48:15 +00:00
christos
3f7563e969 Coverity CID 4119: Check negative returns (from Arnaud Lacombe) 2006-09-29 14:42:59 +00:00
christos
03a48a92ca Coverity CID 4027: Initialize oldphys (from Arnaud Lacombe) 2006-09-29 14:41:32 +00:00
christos
4589200621 Coverity CID 3801: Plug memory leak (from Arnaud Lacombe) 2006-09-29 14:39:09 +00:00
christos
95d484d975 Coverity CID 4151: Don't forget to close the firmware file (from Arnaud Lacombe) 2006-09-29 14:38:04 +00:00
he
f1afbc1ee7 Use PRIu64 instead of llu when printing an u_int64_t.
Fixes a build problem for our LP64 ports, where u_int64_t is
typically an unsigned long.
2006-09-29 14:36:34 +00:00
christos
ca42d11f95 Coverity CID 3786: Fix memory leak (from Arnaud Lacombe) 2006-09-29 14:36:30 +00:00
he
a4970f4ee7 The "success" field in Authctxt needs to be a sig_atomic_t, not an int,
so that we don't get a type conflict on dispatch_run() invocation.  Found
while building for alpha and amd64.
2006-09-29 14:34:25 +00:00
christos
13528a299f Coverity CID 3666: Remove debug to expose KASSERT's (from Arnaud Lacombe) 2006-09-29 14:33:52 +00:00
christos
f6e519df16 Coverity CID 3015: Check before using (from Arnaud Lacombe) 2006-09-29 14:28:46 +00:00
christos
ed106f137b Coverity CID 2990: fix memory leak (from Arnaud Lacombe) 2006-09-29 14:24:55 +00:00
christos
b7ae68fde0 Coverity CID 1194: Negative returns (from Arnaud Lacombe) 2006-09-29 14:18:25 +00:00
tsutsui
ebd0b89ad0 Pull mii_readreg fix from FreeBSD if_rl.c rev 1.81:
> When reading PHY regs over the i2c bus, the turnaround ACK bit
> is read one clock edge too late. This bit is driven low by
> slave (as any other input data bits from slave) when the clock
> is LOW. The current code did read the bit after the clock was
> driven high again.
2006-09-29 14:03:07 +00:00
tsutsui
a7f43a90fe In rtk_txeof(), clear the timeout timer only if there is no pending packet. 2006-09-29 13:59:40 +00:00
martin
ebaf1420c5 If using NLAPIC, we better include lapic.h. Pointed out by Kurt Schreiner
on current-users.
2006-09-29 11:18:44 +00:00
martin
90924281b7 Sysinst now properly ignores eon0 interfaces - so there is no need to
avoid ISO networking and EON in this kernel anymore.
2006-09-29 10:44:31 +00:00
martin
f944aa66d2 Ignored interfaces should be ignored, wether they are IFF_UP or not.
For example eon0 is always up after boot, but completely useless.
2006-09-29 10:37:49 +00:00
martin
3da83175e0 If we ask "is any of these interfaces connected?" we want the answer to be
"yes", and abort if it is "no" - not vice versa.
XXX - when returning to the utilities menu loop, the menu message should
be output again, I think. I couldn't figure out how that is supposed to
be done though.
2006-09-29 09:56:04 +00:00
martin
109baa1a34 Make the DEBUG version build again. 2006-09-29 09:29:12 +00:00
tsutsui
c6bfa68fcc - trim CRC off rather than setting M_HASFCS
- use appropriate types instead of `unsigned'
2006-09-29 08:49:30 +00:00
tsutsui
2f6ae33af4 In rtk_rxeof():
- discard too short packets as well as too large ones
- trim CRC off rather than setting M_HASFCS

Closes PR kern/31348.
2006-09-29 08:33:06 +00:00
pavel
7c45d943a0 Do not strip INSTALL kernels. Makefile.tarfloppy does this now. 2006-09-29 08:20:44 +00:00
pavel
9883a03a3c Strip the kernel before it is written to floppy. This will allow to have
unstripped INSTALL kernels in the release.

OK lukem@.
2006-09-29 08:16:41 +00:00