{
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)