diff options
Diffstat (limited to 'bin/gensquashfs/src/filemap_xattr.c')
-rw-r--r-- | bin/gensquashfs/src/filemap_xattr.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/gensquashfs/src/filemap_xattr.c b/bin/gensquashfs/src/filemap_xattr.c index 89624f4..8843c46 100644 --- a/bin/gensquashfs/src/filemap_xattr.c +++ b/bin/gensquashfs/src/filemap_xattr.c @@ -159,8 +159,12 @@ xattr_open_map_file(const char *path) { struct XattrMap *map; size_t line_num = 1; char *p = NULL; - sqfs_istream_t *file = istream_open_file(path); - if (file == NULL) { + sqfs_istream_t *file = NULL; + int ret; + + ret = istream_open_file(&file, path); + if (ret) { + sqfs_perror(path, NULL, ret); return NULL; } |