--- utmp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utmp.c b/utmp.c index 6ab5289..c893ae1 100644 --- a/utmp.c +++ b/utmp.c _AT_@ -56,7 +56,8 @@ main(int argc, char *argv[]) switch (fork()) { case 0: - execv(getenv("SHELL"), ++argv); + argv[0] = getenv("SHELL"); + execv(argv[0], argv); die("error executing shell:%s", strerror(errno)); case -1: die("error spawning child:%s", strerror(errno)); -- 2.0.1Received on Thu Aug 07 2014 - 14:31:08 CEST
This archive was generated by hypermail 2.3.0 : Thu Aug 07 2014 - 14:36:07 CEST