From owner-svn-src-all@FreeBSD.ORG Fri Aug 27 08:54:40 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA17D1065698; Fri, 27 Aug 2010 08:54:40 +0000 (UTC) (envelope-from brian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B985E8FC16; Fri, 27 Aug 2010 08:54:40 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o7R8seik069412; Fri, 27 Aug 2010 08:54:40 GMT (envelope-from brian@svn.freebsd.org) Received: (from brian@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o7R8sesF069410; Fri, 27 Aug 2010 08:54:40 GMT (envelope-from brian@svn.freebsd.org) Message-Id: <201008270854.o7R8sesF069410@svn.freebsd.org> From: Brian Somers Date: Fri, 27 Aug 2010 08:54:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r211864 - head/bin/pax X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 08:54:40 -0000 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;