diff options
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -1415,17 +1415,6 @@ strip_leading_slashes (char *name, int strip_leading) n = p+1; } } - if (IS_ABSOLUTE_FILE_NAME (n)) - fatal ("rejecting absolute file name: %s", quotearg (n)); - for (p = n; *p; ) - { - if (*p == '.' && *++p == '.' && ( ! *++p || ISSLASH (*p))) - fatal ("rejecting file name with \"..\" component: %s", quotearg (n)); - while (*p && ! ISSLASH (*p)) - p++; - while (ISSLASH (*p)) - p++; - } if ((strip_leading < 0 || s <= 0) && *n) { memmove (name, n, strlen (n) + 1); |