]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoMFC r216591:
netchild [Fri, 25 Feb 2011 15:32:44 +0000 (15:32 +0000)]
MFC r216591:
  Suggest to run the delete-old target after the second mergemaster. If you run
  it before, your rc scripts may still reference old files/directories and
  if you are in the unlucky situation to have triggered a reboot (intentionally
  or not) between the delete-old run and the mergemaster, your system may not
  start anymore.

  While I'm here, give a hint about delete-old-libs.

  Noticed by:        bcr (luckily in a discussion and not by getting hit by
                          this)

git-svn-id: svn://svn.freebsd.org/base/stable/8@219034 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218724: test: Note that this is used both as a normal program and
jilles [Fri, 25 Feb 2011 14:54:57 +0000 (14:54 +0000)]
MFC r218724: test: Note that this is used both as a normal program and
a shell builtin.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219032 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218753:
dougb [Thu, 24 Feb 2011 23:43:56 +0000 (23:43 +0000)]
MFC r218753:

Remove in-addr.arpa from the list of zones it is possible to slave locally

MFC r218865:

Add a note about AXFR of important zones being available from ICANN

git-svn-id: svn://svn.freebsd.org/base/stable/8@219016 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years ago8.2-RELEASE has been announced, shift to -STABLE.
kensmith [Thu, 24 Feb 2011 20:44:11 +0000 (20:44 +0000)]
8.2-RELEASE has been announced, shift to -STABLE.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219009 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoAdd more relnotes item: a carp(4) and linkstate change issue is fixed.
hrs [Thu, 24 Feb 2011 19:11:27 +0000 (19:11 +0000)]
Add more relnotes item: a carp(4) and linkstate change issue is fixed.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219006 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218918:
brucec [Thu, 24 Feb 2011 11:08:23 +0000 (11:08 +0000)]
MFC r218918:

Make private functions static.

PR:           kern/43611
Submitted by: Matt Emmerton <matt at gsicomp.on.ca>

git-svn-id: svn://svn.freebsd.org/base/stable/8@218996 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218910:
brucec [Thu, 24 Feb 2011 11:03:16 +0000 (11:03 +0000)]
MFC r218910:

The FD_FORM ioctl used to ignore errors from the floppy controller; now when
it encounters an error it returns an error from the ioctl.
Ignore any errors when using the FD_FORM ioctl.

PR:   kern/103862

git-svn-id: svn://svn.freebsd.org/base/stable/8@218994 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218909:
brucec [Thu, 24 Feb 2011 10:23:22 +0000 (10:23 +0000)]
MFC r218909:

Fix typos - remove duplicate "the".

PR: bin/154928
Submitted by: Eitan Adler <lists at eitanadler.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@218992 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218772:
kib [Thu, 24 Feb 2011 10:11:29 +0000 (10:11 +0000)]
MFC r218772:
Install iodev.h.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218990 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218917:
pluknet [Thu, 24 Feb 2011 09:12:45 +0000 (09:12 +0000)]
MFC r218917:

 mdoc(7) markup.

