diff options
Diffstat (limited to 'image/backends/tar.cc')
-rw-r--r-- | image/backends/tar.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/image/backends/tar.cc b/image/backends/tar.cc index 279a11c..f9309a1 100644 --- a/image/backends/tar.cc +++ b/image/backends/tar.cc @@ -81,10 +81,10 @@ public: int fd, r, code = 0; struct stat s; void *buff; + std::string target = this->ir_dir + "/target"; - for(const auto& dent : fs::recursive_directory_iterator(this->ir_dir, - ec)) { - fs::path relpath = dent.path().lexically_relative(this->ir_dir); + for(const auto& dent : fs::recursive_directory_iterator(target, ec)) { + fs::path relpath = dent.path().lexically_relative(target); #define OUTPUT_FAILURE(x) \ output_error("tar backend", "failed to " x " '" + std::string(dent.path()) + "'",\ strerror(errno)); |