Parent Directory | Revision Log | Revision Graph
Sudo
1 | diff -up sudo-1.8.6p3/src/sesh.c.arg0fix sudo-1.8.6p3/src/sesh.c |
2 | --- sudo-1.8.6p3/src/sesh.c.arg0fix 2014-05-19 12:47:29.326716729 +0200 |
3 | +++ sudo-1.8.6p3/src/sesh.c 2014-05-19 12:47:51.810798125 +0200 |
4 | @@ -214,6 +214,8 @@ cleanup_0: |
5 | if (argv[-1][0] == '-') { |
6 | if ((cp = strrchr(argv[0], '/')) == NULL) |
7 | cp = argv[0]; |
8 | + else |
9 | + argv[0] = cp; |
10 | *cp = '-'; |
11 | } |
12 | sudo_execve(cmnd, argv, envp, noexec); |
admin@koozali.org | ViewVC Help |
Powered by ViewVC 1.2.1 |