shithub: riscv

Download patch

ref: 4d0343c9d2db502c162f5050385ba5528aef2a47
parent: dbbe430ec7c2188883f48990030c4ecb6575faa1
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Mar 18 15:52:31 EDT 2015

dhcpd: ignore ";" filename from sgi arcs bootp(); command

--- a/sys/src/cmd/ip/dhcpd/dhcpd.c
+++ b/sys/src/cmd/ip/dhcpd/dhcpd.c
@@ -932,6 +932,10 @@
 	} else
 		slowdelay(rp);
 
+	/* ignore file for sgi arcs command bootp(); */
+	if(strcmp(bp->file, ";") == 0)
+		*bp->file = 0;
+
 	/* ignore if we don't know what file to load */
 	if(*bp->file == 0){
 		if(rp->genrequest && *iip->bootf2) /* if not plan 9 & have alternate file... */