* commit '950c6250ad5c67700d4bffcaa0671b4c145fa563': Enable property expansion for insmod
This commit is contained in:
commit
cf0a113811
1 changed files with 10 additions and 1 deletions
|
@ -58,7 +58,16 @@ extern "C" int init_module(void *, unsigned long, const char *);
|
|||
static int insmod(const char *filename, char *options)
|
||||
{
|
||||
std::string module;
|
||||
if (!read_file(filename, &module)) {
|
||||
char filename_val[PROP_VALUE_MAX];
|
||||
int ret;
|
||||
|
||||
ret = expand_props(filename_val, filename, sizeof(filename_val));
|
||||
if (ret) {
|
||||
ERROR("insmod: cannot expand '%s'\n", filename);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (!read_file(filename_val, &module)) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue