tarfile copy filename too
This commit is contained in:
@@ -40,6 +40,7 @@ class tarball {
|
||||
// Seemingly, stringstream is non-copyable.
|
||||
tarfile() {}
|
||||
tarfile(const tarfile& other) {
|
||||
filename = other.filename;
|
||||
contents.str("");
|
||||
contents << other.contents.str();
|
||||
}
|
||||
|
Reference in New Issue
Block a user