Set mode in constructor

This commit is contained in:
topjohnwu
2019-02-23 15:22:11 -05:00
parent 9c89e56c56
commit 4a398642b8
3 changed files with 9 additions and 14 deletions

View File

@ -27,7 +27,9 @@ struct cpio_entry : public cpio_entry_base {
std::string filename;
cpio_entry() = default;
explicit cpio_entry(const char *name) : filename(name) {}
explicit cpio_entry(const char *name, uint32_t mode) : filename(name) {
this->mode = mode;
}
cpio_entry(int fd, cpio_newc_header &header);
~cpio_entry() override;
};