Approved by: avg (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@218987 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMore wording nit.
hrs [Wed, 23 Feb 2011 20:26:43 +0000 (20:26 +0000)]
More wording nit.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218982 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFH r218477: Fix termcap entry typo.
uqs [Wed, 23 Feb 2011 20:24:10 +0000 (20:24 +0000)]
MFH r218477: Fix termcap entry typo.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218980 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoVarious wording fixes.
hrs [Wed, 23 Feb 2011 20:13:07 +0000 (20:13 +0000)]
Various wording fixes.

Suggested by: keramida

git-svn-id: svn://svn.freebsd.org/base/stable/8@218979 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoUpdate Errata document for 8.2R. CVE-2011-0014 fix for OpenSSL.
hrs [Wed, 23 Feb 2011 19:33:42 +0000 (19:33 +0000)]
Update Errata document for 8.2R.  CVE-2011-0014 fix for OpenSSL.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218978 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoImport and update relnotes items for 8.2R:
hrs [Wed, 23 Feb 2011 19:07:50 +0000 (19:07 +0000)]
Import and update relnotes items for 8.2R:
fix SA table's cell width[1],
alq(4) improvement in details, TCP reassembly improved[2],
xz rewording[3], and
various grammer fixes[4].

Suggested by: dougb[1], keramida[1], lstewart[2], mm[3], mandree[4].

git-svn-id: svn://svn.freebsd.org/base/stable/8@218977 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218710:
yongari [Tue, 22 Feb 2011 21:24:36 +0000 (21:24 +0000)]
MFC r218710:
  Fix a regression introduced in r215906. The change made in r215906
  caused link re-negotiation whenever application joins or leaves a
  multicast group.  If driver is running, it would have established a
  link so there is no need to start re-negotiation. The re-negotiation
  broke established link which in turn stopped multicast application
  working while re-negotiation is in progress.

  PR: kern/154667

git-svn-id: svn://svn.freebsd.org/base/stable/8@218962 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218854:
brucec [Tue, 22 Feb 2011 17:43:09 +0000 (17:43 +0000)]
MFC r218854:

Update the icmp example to show allowing only the safe types.

Suggested by: Tom Judge <tom at tomjudge.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@218955 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218841:
brucec [Tue, 22 Feb 2011 17:40:18 +0000 (17:40 +0000)]
MFC r218841:

Allow users to create ufs1 filesystems via the noninteractive install.cfg
system.

PR:           bin/113979

git-svn-id: svn://svn.freebsd.org/base/stable/8@218954 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218840:
brucec [Tue, 22 Feb 2011 17:38:43 +0000 (17:38 +0000)]
MFC r218840:

Remove the quotas option from the Startup Services menu.
GENERIC has no support for quotas so this option has no effect.

PR:           bin/123237
Submitted by: Lawrence Mayer <lawmay3 at i12.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@218953 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218839:
brucec [Tue, 22 Feb 2011 17:37:13 +0000 (17:37 +0000)]
MFC r218839:

In the distribution list, 'A' is listed as the key to press to select both
'All' and 'Minimal'. Update the keys for Minimal and Custom to avoid the
conflict.

PR:   bin/153809
Submitted by: Janne Snabb <snabb at epipe.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@218952 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218368:
bschmidt [Mon, 21 Feb 2011 21:00:29 +0000 (21:00 +0000)]
MFC r218368:
Fix cut&paste mistake.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218929 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r218812
ken [Mon, 21 Feb 2011 18:11:56 +0000 (18:11 +0000)]
MFC: r218812

Fix several issues with the mps(4) driver.

When the driver ran out of DMA chaining buffers, it kept the timeout for
the I/O, and I/O would stall.

The driver was not freezing the device queue on errors.

mps.c: Pull command completion logic into a separate
function, and call the callback/wakeup for commands
that are never sent due to lack of chain buffers.

Add a number of extra diagnostic sysctl variables.

Handle pre-hardware errors for configuration I/O.
This doesn't panic the system, but it will fail the
configuration I/O and there is no retry mechanism.
So the device probe will not succeed.  This should
be a very uncommon situation, however.

mps_sas.c: Freeze the SIM queue when we run out of chain
buffers, and unfreeze it when more commands
complete.

Freeze the device queue when errors occur, so that
CAM can insure proper command ordering.

Report pre-hardware errors for task management
commands.  In general, that shouldn't be possible
because task management commands don't have S/G
lists, and that is currently the only error path
before we get to the hardware.

Handle pre-hardware errors (like out of chain
elements) for SMP requests.  That shouldn't happen
either, since we should have enough space for two
S/G elements in the standard request.

For commands that end with
MPI2_IOCSTATUS_SCSI_IOC_TERMINATED and
MPI2_IOCSTATUS_SCSI_EXT_TERMINATED, return them
with CAM_REQUEUE_REQ to retry them unconditionally.
These seem to be related to back end, transport
related problems that are hopefully transient.  We
don't want to go through the retry count for
something that is not a permanent error.

Keep track of the number of outstanding I/Os.

mpsvar.h: Track the number of free chain elements.

Add variables for the number of outstanding I/Os,
and I/O high water mark.

Add variables to track the number of free chain
buffers and the chain low water mark, as well as
the number of chain allocation failures.

Add I/O state flags and an attach done flag.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218922 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r218811:
ken [Mon, 21 Feb 2011 16:55:53 +0000 (16:55 +0000)]
MFC: r218811:

In the MPS driver, during device removal processing, don't assume that
the controller firmware will return all of our commands.  Instead, keep
track of outstanding I/Os and return them to CAM once device removal
processing completes.

mpsvar.h: Declare the new "io_list" in the mps_softc.

mps.c: Initialize the new "io_list" in the mps softc.

mps_sas.c: o Track SCSI I/O requests on the io_list from the
  time of mpssas_action() through mpssas_scsiio_complete().
o Zero out the request structures used for device
  removal commands prior to filling them out.
o Once the target reset task management function completes
  during device removal processing, assume any SCSI I/O
  commands that are still oustanding will never return
  from the controller, and process them manually.

Submitted by: gibbs

git-svn-id: svn://svn.freebsd.org/base/stable/8@218921 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216098:
jh [Mon, 21 Feb 2011 16:30:27 +0000 (16:30 +0000)]
MFC r216098:

- Report an error when a label with invalid name is attempted to be
  created with glabel(8).
- Fix a typo in an error message.
- Fix comment typos.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218919 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218127, r218128:
mm [Mon, 21 Feb 2011 10:08:47 +0000 (10:08 +0000)]
MFC r218127, r218128:

Add xz(1) support to newsyslog.
Rewrite and simplify logfile compression code.

Approved by: gad

git-svn-id: svn://svn.freebsd.org/base/stable/8@218911 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217524,217766:
yongari [Mon, 21 Feb 2011 01:19:09 +0000 (01:19 +0000)]
MFC r217524,217766:
  Change model names of controller RTL_HWREV_8168_SPIN[123] to real ones.
  s/RL_HWREV_8168_SPIN1/RL_HWREV_8168B_SPIN1/g
  s/RL_HWREV_8168_SPIN2/RL_HWREV_8168B_SPIN2/g
  s/RL_HWREV_8168_SPIN3/RL_HWREV_8168B_SPIN3/g
  No functional changes.

r217766:
  Apply TX interrupt moderation to all RTL810xE PCIe Fast Ethernet
  controllers. Experimentation with RTL8102E, RTL8103E and RTL8105E
  showed dramatic decrement of TX completion interrupts under high TX
  load(e.g.  from 147k interrupts/second to 10k interrupts/second)
  With this change, TX interrupt moderation is applied to all
  controllers except RTL8139C+.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218905 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217499:
yongari [Mon, 21 Feb 2011 01:08:13 +0000 (01:08 +0000)]
MFC r217499:
  Implement initial jumbo frame support for RTL8168/8111 C/D/E PCIe
  GbE controllers. It seems these controllers no longer support
  multi-fragmented RX buffers such that driver have to allocate
  physically contiguous buffers.

   o Retire RL_FLAG_NOJUMBO flag and introduce RL_FLAG_JUMBOV2 to
     mark controllers that use new jumbo frame scheme.
   o Configure PCIe max read request size to 4096 for standard frames
     and reduce it to 512 for jumbo frames.
   o TSO/checksum offloading is not supported for jumbo frames on
     these controllers. Reflect it to ioctl handler and driver
     initialization.
   o Remove unused rl_stats_no_timeout in softc.
   o Embed a pointer to structure rl_hwrev into softc to keep track
     of controller MTU limitation and remove rl_hwrev in softc since
     that information is available through a pointer to structure
     rl_hwrev.

  Special thanks to Realtek for donating sample hardwares which made
  this possible.

  H/W donated by: Realtek Semiconductor Corp.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218903 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217498:
yongari [Mon, 21 Feb 2011 01:04:16 +0000 (01:04 +0000)]
MFC r217498:
  Add initial support for RTL8168E/8111E-VL PCIe GbE.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218901 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217247,217381-217382,217384-217385:
yongari [Mon, 21 Feb 2011 00:58:50 +0000 (00:58 +0000)]
MFC r217247,217381-217382,217384-217385:
r217247:
  When driver is not running, do not send DUMP command to controller
  and just show old (cached) values. Controller will not respond to
  the command unless MAC is enabled so DUMP request for down
  interface caused request timeout.

r217381:
  Allow TX/RX checksum offloading to be configured independently.

r217382:
  re_reset() should be called only after setting device specific
  features.

r217384:
  Make sure to check validity of dma maps before destroying.

r217385:
  If driver is not able to allocate RX buffer, do not start driver.
  While I'm here move RX buffer allocation and descriptor
  initialization up to not touch hardware registers in case of RX
  buffer allocation failure.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218899 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217246,217832:
yongari [Mon, 21 Feb 2011 00:47:39 +0000 (00:47 +0000)]
MFC r217246,217832:
r217246:
  Implement TSO on RealTek RTL8168/8111 C or later controllers.
  RealTek changed TX descriptor format for later controllers so these
  controllers require MSS configuration in different location of TX
  descriptor. TSO is enabled by default for controllers that use new
  descriptor format.
  For old controllers, TSO is still disabled by default due to broken
  frames under certain conditions but users can enable it.
  Special thanks to Hayes Wang at RealTek.

r217832:
  Disable TSO for all Realtek controllers. Experimentation showed
  RTL8111C generated corrupted frames where TCP option header was
  broken. All other sample controllers I have did not show such
  problem so it could be RTL8111C specific issue. Because there are
  too many variants it's hard to tell how many controllers have such
  issue. Just disable TSO by default but have user override it.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218897 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFH r218089:
uqs [Sun, 20 Feb 2011 11:29:40 +0000 (11:29 +0000)]
MFH r218089:

syscons: install all available kbdmaps

eee_nordic.kbd, us.dvorakl.kbd, and us.dvorakr.kbd were not installed.

Found by:     Neil Short <neshort@yahoo.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@218882 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218670:
kib [Sun, 20 Feb 2011 09:17:59 +0000 (09:17 +0000)]
MFC r218670:
Lock the vnode around clearing of VV_TEXT flag. Remove mp_fixme() note
mentioning that vnode lock is needed.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218880 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215432:
yongari [Sun, 20 Feb 2011 01:24:59 +0000 (01:24 +0000)]
MFC r215432:
  MCP55 is the only NVIDIA controller that supports VLAN tag
  insertion/stripping and it also supports TSO over VLAN. Implement
  TSO over VLAN support for MCP55 controller.

  While I'm here clean up SIOCSIFCAP ioctl handler. Since nfe(4)
  sets ifp capabilities based on various hardware flags in device
  attach, there is no need to check hardware flags again in
  SIOCSIFCAP ioctl handler. Also fix a bug which toggled both TX and
  RX checksum offloading even if user requested either TX or RX
  checksum configuration change.

  Tested by: Rob Farmer ( rfarmer <> predatorlabs dot net )

git-svn-id: svn://svn.freebsd.org/base/stable/8@218874 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217794:
yongari [Sun, 20 Feb 2011 01:20:49 +0000 (01:20 +0000)]
MFC r217794:
  Reinitialize driver when MTU is changed and driver is running.

  Reported by: Huang, Yusheng ( yusheng.huang <> bluecoat com )

git-svn-id: svn://svn.freebsd.org/base/stable/8@218872 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218141:
yongari [Sun, 20 Feb 2011 01:15:26 +0000 (01:15 +0000)]
MFC r218141:
  alc_rev was used without initialization such that it failed to
  apply AR8152 v1.0 specific initialization code. Fix this bug by
  explicitly reading PCI device revision id via PCI accessor.

  Reported by: Gabriel Linder ( linder.gabriel <> gmail dot com )

git-svn-id: svn://svn.freebsd.org/base/stable/8@218870 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217379:
yongari [Sun, 20 Feb 2011 01:08:49 +0000 (01:08 +0000)]
MFC r217379:
  - Move ether_ifdetach() earlier and remove now-unneeded IN_DETACH flag.
  - Expand locking in interrupt handler.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218868 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217353:
yongari [Sun, 20 Feb 2011 01:02:11 +0000 (01:02 +0000)]
MFC r217353:
  - Add a locked variant of jme_start() and invoke it directly while holding
    the lock instead of queueing it to a task.
  - Do not invoke jme_rxintr() to reclaim any unprocessed but received
    packets when shutting down the interface.  Instead, just drop these
    packets to match the behavior of other drivers.
  - Hold the driver lock in the interrupt handler to avoid races with
    ioctl requests to down the interface.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218866 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: revision 218391
nyan [Sat, 19 Feb 2011 11:47:48 +0000 (11:47 +0000)]
MFC: revision 218391

  Fix linking of the kernel without device npx.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218849 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: revision 218390
nyan [Sat, 19 Feb 2011 11:44:46 +0000 (11:44 +0000)]
MFC: revision 218390

  Clear the padding when returning context to the usermode.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218848 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218329:
kib [Sat, 19 Feb 2011 07:45:17 +0000 (07:45 +0000)]
MFC r218329:
Fix kernel linkage without device npx.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218837 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218327:
kib [Sat, 19 Feb 2011 07:39:14 +0000 (07:39 +0000)]
MFC r218327:
Clear the padding when returning context to the usermode.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218836 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 212441,212492:
gjb [Fri, 18 Feb 2011 17:41:39 +0000 (17:41 +0000)]
MFC 212441,212492:

- Note O_SYNC and O_NOFOLLOW flags in dbopen(3) since r190497. [1]
- Bump dates in dbopen(3) and cpuset_getaffinity(2).

PR: 150030 [1]

git-svn-id: svn://svn.freebsd.org/base/stable/8@218813 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: 212420, 212616, 212772, 212802, 213535, 213702, 213704, 213707, 213708,
ken [Fri, 18 Feb 2011 16:29:38 +0000 (16:29 +0000)]
MFC: 212420, 212616, 212772, 212802, 213535, 213702, 213704, 213707, 213708,
     213743, 213839, 213840, 213882, 213898, 216088, 216227, 216363, 216368:

Merge the mps(4) driver into stable/8.  This is currently only included in
GENERIC on amd64, since that is the only architecture it has been tested
on.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218810 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218550:
kib [Fri, 18 Feb 2011 09:47:58 +0000 (09:47 +0000)]
MFC r218550:
For UIO_NOCOPY case of reading request on zfs vnode, which has vm object
attached, activate the page after the successful read, and free the page
if read was unsuccessfull.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218795 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r214904: bring MIPS minidump support to libkvm
obrien [Fri, 18 Feb 2011 00:02:35 +0000 (00:02 +0000)]
MFC: r214904: bring MIPS minidump support to libkvm

git-svn-id: svn://svn.freebsd.org/base/stable/8@218785 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218620:
brucec [Wed, 16 Feb 2011 21:41:44 +0000 (21:41 +0000)]
MFC r218620:

If the pf.conf(5) example file is copied when setting up a firewall it's
easy to forget about icmp. Update the file to show allowing icmp through
the firewall.

PR: docs/144096

git-svn-id: svn://svn.freebsd.org/base/stable/8@218758 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218619:
brucec [Wed, 16 Feb 2011 21:27:19 +0000 (21:27 +0000)]
MFC r218619:

Fix typos.

PR: docs/131625
Submitted by: Andrew Wright <andrew at qemg.org>

git-svn-id: svn://svn.freebsd.org/base/stable/8@218755 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218652, r218677:
brucec [Wed, 16 Feb 2011 21:21:23 +0000 (21:21 +0000)]
MFC r218652, r218677:

Only print the unit number when invoked with the -n flag.

PR: bin/144300
Submitted by: arundel

git-svn-id: svn://svn.freebsd.org/base/stable/8@218752 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218650:
brucec [Wed, 16 Feb 2011 21:10:50 +0000 (21:10 +0000)]
MFC r218650:

Move potentially offensive fortune to fortunes-o.

PR: bin/137702

git-svn-id: svn://svn.freebsd.org/base/stable/8@218750 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoGuess when all the bits will be in place for announcing 8.2-RELEASE.
kensmith [Wed, 16 Feb 2011 14:25:26 +0000 (14:25 +0000)]
Guess when all the bits will be in place for announcing 8.2-RELEASE.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218731 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: 217336
zack [Tue, 15 Feb 2011 20:53:01 +0000 (20:53 +0000)]
MFC: 217336
In the experimental NFS server, when converting an open-owner to a lock-owner,
start at sequence id 1 instead of 0, to match up with both Solaris and Linux.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218715 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: 217335
zack [Tue, 15 Feb 2011 20:46:51 +0000 (20:46 +0000)]
MFC: 217335
Clean up the experimental NFS server replay cache when the module is unloaded.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218714 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 216698 by maxim from /head
keramida [Tue, 15 Feb 2011 07:12:41 +0000 (07:12 +0000)]
MFC 216698 by maxim from /head

Fix -u flag description: it takes a username as an argument.

PR:             docs/153416
Submitted by:   Eitan Adler

git-svn-id: svn://svn.freebsd.org/base/stable/8@218698 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 217746 from /head/usr.bin/top
keramida [Tue, 15 Feb 2011 06:33:35 +0000 (06:33 +0000)]
MFC 217746 from /head/usr.bin/top

Touch up the sample memory usage numbers a bit, to avoid wrapping
on terminal boundary.  While here add definition for 'G' and fix
the indentation of 'K' units.

Submitted by:   plunket
PR:             docs/153614

git-svn-id: svn://svn.freebsd.org/base/stable/8@218695 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 212438:
gjb [Tue, 15 Feb 2011 01:33:59 +0000 (01:33 +0000)]
MFC 212438:
Add EINVAL to list of possible return values for cpuset_getaffinity(2).

PR: 149978
Approved by: keramida (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@218692 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216466:
bz [Mon, 14 Feb 2011 16:54:03 +0000 (16:54 +0000)]
MFC r216466:

  Bring back (most of) NATM to avoid further bitrot after r186119.
  Keep three lines disabled which I am unsure if they had been used at all.
  This will allow us to seek testers and possibly bring it all back.

  Discussed with:       rwatson

git-svn-id: svn://svn.freebsd.org/base/stable/8@218684 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218114:
bz [Mon, 14 Feb 2011 16:38:32 +0000 (16:38 +0000)]
MFC r218114:

  Update interface stats counters to match the current format in linux and
  try to export as much information as we can match.

  Requested on: Debian GNU/kFreeBSD list (debian-bsd lists.debian.org) 2010-12
  Tested by:    Mats Erik Andersson (mats.andersson gisladisker.se)

git-svn-id: svn://svn.freebsd.org/base/stable/8@218683 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218078:
bz [Mon, 14 Feb 2011 16:36:02 +0000 (16:36 +0000)]
MFC r218078:

  Remove duplicate printing of TF_NOPUSH in db_print_tflags().

git-svn-id: svn://svn.freebsd.org/base/stable/8@218682 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoAdd back soon-to-be-release FreeBSD 7.4 which got clobbered in the previous
uqs [Sun, 13 Feb 2011 22:17:49 +0000 (22:17 +0000)]
Add back soon-to-be-release FreeBSD 7.4 which got clobbered in the previous
merges.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218672 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoPartially merge a change made in r200166.
ed [Sun, 13 Feb 2011 19:37:05 +0000 (19:37 +0000)]
Partially merge a change made in r200166.

It seems the utmpx fixes for who(1) also contained a small change to
make it work properly with the pts/%u naming. Unfortunately, this change
was never merged to FreeBSD 8. Properly remove the /dev/ part of the TTY
name instead of stripping until the last /.

Reported by: Eivind E <eivinde terraplane org>
Tested by: uqs@

git-svn-id: svn://svn.freebsd.org/base/stable/8@218664 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFH r217595
uqs [Sun, 13 Feb 2011 19:15:42 +0000 (19:15 +0000)]
MFH r217595

Update groff manpage and symbols with what has been submitted upstream.
Also remove local overrides that are now in the contrib tree.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218659 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFH r217890
uqs [Sun, 13 Feb 2011 19:02:26 +0000 (19:02 +0000)]
MFH r217890

Fix typo in example getopt(1) script: $i vs $1 [1]
While here apply style hammer.

PR: docs/154289 [1]
Submitted by: Jamie Landeg Jones <jamie@bishopston.net>

git-svn-id: svn://svn.freebsd.org/base/stable/8@218656 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216156:
brucec [Sun, 13 Feb 2011 18:03:30 +0000 (18:03 +0000)]
MFC r216156:

Document the fact that passing in a count of zero to the bus_space functions
will result in undefined behaviour.
Taken from NetBSD's bus_space(9).

PR: kern/80980

git-svn-id: svn://svn.freebsd.org/base/stable/8@218648 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 218523:
jpaetzel [Sun, 13 Feb 2011 15:15:47 +0000 (15:15 +0000)]
MFC 218523:

Netgear renamed the WG311 to the WG311v1 after they released a second
version of it.  There is also a WG311v3 which uses a chipset covered by
malo(4). Along the way add the WG311T to the list which is also an
atheros chipset.

Approved by: kib (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@218643 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 218625:
simon [Sun, 13 Feb 2011 10:22:43 +0000 (10:22 +0000)]
MFC 218625:
 Fix Incorrectly formatted ClientHello SSL/TLS handshake messages could
 cause OpenSSL to parse past the end of the message.

 Note: Applications are only affected if they act as a server and call
 SSL_CTX_set_tlsext_status_cb on the server's SSL_CTX. This includes
 Apache httpd >= 2.3.3, if configured with "SSLUseStapling On".

The very quick MFC is done to get this fix into 7.4 / 8.2.

Discussed with: re
Approved by: so (simon, for "instant" MFC)
Obtained from: OpenSSL CVS
Security: http://www.openssl.org/news/secadv_20110208.txt
Security: CVE-2011-0014

git-svn-id: svn://svn.freebsd.org/base/stable/8@218633 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 212827, 217717:
gjb [Sat, 12 Feb 2011 17:57:56 +0000 (17:57 +0000)]
MFC 212827, 217717:

Note that devfs(5) and fdescfs(5) both create /dev/fd file descriptors.

PR: 144534
Approved by: keramida (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@218614 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r218478
marius [Sat, 12 Feb 2011 13:41:00 +0000 (13:41 +0000)]
MFC: r218478

Correct signedness and off-by-one issues in parameters used for DMA tag
creation.

PR: 154259
Submitted by: Vladislav Movchan (partially)

git-svn-id: svn://svn.freebsd.org/base/stable/8@218606 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 218271:
jhb [Fri, 11 Feb 2011 15:12:31 +0000 (15:12 +0000)]
MFC 218271:
When turning off TCP_NOPUSH, only call tcp_output() to immediately flush
any pending data if the connection is established.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218573 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoAdd release notes for xz update to 5.0.0.
mm [Fri, 11 Feb 2011 15:03:05 +0000 (15:03 +0000)]
Add release notes for xz update to 5.0.0.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218571 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 212440,212493,212500:
gjb [Fri, 11 Feb 2011 13:58:30 +0000 (13:58 +0000)]
MFC 212440,212493,212500:

Add RETURN VALUES section to devclass_get_maxunit(9).

PR: 149979
Approved by: keramida (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@218564 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 218398:
gjb [Fri, 11 Feb 2011 13:55:27 +0000 (13:55 +0000)]
MFC 218398:

Fix typo in amdtemp(4).

Approved by: keramida (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@218562 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 218421:
gjb [Fri, 11 Feb 2011 13:52:55 +0000 (13:52 +0000)]
MFC 218421:

Remove CRT reference from zmore(1).

PR: 154441
Approved by: keramida (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@218560 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 218350:
dougb [Fri, 11 Feb 2011 05:56:48 +0000 (05:56 +0000)]
MFC 218350:

Catch up with reality and references from the latest RFCs
(especially 5735) for our default empty zones.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218542 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218278:
ae [Fri, 11 Feb 2011 05:56:14 +0000 (05:56 +0000)]
MFC r218278:
  vdev's sectorsize should not be greater than 8 Kbytes and also
  it should be power of 2. This prevents non-aligned access while
  probing vdev's labels.

  PR: kern/147852

git-svn-id: svn://svn.freebsd.org/base/stable/8@218541 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 218142:
dougb [Fri, 11 Feb 2011 05:53:46 +0000 (05:53 +0000)]
MFC 218142:

Let rpcbind clean up after itself

git-svn-id: svn://svn.freebsd.org/base/stable/8@218539 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217314:
ae [Fri, 11 Feb 2011 05:48:44 +0000 (05:48 +0000)]
MFC r217314:
  Fix up the grammar.

  PR: docs/153933

MFC r217342,217343,217344 by maxim:
  o Typo fixes.

  o Start each sentence on a new line.  No content changes.

  o Somehow I revert Dd macro in the previous commit.

MFC r218015:
  Document the "bios-boot" partition type.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218537 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218014:
ae [Fri, 11 Feb 2011 05:37:05 +0000 (05:37 +0000)]
MFC r218014:
  Add new user-friendly aliases for partition types for the MBR and
  EBR schemes: fat32, ebr, linux-data, linux-raid, linux-swap and
  linux-lvm. Add bios-boot GUID and alias for the GPT scheme. It used by
  GRUB 2 loader. Also do sorting definitions of types in diskmbr.h
  and in g_part.c.

  PR: bin/120990, kern/147664

git-svn-id: svn://svn.freebsd.org/base/stable/8@218536 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217090:
jh [Wed, 9 Feb 2011 15:55:48 +0000 (15:55 +0000)]
MFC r217090:

Warn if rules could not be read from a ruleset file. Now at least
something gets logged if the file has syntax errors.

PR: conf/91342

git-svn-id: svn://svn.freebsd.org/base/stable/8@218489 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218189:
pluknet [Wed, 9 Feb 2011 15:32:04 +0000 (15:32 +0000)]
MFC r218189:

Remove OpenSolaris include path referring to a non-existing directory.

Reported by: arundel on freebsd-hackers@ via clang
Approved by: kib (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@218484 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r216961
marius [Tue, 8 Feb 2011 22:08:00 +0000 (22:08 +0000)]
MFC: r216961

Reserve INTR_MD[1-4] similarly to what BUS_DMA_BUS[1-4] are intended for
and switch sparc64 to use the first one for bus error filter handlers of
bridge drivers instead of (ab)using INTR_FAST for that so we eventually
can get rid of the latter.

Reviewed by: jhb

git-svn-id: svn://svn.freebsd.org/base/stable/8@218458 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r206903 (by imp):
kib [Tue, 8 Feb 2011 20:28:36 +0000 (20:28 +0000)]
MFC r206903 (by imp):
Make this file more C++ friendly.

Approved by: imp
Found by: jkim

git-svn-id: svn://svn.freebsd.org/base/stable/8@218454 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216675:
delphij [Tue, 8 Feb 2011 11:48:37 +0000 (11:48 +0000)]
MFC r216675:

Allow overriding pidfile and dumpfile.

PR: bin/153362
Submitted by: Joe Holden <joe rewt org uk>

git-svn-id: svn://svn.freebsd.org/base/stable/8@218433 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217946:
kib [Tue, 8 Feb 2011 09:28:28 +0000 (09:28 +0000)]
MFC r217946:
Add support for BIO_DELETE on swap-backed md(4).

git-svn-id: svn://svn.freebsd.org/base/stable/8@218431 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218168:
kib [Tue, 8 Feb 2011 09:25:32 +0000 (09:25 +0000)]
MFC r218168:
Only process as much array elements as we find the sockets during
second phase of gc.  Take linkage lock and recheck the eligibility
of the socket for gc, as well as call fhold() under the linkage lock.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218430 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218180 (= fixed r218169):
mm [Tue, 8 Feb 2011 08:44:08 +0000 (08:44 +0000)]
MFC r218180 (= fixed r218169):

For the ZFS kernel module, change the type of clock_t to int64_t.

The clock_t type in OpenSolaris is long (int64_t on amd64).
On FreeBSD clock_t is int32_t. The clock_t type is used in several places
in the ZFS code to store system uptime in milliseconds ("seconds * hz").

With hz=1000 we have a 32-bit integer overflow in 24 days, 20 hours,
31 minutes and 23.648 seconds. This has a user reported negative impact
on l2arc_feed_thread() and may cause unexpected results from other functions
using clock_t.

Reported by: Artem Belevich <fbsdlist@src.cx> on freebsd-fs@

git-svn-id: svn://svn.freebsd.org/base/stable/8@218429 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 212610:
gjb [Mon, 7 Feb 2011 19:12:30 +0000 (19:12 +0000)]
MFC 212610:
Synchronize newfs(8) manual with code.

PR: 61716
Approved by: keramida (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@218412 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 214374:
gjb [Mon, 7 Feb 2011 11:12:27 +0000 (11:12 +0000)]
MFC 214374:

Minor grammar fixes.

Approved by: keramida (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@218395 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215213:
brooks [Sun, 6 Feb 2011 13:59:03 +0000 (13:59 +0000)]
MFC r215213:

Add an (off by default) check for negative permissions (where the
group on a object has less permissions than everyone).  These
permissions will not work reliably over NFS if you have more than
14 supplemental groups and are usually not what you mean.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218372 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218098:
kib [Sun, 6 Feb 2011 09:33:08 +0000 (09:33 +0000)]
MFC r218098:
Make ldd(1) work when versioned dependency file is cannot be loaded.

MFC r218099:
Fix grammar.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218365 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218207:
emaste [Sun, 6 Feb 2011 01:13:10 +0000 (01:13 +0000)]
MFC r218207:

  Revert part of r173264.  Both aac_ioctl_sendfib and aac_ioctl_send_raw_srb
  make use of the aac_ioctl_event callback, if acc_alloc_command fails.
  This can end up in an infinite loop in the while loop in
  aac_release_command.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218362 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217821:
kib [Sat, 5 Feb 2011 23:02:55 +0000 (23:02 +0000)]
MFC r217821:
Document P_FOLLOWFORK.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218358 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217820:
kib [Sat, 5 Feb 2011 23:01:18 +0000 (23:01 +0000)]
MFC r217820:
Document PT_FLAG_FORKED, PT_FOLLOW_FORK, pl_tdname and pl_child_pid.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218357 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217819:
kib [Sat, 5 Feb 2011 22:57:14 +0000 (22:57 +0000)]
MFC r217819:
Allow debugger to specify that children of the traced process should be
automatically traced. Extend the ptrace(PL_LWPINFO) to report that child
just forked.

To not change the struct thread layout, td_dbg_forked was placed at the
end of the structure.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218355 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212999 (by jhb):
kib [Sat, 5 Feb 2011 22:04:20 +0000 (22:04 +0000)]
MFC r212999 (by jhb):
Copy td_rqindex during fork instead of zero'ing it to match the comments.

Approved by: jhb

git-svn-id: svn://svn.freebsd.org/base/stable/8@218353 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r198854 (by attilio):
kib [Sat, 5 Feb 2011 21:50:23 +0000 (21:50 +0000)]
MFC r198854 (by attilio):
Split P_NOLOAD into a per-thread flag (TDF_NOLOAD)

Approved by: attilio

git-svn-id: svn://svn.freebsd.org/base/stable/8@218352 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216019: sh: Make the test for cd/pwd with long pathnames more useful:
jilles [Sat, 5 Feb 2011 21:47:04 +0000 (21:47 +0000)]
MFC r216019: sh: Make the test for cd/pwd with long pathnames more useful:
* Use $(getconf PATH_MAX /) to make sure we actually exercise the hard part
* Delete our test area even if the test fails

git-svn-id: svn://svn.freebsd.org/base/stable/8@218351 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215766: sh: Pass multiple bytes at a time to lex.
jilles [Sat, 5 Feb 2011 21:40:57 +0000 (21:40 +0000)]
MFC r215766: sh: Pass multiple bytes at a time to lex.

This speeds up the expansion/arith6.0 test considerably.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218349 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215550: sh: Add a test that manipulates various long strings.
jilles [Sat, 5 Feb 2011 21:39:14 +0000 (21:39 +0000)]
MFC r215550: sh: Add a test that manipulates various long strings.

It is quite effective at detecting mistakes in memalloc.c and code using it.

It is somewhat slow, but some later changes improve it.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218348 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217774:
mav [Sat, 5 Feb 2011 21:34:26 +0000 (21:34 +0000)]
MFC r217774:
ICH7 SATA controller in legacy mode can provide access to SATA registers
via AHCI-like memory resource at BAR(5). Use it if BIOS was so kind to
allocate memory for that BAR. This allows hot-plug support and connection
speed reporting.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218347 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216496: sh: Fix corruption of command substitutions with special chars
jilles [Sat, 5 Feb 2011 21:24:37 +0000 (21:24 +0000)]
MFC r216496: sh: Fix corruption of command substitutions with special chars
after newline.

The CTLESC byte to protect a special character was output before instead of
after a newline directly preceding the special character.

The special handling of newlines is because command substitutions discard
all trailing newlines.

git-svn-id: svn://svn.freebsd.org/base/stable/8@218346 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f