summaryrefslogtreecommitdiff
path: root/mkfs
diff options
context:
space:
mode:
Diffstat (limited to 'mkfs')
-rw-r--r--mkfs/mkfs.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/mkfs/mkfs.c b/mkfs/mkfs.c
index 2facc51..fe3fa02 100644
--- a/mkfs/mkfs.c
+++ b/mkfs/mkfs.c
@@ -143,18 +143,9 @@ static int read_fstree(fstree_t *fs, options_t *opt, sqfs_xattr_writer_t *xwr,
return -1;
}
- if (set_working_dir(opt)) {
- fclose(fp);
- return -1;
- }
-
ret = fstree_from_file(fs, opt->infile, fp);
-
fclose(fp);
- if (restore_working_dir(opt))
- return -1;
-
if (ret == 0 && selinux_handle != NULL)
ret = relabel_tree_dfs(xwr, fs->root, selinux_handle);