write_sha1_from_fd() should make new objects read-only
... like it is done everywhere else. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
0e55181f29
commit
b5b8d8141a
@ -2154,6 +2154,7 @@ int write_sha1_from_fd(const unsigned char *sha1, int fd, char *buffer,
|
||||
} while (1);
|
||||
inflateEnd(&stream);
|
||||
|
||||
fchmod(local, 0444);
|
||||
close(local);
|
||||
SHA1_Final(real_sha1, &c);
|
||||
if (ret != Z_STREAM_END) {
|
||||
|
Loading…
Reference in New Issue
Block a user