* Sebastian Hammer, Adam Dickmeiss
*
* $Log: bfile.c,v $
- * Revision 1.5 1994-08-18 08:10:08 quinn
+ * Revision 1.8 1994-08-23 15:03:34 quinn
+ * *** empty log message ***
+ *
+ * Revision 1.7 1994/08/23 14:25:45 quinn
+ * Added O_CREAT because some geek wanted it. Sheesh.
+ *
+ * Revision 1.6 1994/08/23 14:21:38 quinn
+ * Fixed call to log
+ *
+ * Revision 1.5 1994/08/18 08:10:08 quinn
* Minimal changes
*
* Revision 1.4 1994/08/17 14:27:32 quinn
{
BFile tmp = xmalloc(sizeof(BFile_struct));
- if ((tmp->fd = open(name, wflag ? O_RDWR : O_RDONLY, 0666)) < 0)
+ if ((tmp->fd = open(name, wflag ? O_RDWR|O_CREAT : O_RDONLY, 0666)) < 0)
{
- log(LOG_FATAL, "open: %s");
+ log(LOG_FATAL|LOG_ERRNO, "open %s", name);
return(0);
}
tmp->block_size = block_size;