Commit Diff


commit - 24a4d8019b7b2937f03fc86f47048f599ec6617c
commit + d20cd3851233c5fcfd89337f428bf85b45f1f6d7
blob - ffea25d3cd3c9a40e3e30a28596301817a43a610
blob + 35d57fbf3697f6938be9aa05c68f1e60bd31f1ea
--- gotwebd/got_operations.c
+++ gotwebd/got_operations.c
@@ -63,9 +63,6 @@ got_gotweb_closefile(FILE *f)
 	if (err == NULL && ftruncate(fileno(f), 0) == -1)
 		err = got_error_from_errno("ftruncate");
 
-	if (err == NULL && fsync(fileno(f)) == -1)
-		err = got_error_from_errno("fsync");
-
 	if (fclose(f) == EOF && err == NULL)
 		err = got_error_from_errno("fclose");