diff options
author | Max Rees <maxcrees@me.com> | 2020-06-03 04:52:46 -0500 |
---|---|---|
committer | Max Rees <maxcrees@me.com> | 2020-06-03 04:52:46 -0500 |
commit | a35b8fb842aea68c0b374b651d385344fadaa04e (patch) | |
tree | 63eaa8255733376ad804416f3829b68039b3d61f /image | |
parent | 1f685acece95b06b62cab8d81cc26e29d6c13967 (diff) | |
download | horizon-a35b8fb842aea68c0b374b651d385344fadaa04e.tar.gz horizon-a35b8fb842aea68c0b374b651d385344fadaa04e.tar.bz2 horizon-a35b8fb842aea68c0b374b651d385344fadaa04e.tar.xz horizon-a35b8fb842aea68c0b374b651d385344fadaa04e.zip |
image: fix a few paths from escaping target/
Diffstat (limited to 'image')
-rw-r--r-- | image/backends/iso.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/image/backends/iso.cc b/image/backends/iso.cc index a7e2dd7..4563c97 100644 --- a/image/backends/iso.cc +++ b/image/backends/iso.cc @@ -85,7 +85,7 @@ bool copy_volume_icon_to(fs::path ir_dir) { } bool write_etc_mtab_to(fs::path target) { - std::ofstream mtab(target.append("/etc/conf.d/mtab")); + std::ofstream mtab(target.append("etc/conf.d/mtab")); if(!mtab) { output_error("CD backend", "failed to open mtab configuration"); return false; @@ -101,7 +101,7 @@ bool write_etc_mtab_to(fs::path target) { } bool write_fstab_to(fs::path target) { - std::ofstream fstab{target.append("/etc/fstab")}; + std::ofstream fstab{target.append("etc/fstab")}; if(!fstab) { output_error("CD backend", "failed to open fstab"); return false; @@ -127,7 +127,7 @@ bool write_fstab_to(fs::path target) { bool write_etc_issue_to(fs::path target) { error_code ec; - const fs::path dest{target.append("/etc/issue")}; + const fs::path dest{target.append("etc/issue")}; const fs::path src{find_data_file("issue")}; if(src.has_filename()) { |