diff options
author | Werner Koch <[email protected]> | 2020-10-20 14:38:06 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2020-10-20 14:38:06 +0000 |
commit | 18e5dd7b03ced51611c9ba1345cf498a0aaf14a6 (patch) | |
tree | faeb1e27f9ffdb049f2e0dec728229d9fd7703b6 /common/mkdir_p.c | |
parent | Replace most calls to open by a new wrapper. (diff) | |
download | gnupg-18e5dd7b03ced51611c9ba1345cf498a0aaf14a6.tar.gz gnupg-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 <[email protected]>
Diffstat (limited to 'common/mkdir_p.c')
-rw-r--r-- | common/mkdir_p.c | 2 |
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)) { |