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