tar_rom: let unkown file throw Root::Invalid_args

This commit is contained in:
Norman Feske 2013-01-17 08:23:54 +01:00
parent 61dd83a329
commit e5b30847db
1 changed files with 4 additions and 1 deletions

View File

@ -148,7 +148,10 @@ class Rom_session_component : public Genode::Rpc_object<Genode::Rom_session>
_tar_addr(tar_addr), _filename(filename), _file_addr(0), _file_size(0),
_tar_size(tar_size),
_file_ds(_init_file_ds())
{ }
{
if (!_file_ds.valid())
throw Genode::Root::Invalid_args();
}
/**
* Destructor