summaryrefslogtreecommitdiff
path: root/mkfs/mkfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'mkfs/mkfs.c')
-rw-r--r--mkfs/mkfs.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/mkfs/mkfs.c b/mkfs/mkfs.c
index b11dce0..8ee2268 100644
--- a/mkfs/mkfs.c
+++ b/mkfs/mkfs.c
@@ -68,24 +68,11 @@ static int pack_files(data_writer_t *data, fstree_t *fs, options_t *opt)
static int read_fstree(fstree_t *fs, options_t *opt)
{
- unsigned int flags;
FILE *fp;
int ret;
- if (opt->infile == NULL) {
- flags = 0;
-
- if (opt->keep_time)
- flags |= DIR_SCAN_KEEP_TIME;
-
- if (opt->one_filesystem)
- flags |= DIR_SCAN_ONE_FILESYSTEM;
-
- if (opt->keep_xattr)
- flags |= DIR_SCAN_READ_XATTR;
-
- return fstree_from_dir(fs, opt->packdir, flags);
- }
+ if (opt->infile == NULL)
+ return fstree_from_dir(fs, opt->packdir, opt->dirscan_flags);
fp = fopen(opt->infile, "rb");
if (fp == NULL) {