Blob Blame History Raw
diff -up sudo-1.8.6p7/src/sesh.c.sesh_loginshell sudo-1.8.6p7/src/sesh.c
--- sudo-1.8.6p7/src/sesh.c.sesh_loginshell	2014-02-26 12:37:59.735214882 +0100
+++ sudo-1.8.6p7/src/sesh.c	2014-02-26 12:38:05.535235487 +0100
@@ -214,6 +214,8 @@ cleanup_0:
         if (argv[-1][0] == '-') {
             if ((cp = strrchr(argv[0], '/')) == NULL)
                 cp = argv[0];
+            else
+                argv[0] = cp;
             *cp = '-';
         }
         sudo_execve(cmnd, argv, envp, noexec);