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>
This commit is contained in:
parent
4dcef0e178
commit
18e5dd7b03
22 changed files with 82 additions and 33 deletions
|
@ -1574,7 +1574,7 @@ check_permissions (const char *path, int item)
|
|||
}
|
||||
|
||||
/* It's okay if the file or directory doesn't exist */
|
||||
if(stat(tmppath,&statbuf)!=0)
|
||||
if (gnupg_stat (tmppath,&statbuf))
|
||||
{
|
||||
ret=0;
|
||||
goto end;
|
||||
|
@ -1585,7 +1585,7 @@ check_permissions (const char *path, int item)
|
|||
I'm stopping at one level down. */
|
||||
dir=make_dirname(tmppath);
|
||||
|
||||
if(stat(dir,&dirbuf)!=0 || !S_ISDIR(dirbuf.st_mode))
|
||||
if (gnupg_stat (dir,&dirbuf) || !S_ISDIR (dirbuf.st_mode))
|
||||
{
|
||||
/* Weird error */
|
||||
ret=1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue