From 7e735387682d11d352c44708e4201016ec5cb18b Mon Sep 17 00:00:00 2001 From: Remi Rampin Date: Tue, 2 Jun 2015 16:55:31 -0400 Subject: [PATCH] Removes debug output --- rpzsudo.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/rpzsudo.c b/rpzsudo.c index 11ac19e..f82acfc 100644 --- a/rpzsudo.c +++ b/rpzsudo.c @@ -12,19 +12,6 @@ #include #include -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] == '#') @@ -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, @@ -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");