You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
501 B
13 lines
501 B
7 years ago
|
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);
|