URI:
       Pass name of shell as first parameter of child process - utmp - simple login manager  
  HTML git clone git://git.suckless.org/utmp
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit c282965520a0d8bcc2b8c2f010fd96ad063a25c3
   DIR parent f9178df173d9c16ad238617f0ea155160c74a002
  HTML Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
       Date:   Thu,  7 Aug 2014 14:31:08 +0200
       
       Pass name of shell as first parameter of child process
       
       This is important because this is the value that is usually
       shown by ps (and it is also used by some windows managers to
       display who is running).
       
       Diffstat:
         M utmp.c                              |       3 ++-
       
       1 file changed, 2 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/utmp.c b/utmp.c
       @@ -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));