From dc765806682d6151088752cd2e7479ab1ba44c3c Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Thu, 14 Dec 2017 02:48:32 +0100 Subject: [PATCH] cmd/acme: removed obsolete PATH manipulation --- sys/src/cmd/acme/exec.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/sys/src/cmd/acme/exec.c b/sys/src/cmd/acme/exec.c index e1f057f..dc12375 100644 --- a/sys/src/cmd/acme/exec.c +++ b/sys/src/cmd/acme/exec.c @@ -1203,7 +1203,7 @@ runproc(void *argvp) /* end of args */ char *e, *t, *name, *filename, *dir, **av, *news; Rune r, **incl; - int ac, w, inarg, i, n, fd, nincl, winid; + int ac, w, inarg, i, n, nincl, winid; int pipechar; char buf[512]; void **argv; @@ -1367,24 +1367,6 @@ runproc(void *argvp) Hard: - /* - * ugly: set PATH = (/cmd . $CPUTYPE) - * should honor $PATH if unusual. - */ - if(cputype){ - n = 0; - memmove(buf+n, "/cmd:", 5); - n += 5; - memmove(buf+n, ".:", 2); - n += 2; - i = strlen(cputype)+1; - memmove(buf+n, cputype, i); - n += i; - fd = ocreate("/env/PATH", OWRITE, 0666); - write(fd, buf, n); - close(fd); - } - if(arg){ news = emalloc(strlen(t) + 1 + 1 + strlen(arg) + 1 + 1); if(news){