From ae4ef707834b00be5c699484c4c43ff8aeb6ceb1 Mon Sep 17 00:00:00 2001 From: David Shaw Date: Thu, 16 Jan 2003 19:09:04 +0000 Subject: [PATCH] * g10.c (add_group): Trim whitespace after a group name so it does not matter where the user puts the = sign. --- g10/ChangeLog | 3 +++ g10/g10.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/g10/ChangeLog b/g10/ChangeLog index f4716a98d..2c99a23de 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,5 +1,8 @@ 2003-01-16 David Shaw + * g10.c (add_group): Trim whitespace after a group name so it does + not matter where the user puts the = sign. + * options.skel: Comment out the first three lines in case someone manually copies the skel file to their homedir. diff --git a/g10/g10.c b/g10/g10.c index d9de9139a..ea98e0b11 100644 --- a/g10/g10.c +++ b/g10/g10.c @@ -837,6 +837,8 @@ static void add_group(char *string) return; } + trim_trailing_ws(name,strlen(name)); + /* Break apart the values */ while ((value=strsep (&string," \t"))) {