aboutsummaryrefslogtreecommitdiff
path: root/bin/gensquashfs/mkfs.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-02-18 22:05:48 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-02-18 23:50:46 +0100
commitd9549b3d288a9cb053ab5198f3bc2d277b72600f (patch)
tree706703ac00a27ceae211a2e230f519fbc1bb73e8 /bin/gensquashfs/mkfs.h
parent9e510d4ae6dbad555a3416fbe041f4aa8189cbde (diff)
gensquashfs: always construct input path during option processing
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin/gensquashfs/mkfs.h')
-rw-r--r--bin/gensquashfs/mkfs.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/gensquashfs/mkfs.h b/bin/gensquashfs/mkfs.h
index e1e4e1b..c43c10a 100644
--- a/bin/gensquashfs/mkfs.h
+++ b/bin/gensquashfs/mkfs.h
@@ -42,10 +42,13 @@ typedef struct {
sqfs_writer_cfg_t cfg;
unsigned int dirscan_flags;
const char *infile;
- const char *packdir;
const char *selinux;
bool no_tail_packing;
+ /* copied from command line or constructed from infile argument
+ if not specified. Must be free'd. */
+ char *packdir;
+
unsigned int force_uid_value;
unsigned int force_gid_value;
bool force_uid;