summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
06c6d68)
Leonardo Rangel <lrangel@linux.vnet.ibm.com>
if (!fspec.file)
goto out;
if (!fspec.file)
goto out;
+ strcpy(fspec.file, "/etc/");
strcat(fspec.file, prom_get_ip(packet));
strcat(fspec.file, prom_get_ip(packet));
- while (strlen(fspec.file)) {
+ while (strlen(strrchr(fspec.file, '/')+1)) {
rc = load_config_file(&fspec);
if (rc)
goto out;
rc = load_config_file(&fspec);
if (rc)
goto out;