The source project of this merge request has been removed.
Fix execution in sudo path
The LD_LIBRARY_PATH variable has to be explicitly passed on the sudo command line, since sudo is itself a suid executable.
The final execvp() call has to take the program from the argument list, since it depends on if we wrap it into sudo or not. Since we construct the path we can use execv() and don't do a search in PATH.
Tested with systemd pmgserver v1.0.1 RPM.
Debugging PMG/pmglauncher is a pain