[5825] in Athena Bugs

home help back first fref pref prev next nref lref last post

timedc changs for ultrix

daemon@ATHENA.MIT.EDU (John T Kohl)
Fri Aug 24 10:58:46 1990

Date: Fri, 24 Aug 90 10:58:32 -0400
From: John T Kohl <jtkohl@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU

*** /tmp/,RCSt1008465	Fri Aug 24 10:58:05 1990
--- timedc.c	Fri Jul  6 14:17:09 1990
***************
*** 47,54 ****
  {
  	register struct cmd *c;
  
  	openlog("timedc", LOG_ODELAY, LOG_AUTH);
! 
  	/*
  	 * security dictates!
  	 */
--- 47,57 ----
  {
  	register struct cmd *c;
  
+ #ifdef LOG_AUTH
  	openlog("timedc", LOG_ODELAY, LOG_AUTH);
! #else
! 	openlog("timedc", 0);
! #endif
  	/*
  	 * security dictates!
  	 */
*** /tmp/,RCSt1008470	Fri Aug 24 10:58:16 1990
--- timed.c	Fri Jul  6 14:17:07 1990
***************
*** 113,120 ****
  	trace = OFF;
  	nflag = OFF;
  	iflag = OFF;
  	openlog("timed", LOG_CONS|LOG_PID, LOG_DAEMON);
! 
  	if (getuid() != 0) {
  		fprintf(stderr, "Timed: not superuser\n");
  		exit(1);
--- 113,123 ----
  	trace = OFF;
  	nflag = OFF;
  	iflag = OFF;
+ #ifdef LOG_DAEMON
  	openlog("timed", LOG_CONS|LOG_PID, LOG_DAEMON);
! #else
! 	openlog("timed", LOG_PID);
! #endif
  	if (getuid() != 0) {
  		fprintf(stderr, "Timed: not superuser\n");
  		exit(1);

home help back first fref pref prev next nref lref last post