Skip to content

Commit

Permalink
Removes debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Jun 2, 2015
1 parent b31605c commit 7e73538
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions rpzsudo.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,6 @@
#include <sys/types.h>
#include <unistd.h>

void printids(char *header)
{
uid_t ruid, euid, saveduid;
gid_t rgid, egid, savedgid;
getresuid(&ruid, &euid, &saveduid);
getresgid(&rgid, &egid, &savedgid);
printf("%s ruid=%d euid=%d saveduid=%d "
"rgid=%d egid=%d savedgid=%d\n",
header,
ruid, euid, saveduid,
rgid, egid, savedgid);
}

uid_t parse(char *arg)
{
if(arg[0] == '#')
Expand Down Expand Up @@ -54,8 +41,6 @@ uid_t parse(char *arg)
int main(int argc, char **argv)
{
uid_t user, group;
printids("initial:");
printf("argc = %d\n", argc);
if(argc < 5)
{
fprintf(stderr,
Expand Down Expand Up @@ -86,7 +71,6 @@ int main(int argc, char **argv)
perror("couldn't set uid");
exit(1);
}
printids("about to exec:");

if(execv(argv[3], argv + 4) == -1)
perror("Error: exec failed");
Expand Down

0 comments on commit 7e73538

Please sign in to comment.