Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
@@ -76,8 +76,10 @@ void fs_open(char *path,int rw)
{
struct stat stbuf;
- if ((fd = open(path,rw ? O_RDWR : O_RDONLY)) < 0)
- pdie("open %s",path);
+ if ((fd = open(path,rw ? O_RDWR : O_RDONLY)) < 0) {
+ perror("open");
+ exit(6);
+ }
changes = last = NULL;
did_change = 0;