upas: don't hardcode path for rc(1)

This commit is contained in:
Sören Tempel 2021-10-31 17:46:35 +01:00 committed by Dan Cross
parent c53230037a
commit 45124b23d2
2 changed files with 4 additions and 1 deletions

View file

@ -825,7 +825,8 @@ imapdial(char *server, int mode)
fd[0] = dup(p[0], -1); fd[0] = dup(p[0], -1);
fd[1] = dup(p[0], -1); fd[1] = dup(p[0], -1);
fd[2] = dup(2, -1); fd[2] = dup(2, -1);
if(threadspawnl(fd, "/usr/local/plan9/bin/rc", "rc", "-c", server, nil) < 0){ /* could do better - use get9root for rc(1) path */
if(threadspawnl(fd, PLAN9_TARGET "/bin/rc", "rc", "-c", server, nil) < 0){
close(p[0]); close(p[0]);
close(p[1]); close(p[1]);
close(fd[0]); close(fd[0]);

View file

@ -16,3 +16,5 @@ HFILES=a.h box.h imap.h sx.h
<$PLAN9/src/mkone <$PLAN9/src/mkone
imap.$O: imap.c
$CC $CFLAGS -DPLAN9_TARGET=\"$PLAN9_TARGET\" imap.c