#include #include #define DIR "@l_prefix@/libexec/rt" #define PROG "@l_prefix@/libexec/rt/tools/rt-mailgate" int main(int argc, char *argv[]) { static char *const myenv[] = { "PATH=/bin:/usr/bin", NULL }; if (chdir(DIR) == -1) { perror("chdir"); exit(1); } execve(PROG, argv, myenv); }