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:
Ramsay Jones 2009-06-04 16:48:53 +01:00 committed by Andreas Ericsson
parent ac04bdf6e0
commit 4d503f884a

View File

@ -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)