mirror of
https://git.proxmox.com/git/libgit2
synced 2025-12-31 20:20:15 +00:00
gitfo_exists: replace call to stat() with access()
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Andreas Ericsson <ae@op5.se>
This commit is contained in:
parent
ac04bdf6e0
commit
4d503f884a
@ -55,8 +55,7 @@ int gitfo_write(git_file fd, void *buf, size_t cnt)
|
||||
|
||||
int gitfo_exists(const char *path)
|
||||
{
|
||||
struct stat sb;
|
||||
return stat(path, &sb);
|
||||
return access(path, F_OK);
|
||||
}
|
||||
|
||||
off_t gitfo_size(git_file fd)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user