* `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
#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);
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);
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));
}
#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);
* `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"
}
#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);
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);
}