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>
Backported-from-master: 18e5dd7b03
)
This commit is contained in:
parent
86e52e3c33
commit
157030271f
20 changed files with 77 additions and 28 deletions
|
@ -139,7 +139,7 @@ be_take_lock_for_create (ctrl_t ctrl, const char *fname, dotlock_t *r_lock)
|
|||
}
|
||||
|
||||
/* Check again that the file does not exist. */
|
||||
err = stat (fname, &sb)? 0 : gpg_error (GPG_ERR_EEXIST);
|
||||
err = gnupg_stat (fname, &sb)? 0 : gpg_error (GPG_ERR_EEXIST);
|
||||
|
||||
leave:
|
||||
if (!err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue