diff options
author | Werner Koch <[email protected]> | 2017-07-25 13:22:48 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-07-25 13:22:48 +0000 |
commit | 24c7aa0d58e3768690dd8ebef0e8e01af7e80f83 (patch) | |
tree | c27759daa763eff5f4539533ccde5dea3dc22ff3 /configure.ac | |
parent | w32: Also change the directory on daemon startup. (diff) | |
download | gnupg-24c7aa0d58e3768690dd8ebef0e8e01af7e80f83.tar.gz gnupg-24c7aa0d58e3768690dd8ebef0e8e01af7e80f83.zip |
common: Strip trailing slashes from the homedir.
* common/homedir.c (default_homedir): Strip trailing slashes.
(gnupg_set_homedir): Ditto.
--
is_gnupg_default_homedir() does not ignore trailing slashes when
comparing directory names. This can lead to multiple agents started
on the same directory if the homedir was specified with --homedir or
GNUPGHOME without or with a number of slashes.
We now make sure that the home directory name never ends in a
slash (except for the roo of course).
GnuPG-bug-id: 3295
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 02ee1a225..764a62d34 100644 --- a/configure.ac +++ b/configure.ac @@ -486,7 +486,8 @@ AH_BOTTOM([ #define SAFE_VERSION_DOT '.' #define SAFE_VERSION_DASH '-' -/* Some global constants. */ +/* Some global constants. + * Note that the homedir must not end in a slash. */ #ifdef HAVE_DOSISH_SYSTEM # ifdef HAVE_DRIVE_LETTERS # define GNUPG_DEFAULT_HOMEDIR "c:/gnupg" |