Commit 4d503f88 by Ramsay Jones Committed by Andreas Ericsson

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>
parent ac04bdf6
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment