Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
write_in_full: really write in full or return error on disk full.
[gitweb.git]
/
path.c
diff --git
a/path.c
b/path.c
index 066f62195508033a5f72504e4805ea436424296e..bb5ee7bf99780b6c4069dd9833994b24f1577e82 100644
(file)
--- a/
path.c
+++ b/
path.c
@@
-113,7
+113,7
@@
int validate_symref(const char *path)
fd = open(path, O_RDONLY);
if (fd < 0)
return -1;
- len = read(fd, buffer, sizeof(buffer)-1);
+ len = read
_in_full
(fd, buffer, sizeof(buffer)-1);
close(fd);
/*