[Pkg-gnupg-commit] [gnupg2] 25/241: common: Make sure tilde expansion works for the mkdir functions.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Dec 9 20:31:49 UTC 2015
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit c3bb9fccb7963a0918b9ec6a4f10d568fac7c125
Author: Neal H. Walfield <neal at g10code.com>
Date: Tue Oct 20 12:10:03 2015 +0200
common: Make sure tilde expansion works for the mkdir functions.
* common/mkdir_p.c (gnupg_amkdir_p): Use make_filename_try on the
first directory component as well.
--
If there is only a single directory component, then tilde expansion
won't be done.
Signed-off-by: Neal H. Walfield <neal at g10code.com>
---
common/mkdir_p.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/mkdir_p.c b/common/mkdir_p.c
index 2e93d65..37b44ec 100644
--- a/common/mkdir_p.c
+++ b/common/mkdir_p.c
@@ -60,7 +60,7 @@ gnupg_amkdir_p (const char **directory_components)
for (i = 0; directory_components[i]; i ++)
{
if (i == 0)
- dirs[i] = xtrystrdup (directory_components[i]);
+ dirs[i] = make_filename_try (directory_components[i], NULL);
else
dirs[i] = make_filename_try (dirs[i-1], directory_components[i], NULL);
if (!dirs[i])
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list