upas: don't hardcode path for rc(1)
This commit is contained in:
parent
c53230037a
commit
45124b23d2
2 changed files with 4 additions and 1 deletions
|
|
@ -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]);
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue