The branch main has been updated by sjg:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=f9890204b5dbb46940d120a629ca90fbf15c499a

commit f9890204b5dbb46940d120a629ca90fbf15c499a
Author:     Simon J. Gerraty <s...@freebsd.org>
AuthorDate: 2025-06-02 05:28:21 +0000
Commit:     Simon J. Gerraty <s...@freebsd.org>
CommitDate: 2025-06-02 05:28:21 +0000

    install: must set netproto for tftp://
    
    tftp_open requires netproto is NET_TFTP
    
    Reviewed by:    stevek
---
 stand/common/install.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/stand/common/install.c b/stand/common/install.c
index b827b1fe9da2..249eca1648f3 100644
--- a/stand/common/install.c
+++ b/stand/common/install.c
@@ -212,6 +212,7 @@ install(char *pkgname)
        if (i == 4 && !strncasecmp(pkgname, "tftp", i)) {
                devname = "net0";
                devnamelen = 4;
+               netproto = NET_TFTP;
                proto = &tftp_fsops;
        } else if (i == 4 && !strncasecmp(pkgname, "file", i)) {
                currdev = getenv("currdev");

Reply via email to