From b52a51652177dcd1c13c5e6ba4a5acf4cfeb6e72 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Mon, 10 Jul 2006 15:05:33 +0000 Subject: [PATCH] Joren's proposed fix for a too-conservative split point selection. (Making building packages with long filenames difficult.) --- commands/pax/tar.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.44.0