X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=csum-file.c;h=907efbf860152347bffe0cc999fdacad2a5f0724;hb=f3d9f3546b2280aa794922f97501dbf01fc97e38;hp=c8c7369152cd2b744aae488eb794c12ffbdfe9b9;hpb=b43d44779bf98977b211256f936d0edda8a9625a;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;