aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-06-12 19:11:35 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-06-15 13:38:25 +0200
commit1f506a17903f5eeaded9065e42726c1a09dc6f89 (patch)
tree6f3cff994ca5794ef41777845ebc7ff6d41525cb /bin
parenteb9a4b9034453ae3093d678a6f3898303dc5a5a0 (diff)
libio: flip the meaning of the ostream_t sparse flag
Instead of "open sparse", make that the default and turn it into a "no sparse" flag. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin')
-rw-r--r--bin/rdsquashfs/src/fill_files.c2
-rw-r--r--bin/sqfsdiff/src/extract.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/bin/rdsquashfs/src/fill_files.c b/bin/rdsquashfs/src/fill_files.c
index afc790e..372752a 100644
--- a/bin/rdsquashfs/src/fill_files.c
+++ b/bin/rdsquashfs/src/fill_files.c
@@ -142,7 +142,7 @@ static int fill_files(sqfs_data_reader_t *data, int flags)
openflags = OSTREAM_OPEN_OVERWRITE;
if (flags & UNPACK_NO_SPARSE)
- openflags |= OSTREAM_OPEN_SPARSE;
+ openflags |= OSTREAM_OPEN_NO_SPARSE;
for (i = 0; i < num_files; ++i) {
fp = ostream_open_file(files[i].path, openflags);
diff --git a/bin/sqfsdiff/src/extract.c b/bin/sqfsdiff/src/extract.c
index 7e745cf..a956480 100644
--- a/bin/sqfsdiff/src/extract.c
+++ b/bin/sqfsdiff/src/extract.c
@@ -21,8 +21,7 @@ static int extract(sqfs_data_reader_t *data, const sqfs_inode_generic_t *inode,
return -1;
*ptr = '/';
- fp = ostream_open_file(temp, OSTREAM_OPEN_OVERWRITE |
- OSTREAM_OPEN_SPARSE);
+ fp = ostream_open_file(temp, OSTREAM_OPEN_OVERWRITE);
if (fp == NULL) {
perror(temp);
return -1;