summaryrefslogtreecommitdiff
path: root/src/keytrans/gnutls-helpers.c
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-09-04 20:14:31 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2008-09-04 20:14:31 -0400
commit990c334442c6c8cb5a7a6c0b4d11c0a8d3adac6d (patch)
tree67d7c17e09387b90c18c9b38adb878af9e02b66c /src/keytrans/gnutls-helpers.c
parent39b7ac2ee279beca0df23787b5216c630207f646 (diff)
switch from execv to execvp to find base64 wherever it is in the path.
Diffstat (limited to 'src/keytrans/gnutls-helpers.c')
-rw-r--r--src/keytrans/gnutls-helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keytrans/gnutls-helpers.c b/src/keytrans/gnutls-helpers.c
index 7c4348d..8d8ec17 100644
--- a/src/keytrans/gnutls-helpers.c
+++ b/src/keytrans/gnutls-helpers.c
@@ -387,7 +387,7 @@ int create_writing_pipe(pid_t* pid, const char* path, char* const argv[]) {
err(0,"Failed to transfer reading file descriptor to stdin (error: %d \"%s\")\n", errno, strerror(errno));
exit(1);
}
- execv(path, argv);
+ execvp(path, argv);
err(0,"exec %s failed (error: %d \"%s\")\n", path, errno, strerror(errno));
/* close the open file descriptors */
close(p[0]);