upas: don't hardcode path for rc(1)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user