Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'sg/t3020-typofix'
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index ea78ba7cf062c92fe78e67ff4c0f5a0607e6aebd..08302f5857b8ad298809adf04a6bffc136f843a4 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-1494,7
+1494,10
@@
int git_open_noatime(const char *name)
static int sha1_file_open_flag = O_NOATIME;
for (;;) {
- int fd = open(name, O_RDONLY | sha1_file_open_flag);
+ int fd;
+
+ errno = 0;
+ fd = open(name, O_RDONLY | sha1_file_open_flag);
if (fd >= 0)
return fd;