--- src/gpart.c 2001-02-07 18:08:08.000000000 +0000 +++ src/gpart.c 2009-03-10 21:29:43.000000000 +0000 @@ -1221,7 +1221,7 @@ { int fd, ret = 0; - if ((fd = open(bfile,O_WRONLY|O_CREAT)) < 0) + if ((fd = open(bfile,O_WRONLY|O_CREAT,0644)) < 0) return (ret); if (write(fd,d->d_pt.t_boot,512) == 512)