shithub: riscv

Download patch

ref: 44fae0b28cb1a66a3becb5528f7813ac42bc7696
parent: e2509e7653a9845c7901e297e5c0da679322eee5
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Dec 12 15:47:01 EST 2022

ndb/dns, ndb/cs: post to /srv instead of #s

--- a/sys/src/cmd/ndb/cs.c
+++ b/sys/src/cmd/ndb/cs.c
@@ -245,7 +245,7 @@
 	netinit(0);
 
 	if(!justsetname){
-		snprint(servefile, sizeof(servefile), "#s/cs%s", ext);
+		snprint(servefile, sizeof(servefile), "/srv/cs%s", ext);
 		unmount(servefile, mntpt);
 		remove(servefile);
 
--- a/sys/src/cmd/ndb/dns.c
+++ b/sys/src/cmd/ndb/dns.c
@@ -189,7 +189,7 @@
 	nowns = nsec();
 	dnsuser = estrdup(getuser());
 
-	snprint(servefile, sizeof servefile, "#s/dns%s", ext);
+	snprint(servefile, sizeof servefile, "/srv/dns%s", ext);
 	dir = dirstat(servefile);
 	if (dir)
 		sysfatal("%s exists; another dns instance is running",