1 /* vi: set sw=4 ts=4: */
3 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
6 #include "bb_archive.h"
8 const char* FAST_FUNC strip_unsafe_prefix(const char *str)
17 if (is_prefixed_with(cp, "/../"+1)) {
21 cp2 = strstr(cp, "/../");
27 static smallint warned = 0;
30 bb_error_msg("removing leading '%.*s' from member names",
31 (int)(cp - str), str);