]> Dogcows Code - chaz/tar/commitdiff
(safer_name_suffix): Skip leading ./
authorSergey Poznyakoff <gray@gnu.org.ua>
Thu, 13 Nov 2003 22:27:23 +0000 (22:27 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Thu, 13 Nov 2003 22:27:23 +0000 (22:27 +0000)
src/names.c

index 951a9677dad95cff8badc80fd84330186032b34e..66648a08810460579849f18d80331b233edca67a 100644 (file)
@@ -1026,7 +1026,9 @@ safer_name_suffix (char const *file_name, bool link_target)
        {
          if (p[0] == '.' && p[1] == '.' && (ISSLASH (p[2]) || !p[2]))
            prefix_len = p + 2 - file_name;
-
+         else if (p[0] == '.' && ISSLASH (p[1]))
+           prefix_len = p + 1 - file_name;
+         
          do
            {
              char c = *p++;
This page took 0.025432 seconds and 4 git commands to generate.