diff -ur a/src/gpart.c b/src/gpart.c --- a/src/gpart.c 2009-11-30 10:39:30.000000000 +0800 +++ b/src/gpart.c 2009-11-30 10:41:09.000000000 +0800 @@ -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)