mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +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>
This commit is contained in:
parent
4dcef0e178
commit
18e5dd7b03
22 changed files with 82 additions and 33 deletions
|
@ -197,7 +197,7 @@ begin_transaction (ctrl_t ctrl, int only_batch)
|
|||
/* Check if another process wants to run. (We just ignore any
|
||||
* stat failure. A waiter might have to wait a bit longer, but
|
||||
* otherwise there should be no impact.) */
|
||||
if (stat (dbs->want_lock_file, &statbuf) == 0
|
||||
if (gnupg_stat (dbs->want_lock_file, &statbuf) == 0
|
||||
&& statbuf.st_ctime != dbs->want_lock_file_ctime)
|
||||
{
|
||||
end_transaction (ctrl, 2);
|
||||
|
@ -237,7 +237,7 @@ begin_transaction (ctrl_t ctrl, int only_batch)
|
|||
dbs->in_batch_transaction = 1;
|
||||
dbs->batch_update_started = gnupg_get_time ();
|
||||
|
||||
if (stat (dbs->want_lock_file, &statbuf) == 0)
|
||||
if (gnupg_stat (dbs->want_lock_file, &statbuf) == 0)
|
||||
dbs->want_lock_file_ctime = statbuf.st_ctime;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue