- int fd;
- int res;
-
- (void) fi;
- char *_path = prepend_source_directory(path);
- fd = open(_path, O_WRONLY);
- free(_path);
-
- if (fd == -1)
- return -errno;
-
- res = pwrite(fd, buf, size, offset);
+ int res = pwrite(fi->fh, buf, size, offset);