From 525a4fb2c423dbbeeb1e6da3254f334044b7bd7f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 26 Mar 2010 19:03:22 +1100 Subject: util: on FreeBSD true is in /usr/bin. Use execvp to find it --- lib/util/util_runcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/util/util_runcmd.c b/lib/util/util_runcmd.c index ef897d469f..54643d3292 100644 --- a/lib/util/util_runcmd.c +++ b/lib/util/util_runcmd.c @@ -183,7 +183,7 @@ struct tevent_req *samba_runcmd_send(TALLOC_CTX *mem_ctx, } va_end(ap); - ret = execv(state->arg0, argv); + ret = execvp(state->arg0, argv); fprintf(stderr, "Failed to exec child - %s\n", strerror(errno)); _exit(255); return NULL; -- cgit