git: 9front

Download patch

ref: 9f7d1df146f728aad9c0cbad2da4b0429da8af2b
parent: 266ef73798985f93e9336d2928de25f1f8fd22dc
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Jan 9 09:44:23 EST 2023

sshnet: mount BEFORE /net (preserving /net/tls and /net/dns)

--- a/sys/man/4/sshnet
+++ b/sys/man/4/sshnet
@@ -34,7 +34,7 @@
 presents the remote server's TCP stack as a network stack
 (see the discussion of TCP in
 .IR ip (3))
-mounted at
+mounted before
 .I mtpt
 (default
 .BR /net ),
--- a/sys/src/cmd/sshnet.c
+++ b/sys/src/cmd/sshnet.c
@@ -1445,7 +1445,7 @@
 
 	ssh(argc, argv);
 
-	threadpostmountsrv(&fs, service, mtpt, MREPL);
+	threadpostmountsrv(&fs, service, mtpt, MBEFORE);
 
 	threadexits(nil);
 }
--