Author: brian
Date: Sun Sep 19 11:22:22 2010
New Revision: 212849
URL: http://svn.freebsd.org/changeset/base/212849

Log:
  MFC r211864,211963,211964,211965, don't mis-handle path names of
  101 characters beginning with '/'.

Added:
  stable/7/tools/regression/bin/Makefile
     - copied unchanged from r211964, head/tools/regression/bin/Makefile
  stable/7/tools/regression/bin/pax/
     - copied from r211963, head/tools/regression/bin/pax/
Modified:
  stable/7/bin/pax/pax.1
  stable/7/bin/pax/tar.c
  stable/7/tools/regression/bin/pax/Makefile
Directory Properties:
  stable/7/bin/pax/   (props changed)
  stable/7/tools/   (props changed)
  stable/7/tools/build/   (props changed)
  stable/7/tools/build/options/   (props changed)
  stable/7/tools/debugscripts/   (props changed)
  stable/7/tools/regression/atm/   (props changed)
  stable/7/tools/regression/bin/sh/   (props changed)
  stable/7/tools/regression/file/   (props changed)
  stable/7/tools/regression/file/flock/   (props changed)
  stable/7/tools/regression/usr.bin/   (props changed)
  stable/7/tools/regression/usr.bin/jot/   (props changed)
  stable/7/tools/regression/usr.bin/tr/   (props changed)
  stable/7/tools/sched/   (props changed)
  stable/7/tools/test/   (props changed)
  stable/7/tools/tools/aac/   (props changed)
  stable/7/tools/tools/crypto/   (props changed)
  stable/7/tools/tools/editing/   (props changed)
  stable/7/tools/tools/nanobsd/   (props changed)
  stable/7/tools/tools/nanobsd/FlashDevice.sub   (props changed)
  stable/7/tools/tools/nanobsd/nanobsd.sh   (props changed)
  stable/7/tools/tools/usb/   (props changed)

Modified: stable/7/bin/pax/pax.1
==============================================================================
--- stable/7/bin/pax/pax.1      Sun Sep 19 11:16:49 2010        (r212848)
+++ stable/7/bin/pax/pax.1      Sun Sep 19 11:22:22 2010        (r212849)
@@ -33,7 +33,7 @@
 .\"    @(#)pax.1       8.4 (Berkeley) 4/18/94
 .\" $FreeBSD$
 .\"
-.Dd July 3, 2004
+.Dd August 29, 2010
 .Dt PAX 1
 .Os
 .Sh NAME
@@ -748,7 +748,9 @@ The extended tar interchange format spec
 .St -p1003.2
 standard.
 The default blocksize for this format is 10240 bytes.
-Pathnames stored by this format must be 250 characters or less in length.
+Pathnames stored by this format must be 255 characters or less in length.
+The directory part may be at most 155 characters and each path component
+must be less than 100 characters.
 .El
 .Pp
 The

Modified: stable/7/bin/pax/tar.c
==============================================================================
--- stable/7/bin/pax/tar.c      Sun Sep 19 11:16:49 2010        (r212848)
+++ stable/7/bin/pax/tar.c      Sun Sep 19 11:22:22 2010        (r212849)
@@ -1086,7 +1086,7 @@ name_split(char *name, int len)
         */
        if (len <= TNMSZ)
                return(name);
-       if (len > (TPFSZ + TNMSZ + 1))
+       if (len > TPFSZ + TNMSZ)
                return(NULL);
 
        /*
@@ -1095,7 +1095,7 @@ name_split(char *name, int len)
         * to find the biggest piece to fit in the name field (or the smallest
         * prefix we can find)
         */
-       start = name + len - TNMSZ - 1;
+       start = name + len - TNMSZ;
        while ((*start != '\0') && (*start != '/'))
                ++start;
 

Copied: stable/7/tools/regression/bin/Makefile (from r211964, 
head/tools/regression/bin/Makefile)
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ stable/7/tools/regression/bin/Makefile      Sun Sep 19 11:22:22 2010        
(r212849, copy of r211964, head/tools/regression/bin/Makefile)
@@ -0,0 +1,5 @@
+# $FreeBSD$
+
+SUBDIR=        date mv pax sh
+
+.include <bsd.subdir.mk>

Modified: stable/7/tools/regression/bin/pax/Makefile
==============================================================================
--- head/tools/regression/bin/pax/Makefile      Sun Aug 29 11:56:56 2010        
(r211963)
+++ stable/7/tools/regression/bin/pax/Makefile  Sun Sep 19 11:22:22 2010        
(r212849)
@@ -1,6 +1,6 @@
 # $FreeBSD$
 
-test:
+all test:
        prove -vmw regress.t
 
 clean:
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to