diff -Naur gpart-0.1h-orig/src/gpart.c gpart-0.1h/src/gpart.c --- gpart-0.1h-orig/src/gpart.c 2001-02-07 20:08:08 +0200 +++ gpart-0.1h/src/gpart.c 2008-11-05 17:55:22 +0200 @@ -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,0600)) < 0) return (ret); if (write(fd,d->d_pt.t_boot,512) == 512)