hlfw.ca

task

Download patch

ref: 759814888eb9e89c061b62fe9c615308ab52fa2c
parent: 7cf1af9413c8f980c7472cef01fc09164638cbe7
author: Michael Misch <michaelmisch1985@gmail.com>
date: Sun Aug 25 15:09:19 PDT 2024

"Use

--- a/proj.c
+++ b/proj.c
@@ -66,12 +66,11 @@
 		nb = read(0, buf+n, sizeof buf - n);
 		buf[n + nb - 1] = 0;
 		path = buf+n;
-print(path);
-
 	} else {
 		path = argv[0];
 		snprint(buf, sizeof buf, "%s/namespace.%s", nsdir, argv[0]);
 	}
+	execl("aux/stub", "-d", wdir);
 	if(addns(user, buf) < 0){
 		fprint(2, "can't addns: %r\n");
 		exits("addns");
@@ -90,7 +89,7 @@
 	}
 	if(plumb){
 		// Messy, blegh.
-		snprint(pbuf, sizeof(pbuf), "plumb\n%s\n%s\ntext\nmessage=\'project: %s\'\n3\nnan", plumb, getenv("home"), path);
+		snprint(pbuf, sizeof(pbuf), "plumb\n%s\n/mnt/work\ntext\nmessage=%s\n3\nnan", plumb, path);
 		pm = plumbunpack(pbuf, strlen(pbuf));
 		pfd = plumbopen("send", OWRITE);
 		plumbsend(pfd, pm);