summaryrefslogtreecommitdiffstats
path: root/common/mkdir_p.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-10-20 16:38:06 +0200
committerWerner Koch <wk@gnupg.org>2020-10-20 16:38:06 +0200
commit18e5dd7b03ced51611c9ba1345cf498a0aaf14a6 (patch)
treefaeb1e27f9ffdb049f2e0dec728229d9fd7703b6 /common/mkdir_p.c
parentReplace most calls to open by a new wrapper. (diff)
downloadgnupg2-18e5dd7b03ced51611c9ba1345cf498a0aaf14a6.tar.xz
gnupg2-18e5dd7b03ced51611c9ba1345cf498a0aaf14a6.zip
Replace all calls to stat by gnupg_stat.
* common/sysutils.c (gnupg_stat): New. * common/sysutils.h: Include sys/stat.h. -- Yet another wrapper for Unicode support on Windows. GnuPG-bug-id: 5098 Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'common/mkdir_p.c')
-rw-r--r--common/mkdir_p.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/mkdir_p.c b/common/mkdir_p.c
index c26cfee01..6fb98c370 100644
--- a/common/mkdir_p.c
+++ b/common/mkdir_p.c
@@ -78,7 +78,7 @@ gnupg_amkdir_p (const char **directory_components)
/* log_debug ("%s: stat(%s)\n", __func__, dirs[i]); */
- if (!stat (dirs[i], &s))
+ if (!gnupg_stat (dirs[i], &s))
{
if ( ! S_ISDIR (s.st_mode))
{