pass the correct file to fdopen(); ok tracey
diff --git a/lib/object.c b/lib/object.c
index a2fb22f..d2ba8bf 100644
--- a/lib/object.c
+++ b/lib/object.c
@@ -1428,7 +1428,7 @@ open_blob(struct got_blob_object **blob, struct got_repository *repo,
goto done;
}
- (*blob)->f = fdopen(outfd, "rb");
+ (*blob)->f = fdopen(dfd, "rb");
if ((*blob)->f == NULL) {
err = got_error_from_errno("fdopen");
close(dfd);