From: Ben Gras Date: Mon, 10 Jul 2006 15:05:33 +0000 (+0000) Subject: Joren's proposed fix for a too-conservative split point selection. X-Git-Tag: v3.1.3~256 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doc/syslog.3.html?a=commitdiff_plain;h=b52a51652177dcd1c13c5e6ba4a5acf4cfeb6e72;p=minix.git Joren's proposed fix for a too-conservative split point selection. (Making building packages with long filenames difficult.) --- diff --git a/commands/pax/tar.c b/commands/pax/tar.c index f6861ded4..3ec4e6649 100644 --- a/commands/pax/tar.c +++ b/commands/pax/tar.c @@ -1094,6 +1094,11 @@ name_split(char *name, int len) * prefix we can find) */ start = name + len - TNMSZ - 1; + + /* Don't split at first '/'. */ + if (start == name && *start == '/') + ++start; + while ((*start != '\0') && (*start != '/')) ++start;