]> CyberLeo.Net >> Repos - FreeBSD/releng/9.1.git/commit
MFS r239854 (including MFC r239601, r239602, r239621):
authorjamie <jamie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 29 Aug 2012 18:40:12 +0000 (18:40 +0000)
committerjamie <jamie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 29 Aug 2012 18:40:12 +0000 (18:40 +0000)
commit47dc4afdc09716f1c3d802090ba6821f2267e3f1
tree195b2b6d89a575085ce04dec3403539d3f4390d0
parenta91ee45011f20c4b5356753f006b0f81e56fdb2b
MFS r239854 (including MFC r239601, r239602, r239621):

 Remember that I'm using length-defined strings in parameters:

  Don't include the null terminator when recomputing the parameter
  length when stripping the netmask from IP addresses.  This was
  causing later addresses in a comma-separated string to disappear.

  Use memcpy instead of strcpy.  This could just cause Bad Things.

  Add a null byte when comma-combining array parameters.

  Pre-separate IP addresses passed on the command line, so they can be
  properly parsed for interface prefixes and netmask suffixes.  This was
  already done for the old-style (fixed) command line, but missed for
  the new-style.

PR: 170832
Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/releng/9.1@239871 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/jail/config.c
usr.sbin/jail/jail.c