File gpart-0.1h-glibc_2.7_open.patch of Package gpart
--- src/gpart.c.orig
+++ src/gpart.c
@@ -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,0660)) < 0)
return (ret);
if (write(fd,d->d_pt.t_boot,512) == 512)