Loading logwrapper/logwrap.c +2 −2 Original line number Diff line number Diff line Loading @@ -227,7 +227,7 @@ int logwrap(int argc, char* argv[], int *status) { dup2(child_ptty, 2); close(child_ptty); child(argc - 1, &argv[1]); child(argc, argv); fatal("This should never happen\n"); return -1; } else { Loading Loading @@ -268,7 +268,7 @@ int logwrap(int argc, char* argv[], int *status) { setgid(AID_LOG); setuid(AID_LOG); rc = parent(argv[1], parent_ptty, sockets[1], pid, status); rc = parent(argv[0], parent_ptty, sockets[1], pid, status); } close(sockets[0]); Loading logwrapper/logwrapper.c +1 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ int main(int argc, char* argv[]) { usage(); } rc = logwrap(argc, argv, &status); rc = logwrap(argc - 1, &argv[1], &status); if (!rc) { if (WIFEXITED(status)) rc = WEXITSTATUS(status); Loading Loading
logwrapper/logwrap.c +2 −2 Original line number Diff line number Diff line Loading @@ -227,7 +227,7 @@ int logwrap(int argc, char* argv[], int *status) { dup2(child_ptty, 2); close(child_ptty); child(argc - 1, &argv[1]); child(argc, argv); fatal("This should never happen\n"); return -1; } else { Loading Loading @@ -268,7 +268,7 @@ int logwrap(int argc, char* argv[], int *status) { setgid(AID_LOG); setuid(AID_LOG); rc = parent(argv[1], parent_ptty, sockets[1], pid, status); rc = parent(argv[0], parent_ptty, sockets[1], pid, status); } close(sockets[0]); Loading
logwrapper/logwrapper.c +1 −1 Original line number Diff line number Diff line Loading @@ -59,7 +59,7 @@ int main(int argc, char* argv[]) { usage(); } rc = logwrap(argc, argv, &status); rc = logwrap(argc - 1, &argv[1], &status); if (!rc) { if (WIFEXITED(status)) rc = WEXITSTATUS(status); Loading