From: Paul Nasrat Date: Thu, 17 May 2007 10:27:23 +0000 (+0100) Subject: Now we stop truncating characters for pxelinux style boot at the directory seperator. X-Git-Tag: yaboot-1.3.14~8 X-Git-Url: https://git.ozlabs.org/?p=yaboot.git;a=commitdiff_plain;h=1d2796d399a2076511df671e2f35eb0869085a6a Now we stop truncating characters for pxelinux style boot at the directory seperator. Leonardo Rangel --- diff --git a/second/yaboot.c b/second/yaboot.c index 6eef8d6..6b31cb0 100644 --- a/second/yaboot.c +++ b/second/yaboot.c @@ -489,9 +489,10 @@ static int load_my_config_file(struct boot_fspec_t *orig_fspec) if (!fspec.file) goto out; + strcpy(fspec.file, "/etc/"); 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;