Fix session-archive extraction on Windows
Inside the archive forward slash is used as dir-separator, regardless of OS.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user