svn commit: r211864 - head/bin/pax

Brian Somers brian at FreeBSD.org
Fri Aug 27 08:54:40 UTC 2010


Author: brian
Date: Fri Aug 27 08:54:40 2010
New Revision: 211864
URL: http://svn.freebsd.org/changeset/base/211864

Log:
  Fix an off-by-one error where we try to split a path name that's
  more than 100 characters long and the 101th last character is a
  '/'.
  
  MFC after:	3 weeks

Modified:
  head/bin/pax/tar.c

Modified: head/bin/pax/tar.c
==============================================================================
--- head/bin/pax/tar.c	Fri Aug 27 08:05:44 2010	(r211863)
+++ head/bin/pax/tar.c	Fri Aug 27 08:54:40 2010	(r211864)
@@ -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;
 


More information about the svn-src-head mailing list