aboutsummaryrefslogtreecommitdiffstats
path: root/g10/pkclist.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/pkclist.c')
-rw-r--r--g10/pkclist.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/g10/pkclist.c b/g10/pkclist.c
index a5dfa23bc..c56dc3cda 100644
--- a/g10/pkclist.c
+++ b/g10/pkclist.c
@@ -695,7 +695,7 @@ default_recipient(void)
static STRLIST
expand_groups(STRLIST input)
{
- STRLIST output=NULL,rover;
+ STRLIST sl,output=NULL,rover;
struct groupitem *groups;
for(rover=input;rover;rover=rover->next)
@@ -709,7 +709,11 @@ expand_groups(STRLIST input)
/* maintain current utf8-ness */
for(each=groups->values;each;each=each->next)
- add_to_strlist(&output,each->d);
+ {
+ sl=add_to_strlist(&output,each->d);
+ /* maintain the flags from the original */
+ sl->flags=each->flags;
+ }
break;
}
@@ -717,7 +721,10 @@ expand_groups(STRLIST input)
/* Didn't find any groups, so use the existing string */
if(!groups)
- add_to_strlist(&output,rover->d);
+ {
+ sl=add_to_strlist(&output,rover->d);
+ sl->flags=rover->flags;
+ }
}
return output;