aboutsummaryrefslogtreecommitdiff
path: root/bin/tar2sqfs/src
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-07-02 19:50:05 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-07-10 09:22:04 +0200
commite7ecb1f92ae618a56ee8eabb6cbf98365de3695a (patch)
tree8d6d53df2c1654ecf5f4c587d8b7b2592a68c4f2 /bin/tar2sqfs/src
parentec593e0b94656a5481f82ee0f33728ced297ac48 (diff)
Move sqfs_dir_entry_t code from libio into libsquashfs
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin/tar2sqfs/src')
-rw-r--r--bin/tar2sqfs/src/process_tarball.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/tar2sqfs/src/process_tarball.c b/bin/tar2sqfs/src/process_tarball.c
index ecb9095..331936d 100644
--- a/bin/tar2sqfs/src/process_tarball.c
+++ b/bin/tar2sqfs/src/process_tarball.c
@@ -101,7 +101,7 @@ static int create_node_and_repack_data(sqfs_writer_t *sqfs, dir_iterator_t *it,
goto fail_errno;
if (!cfg.quiet) {
- if (ent->flags & DIR_ENTRY_FLAG_HARD_LINK) {
+ if (ent->flags & SQFS_DIR_ENTRY_FLAG_HARD_LINK) {
printf("Hard link %s -> %s\n", ent->name, link);
} else {
printf("Packing %s\n", ent->name);
@@ -130,7 +130,7 @@ fail_errno:
static int set_root_attribs(sqfs_writer_t *sqfs, dir_iterator_t *it,
const sqfs_dir_entry_t *ent)
{
- if ((ent->flags & DIR_ENTRY_FLAG_HARD_LINK) || !S_ISDIR(ent->mode)) {
+ if ((ent->flags & SQFS_DIR_ENTRY_FLAG_HARD_LINK) || !S_ISDIR(ent->mode)) {
fprintf(stderr, "'%s' is not a directory!\n", ent->name);
return -1;
}
@@ -204,7 +204,7 @@ int process_tarball(dir_iterator_t *it, sqfs_writer_t *sqfs)
}
if (link != NULL &&
- ((ent->flags & DIR_ENTRY_FLAG_HARD_LINK) ||
+ ((ent->flags & SQFS_DIR_ENTRY_FLAG_HARD_LINK) ||
!no_symlink_retarget)) {
if (canonicalize_name(link) == 0 &&
!strncmp(link, root_becomes, rootlen) &&