From 4c5726cf6742938906c3343eb12f459fc1c080a1 Mon Sep 17 00:00:00 2001 From: Thibault Godouet Date: Tue, 10 Jul 2001 12:03:38 +0000 Subject: [PATCH] removed debug code --- fcrontab.c | 9 ++------- job.c | 4 +--- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/fcrontab.c b/fcrontab.c index fcfa295..40dad31 100644 --- a/fcrontab.c +++ b/fcrontab.c @@ -22,7 +22,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: fcrontab.c,v 1.43 2001-07-08 12:41:30 thib Exp $ */ + /* $Id: fcrontab.c,v 1.44 2001-07-10 12:03:48 thib Exp $ */ /* * The goal of this program is simple : giving a user interface to fcron @@ -42,7 +42,7 @@ #include "fcrontab.h" -char rcs_info[] = "$Id: fcrontab.c,v 1.43 2001-07-08 12:41:30 thib Exp $"; +char rcs_info[] = "$Id: fcrontab.c,v 1.44 2001-07-10 12:03:48 thib Exp $"; void info(void); void usage(void); @@ -414,7 +414,6 @@ edit_file(char *buf) goto exiterr; } } - debug("*** uid:%d euid:%d gid:%d egid:%d\n", getuid(), geteuid(), getgid(), getegid()); execlp(cureditor, cureditor, tmp_str, NULL); error_e("Error while running \"%s\"", cureditor); @@ -755,8 +754,6 @@ int main(int argc, char **argv) { - debug("*** uid:%d euid:%d gid:%d egid:%d\n", getuid(), geteuid(), getgid(), getegid()); - memset(buf, 0, sizeof(buf)); memset(file, 0, sizeof(file)); @@ -806,8 +803,6 @@ main(int argc, char **argv) } #endif - - debug("*** uid:%d euid:%d gid:%d egid:%d\n", getuid(), geteuid(), getgid(), getegid()); /* this program is seteuid : we set default permission mode * to 640 for security reasons */ umask(026); diff --git a/job.c b/job.c index 3c374e6..875955e 100644 --- a/job.c +++ b/job.c @@ -22,7 +22,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: job.c,v 1.40 2001-07-08 12:40:43 thib Exp $ */ + /* $Id: job.c,v 1.41 2001-07-10 12:03:38 thib Exp $ */ #include "fcron.h" #include "job.h" @@ -61,7 +61,6 @@ change_user(char *user_name) } #endif /* HAVE_SETENV */ - debug("*** uid:%d euid:%d gid:%d egid:%d\n", getuid(), geteuid(), getgid(), getegid()); /* Change running state to the user in question */ if (initgroups(pas->pw_name, pas->pw_gid) < 0) die_e("initgroups failed: %s", pas->pw_name); @@ -71,7 +70,6 @@ change_user(char *user_name) if (setuid(pas->pw_uid) < 0) die("setuid failed: %s %d", pas->pw_name, pas->pw_uid); - debug("*** uid:%d euid:%d gid:%d egid:%d\n", getuid(), geteuid(), getgid(), getegid()); return(pas->pw_uid); } -- 2.47.3