mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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>
Backported-from-master: 18e5dd7b03
)
This commit is contained in:
parent
86e52e3c33
commit
157030271f
20 changed files with 77 additions and 28 deletions
|
@ -271,7 +271,7 @@ cleanup_cache_dir (int force)
|
|||
if (force)
|
||||
okay = 1;
|
||||
else
|
||||
okay = (!stat (cdbname, &sbuf) && S_ISREG (sbuf.st_mode));
|
||||
okay = (!gnupg_stat (cdbname, &sbuf) && S_ISREG (sbuf.st_mode));
|
||||
|
||||
if (okay)
|
||||
{
|
||||
|
|
|
@ -2044,7 +2044,7 @@ handle_tick (void)
|
|||
|
||||
/* Check whether the homedir is still available. */
|
||||
if (!shutdown_pending
|
||||
&& stat (gnupg_homedir (), &statbuf) && errno == ENOENT)
|
||||
&& gnupg_stat (gnupg_homedir (), &statbuf) && errno == ENOENT)
|
||||
{
|
||||
shutdown_pending = 1;
|
||||
log_info ("homedir has been removed - shutting down\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue