Changeset View
Changeset View
Standalone View
Standalone View
devel/elfutils/files/patch-src_elfcompress.c
--- src/elfcompress.c.orig 2016-12-28 01:32:01.000000000 -0800 | --- src/elfcompress.c.orig 2020-03-30 12:17:45 UTC | ||||
+++ src/elfcompress.c 2017-01-18 16:21:03.680565000 -0800 | +++ src/elfcompress.c | ||||
@@ -135,7 +135,10 @@ | @@ -135,7 +135,10 @@ parse_opt (int key, char *arg __attribute__ ((unused)) | ||||
if (type == T_UNSET) | if (type == T_UNSET) | ||||
type = T_COMPRESS_ZLIB; | type = T_COMPRESS_ZLIB; | ||||
if (patterns == NULL) | if (patterns == NULL) | ||||
- add_pattern (".?(z)debug*"); | - add_pattern (".?(z)debug*"); | ||||
+ { | + { | ||||
+ add_pattern (".debug*"); | + add_pattern (".debug*"); | ||||
+ add_pattern (".zdebug*"); | + add_pattern (".zdebug*"); | ||||
+ } | + } | ||||
break; | break; | ||||
case ARGP_KEY_NO_ARGS: | case ARGP_KEY_NO_ARGS: | ||||
@@ -162,7 +165,7 @@ | @@ -162,7 +165,7 @@ section_name_matches (const char *name) | ||||
struct section_pattern *pattern = patterns; | struct section_pattern *pattern = patterns; | ||||
while (pattern != NULL) | while (pattern != NULL) | ||||
{ | { | ||||
- if (fnmatch (pattern->pattern, name, FNM_EXTMATCH) == 0) | - if (fnmatch (pattern->pattern, name, FNM_EXTMATCH) == 0) | ||||
+ if (fnmatch (pattern->pattern, name, 0) == 0) | + if (fnmatch (pattern->pattern, name, 0) == 0) | ||||
return true; | return true; | ||||
pattern = pattern->next; | pattern = pattern->next; | ||||
} | } |