Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
tar.3547
tar-1.27.1-extract_pathname_bypass.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tar-1.27.1-extract_pathname_bypass.patch of Package tar.3547
Index: lib/paxnames.c =================================================================== --- lib/paxnames.c.orig +++ lib/paxnames.c @@ -18,6 +18,7 @@ #include <system.h> #include <hash.h> #include <paxlib.h> +#include <quotearg.h> /* Hash tables of strings. */ @@ -114,7 +115,15 @@ safer_name_suffix (char const *file_name for (p = file_name + prefix_len; *p; ) { if (p[0] == '.' && p[1] == '.' && (ISSLASH (p[2]) || !p[2])) - prefix_len = p + 2 - file_name; + { + static char const *const diagnostic[] = + { + N_("%s: Member name contains '..'"), + N_("%s: Hard link target contains '..'") + }; + FATAL_ERROR ((0, 0, _(diagnostic[link_target]), + quotearg_colon (file_name))); + } do {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor