13
0

Fix session-archive extraction on Windows

Inside the archive forward slash is used as dir-separator,
regardless of OS.
This commit is contained in:
Robin Gareus 2021-03-11 19:13:51 +01:00
parent 48225c10bd
commit 6e0a1d9fd7
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -229,8 +229,7 @@ inflate_session (const std::string& zipfile, const std::string& target_dir, stri
return 4;
}
string sn = Glib::build_filename (bn, bn + statefile_suffix);
string sn = bn + "/" + bn + statefile_suffix;
if (std::find (files.begin(), files.end(), sn) == files.end()) {
error << _("Archive does not contain a session file") << endmsg;
return 5;