abduco

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit 5ac6537927da6d344915aa7890b7707c473be485
parent 03499b32797886175b8d268f9e3129541c03f3ba
Author: Brandon Mulcahy <brandon@jangler.info>
Date:   Sat,  8 Nov 2014 12:42:57 -0500

Use more descriptive execvp error message

Diffstat:
abduco.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/abduco.c b/abduco.c @@ -311,7 +311,8 @@ static bool create_session(const char *name, char * const argv[]) { fcntl(client_pipe[1], F_SETFD, FD_CLOEXEC); fcntl(server_pipe[1], F_SETFD, FD_CLOEXEC); execvp(argv[0], argv); - snprintf(errormsg, sizeof(errormsg), "server-execvp: %s\n", strerror(errno)); + snprintf(errormsg, sizeof(errormsg), "server-execvp: %s: %s\n", + argv[0], strerror(errno)); write_all(client_pipe[1], errormsg, strlen(errormsg)); write_all(server_pipe[1], errormsg, strlen(errormsg)); close(client_pipe[1]);