buffer.c: generate an warning instead of error in buffer_write()
This commit is contained in:
parent
313816c425
commit
13330c322d
1 changed files with 1 additions and 1 deletions
2
buffer.c
2
buffer.c
|
|
@ -108,7 +108,7 @@ int buffer_write(struct buffer *b, const char *filename) {
|
|||
|
||||
fd = open(filename, O_WRONLY | O_CREAT | O_EXCL, 0664);
|
||||
if (fd < 0)
|
||||
return error("%s: %s", filename, strerror(errno));
|
||||
return warn("%s: %s", filename, strerror(errno));
|
||||
|
||||
rc = write(fd, b->block, b->len);
|
||||
close(fd);
|
||||
|
|
|
|||
Reference in a new issue