]> git.lizzy.rs Git - plan9front.git/commitdiff
dhcpd: ignore ";" filename from sgi arcs bootp(); command
authorcinap_lenrek <cinap_lenrek@felloff.net>
Wed, 18 Mar 2015 18:52:31 +0000 (19:52 +0100)
committercinap_lenrek <cinap_lenrek@felloff.net>
Wed, 18 Mar 2015 18:52:31 +0000 (19:52 +0100)
sys/src/cmd/ip/dhcpd/dhcpd.c

index 885c141641476a2d4dc5de1739ab9ea918161336..b5faaadb5c17e1d6cd0adfe99e59c423f3655938 100644 (file)
@@ -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... */