summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-03-18 19:52:31 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2015-03-18 19:52:31 +0100
commit4d0343c9d2db502c162f5050385ba5528aef2a47 (patch)
treee8c9e915fc874239129b9e70095680000793c5ec
parentdbbe430ec7c2188883f48990030c4ecb6575faa1 (diff)
downloadplan9front-4d0343c9d2db502c162f5050385ba5528aef2a47.tar.xz
dhcpd: ignore ";" filename from sgi arcs bootp(); command
-rw-r--r--sys/src/cmd/ip/dhcpd/dhcpd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/src/cmd/ip/dhcpd/dhcpd.c b/sys/src/cmd/ip/dhcpd/dhcpd.c
index 885c14164..b5faaadb5 100644
--- a/sys/src/cmd/ip/dhcpd/dhcpd.c
+++ b/sys/src/cmd/ip/dhcpd/dhcpd.c
@@ -932,6 +932,10 @@ bootp(Req *rp)
} 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... */