Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Aug 2010 08:54:40 +0000 (UTC)
From:      Brian Somers <brian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r211864 - head/bin/pax
Message-ID:  <201008270854.o7R8sesF069410@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008270854.o7R8sesF069410>