ref: 890b97fa08c541e020888c2514cadebe8b812d2e
parent: 8f80e3d5df320af46887952662738fde6b1d84c8
author: cinap_lenrek <[email protected]>
date: Sun Dec 18 17:36:14 EST 2022
aux/depend: post to /srv instead of #s
--- a/sys/src/cmd/aux/depend.c
+++ b/sys/src/cmd/aux/depend.c
@@ -284,7 +284,6 @@
fprint(2, "usage: %s [-d] svc-name directory\n", argv0);
exits("usage");
}
- snprint(service, sizeof service, "#s/%s", argv[0]);
if(argv[1][0] != '/')
fatal("directory must be rooted");
@@ -291,7 +290,7 @@
if(pipe(pfd) < 0)
fatal("opening pipe: %r");
- /* Typically mounted before /srv exists */
+ snprint(service, sizeof service, "/srv/%s", argv[0]);
srv = create(service, OWRITE, 0666);
if(srv < 0)
fatal("post: %r");