Subject: bin/486: typo in src/usr.sbin/cron/misc.c
To: None <>
From: Mike Long <>
List: netbsd-bugs
Date: 09/18/1994 15:05:03
>Number:         486
>Category:       bin
>Synopsis:       typo in src/usr.sbin/cron/misc.c
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 18 15:05:02 1994
>Originator:     Mike Long
	None of the above
>Release:        1.0_BETA (9/13 tarballs)
System: NetBSD 1.0_BETA NetBSD 1.0_BETA (AZATHOTH) #0: Thu Sep 15 00:21:53 EDT 1994 i386

	A typo in src/usr.sbin/cron/misc.c makes cron use setreuid()
	instead of seteuid(), so the linker complains.
	cd /usr/src/usr.sbin/cron; make
	The diff below fixes the problem.

diff -u /usr/src/usr.sbin/cron/misc.c.orig /usr/src/usr.sbin/cron/misc.c
--- /usr/src/usr.sbin/cron/misc.c.orig  Thu Jan 20 05:27:51 1994
+++ /usr/src/usr.sbin/cron/misc.c       Sun Sep 18 17:36:14 1994
@@ -654,7 +654,7 @@
 #endif /*MAIL_DATE*/
 static int save_euid;
 int swap_uids() { save_euid = geteuid(); return seteuid(getuid()); }
 int swap_uids_back() { return seteuid(save_euid); }

Mike Long                               
VLSI Design Engineer                    (PGP 2.6 public key available)
Analog Devices, CPD Division
Norwood, MA 02062 USA                assert(*this!=opinionof(Analog));