Now we stop truncating characters for pxelinux style boot at the directory seperator.
authorPaul Nasrat <pnasrat@redhat.com>
Thu, 17 May 2007 10:27:23 +0000 (11:27 +0100)
committerPaul Nasrat <pauln@enki.eridu>
Thu, 17 May 2007 10:27:23 +0000 (11:27 +0100)
Leonardo Rangel <lrangel@linux.vnet.ibm.com>

second/yaboot.c

index 6eef8d69ccc94a170694106f0dcbe70b40421b8f..6b31cb0af0797fa7ef0c2b373da040b58b851c6b 100644 (file)
@@ -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;