aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/sam
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-11-23 17:50:36 +0000
committerrsc <devnull@localhost>2003-11-23 17:50:36 +0000
commite6c4346b5030d843343fcdb61dc046f69ef90915 (patch)
tree8b07d30a384bb8a40dc551d4c4c35101cb0b72e7 /src/cmd/sam
parentd8b652ae6f0034a9c8c63699b98e62775f7831db (diff)
downloadplan9port-e6c4346b5030d843343fcdb61dc046f69ef90915.tar.gz
plan9port-e6c4346b5030d843343fcdb61dc046f69ef90915.tar.bz2
plan9port-e6c4346b5030d843343fcdb61dc046f69ef90915.zip
Use execvp to avoid hard-coding path names for ssh, samterm.
Diffstat (limited to 'src/cmd/sam')
-rw-r--r--src/cmd/sam/io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/sam/io.c b/src/cmd/sam/io.c
index c0669631..b7317a9b 100644
--- a/src/cmd/sam/io.c
+++ b/src/cmd/sam/io.c
@@ -187,7 +187,7 @@ bootterm(char *machine, char **argv, char **end)
close(remotefd1);
argv[0] = "samterm";
*end = 0;
- exec(samterm, argv);
+ execvp(samterm, argv);
fprint(2, "can't exec %s: %r\n", samterm);
_exits("damn");
}
@@ -203,7 +203,7 @@ bootterm(char *machine, char **argv, char **end)
close(pt2h[1]);
argv[0] = "samterm";
*end = 0;
- exec(samterm, argv);
+ execvp(samterm, argv);
fprint(2, "can't exec: ");
perror(samterm);
_exits("damn");
@@ -237,7 +237,7 @@ connectto(char *machine)
close(p1[1]);
close(p2[0]);
close(p2[1]);
- execl(RXPATH, RX, machine, rsamname, "-R", (char*)0);
+ execlp(RXPATH, RX, machine, rsamname, "-R", (char*)0);
dprint("can't exec %s\n", RXPATH);
exits("exec");