]> Zhao Yanbai Git Server - minix.git/commitdiff
Joren's proposed fix for a too-conservative split point selection.
authorBen Gras <ben@minix3.org>
Mon, 10 Jul 2006 15:05:33 +0000 (15:05 +0000)
committerBen Gras <ben@minix3.org>
Mon, 10 Jul 2006 15:05:33 +0000 (15:05 +0000)
(Making building packages with long filenames difficult.)

commands/pax/tar.c

index f6861ded46a792eace9fa6272d15a6eb0540e4e9..3ec4e6649867dc3197bca8a54fb06b362497bea1 100644 (file)
@@ -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;