diff options
Diffstat (limited to 'lib/io/src/unix/istream.c')
-rw-r--r-- | lib/io/src/unix/istream.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/io/src/unix/istream.c b/lib/io/src/unix/istream.c index 39d570f..ca9a183 100644 --- a/lib/io/src/unix/istream.c +++ b/lib/io/src/unix/istream.c @@ -144,11 +144,10 @@ fail_free: sqfs_istream_t *istream_open_file(const char *path) { + sqfs_file_handle_t fd; sqfs_istream_t *out; - int fd; - fd = open(path, O_RDONLY); - if (fd < 0) { + if (sqfs_open_native_file(&fd, path, SQFS_FILE_OPEN_READ_ONLY)) { perror(path); return NULL; } |