X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=csum-file.c;h=907efbf860152347bffe0cc999fdacad2a5f0724;hb=1cadb5a2719eef7dc4e707ee2f796c94661f4622;hp=c8c7369152cd2b744aae488eb794c12ffbdfe9b9;hpb=4397f0148ad0967cf3a2d794fb3d6b2c7f8738d7;p=git.git diff --git a/csum-file.c b/csum-file.c index c8c73691..907efbf8 100644 --- a/csum-file.c +++ b/csum-file.c @@ -86,7 +86,7 @@ struct sha1file *sha1create(const char *fmt, ...) die("you wascally wabbit, you"); f->namelen = len; - fd = open(f->name, O_CREAT | O_EXCL | O_WRONLY, 0644); + fd = open(f->name, O_CREAT | O_EXCL | O_WRONLY, 0666); if (fd < 0) die("unable to open %s (%s)", f->name, strerror(errno)); f->fd = fd;