Subject: bin/486: typo in src/usr.sbin/cron/misc.c
To: None <gnats-admin@sun-lamp.cs.berkeley.edu>
From: Mike Long <mike.long@analog.com>
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
>Organization:
None of the above
>Release: 1.0_BETA (9/13 tarballs)
>Environment:
System: NetBSD azathoth.boston.ma.us 1.0_BETA NetBSD 1.0_BETA (AZATHOTH) #0: Thu Sep 15 00:21:53 EDT 1994 root@azathoth.boston.ma.us:/usr/src/sys/arch/i386/compile/AZATHOTH i386
>Description:
A typo in src/usr.sbin/cron/misc.c makes cron use setreuid()
instead of seteuid(), so the linker complains.
>How-To-Repeat:
cd /usr/src/usr.sbin/cron; make
>Fix:
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*/
-#ifdef HAVE_SAVED_SUIDS
+#ifdef HAVE_SAVED_UIDS
static int save_euid;
int swap_uids() { save_euid = geteuid(); return seteuid(getuid()); }
int swap_uids_back() { return seteuid(save_euid); }
--
Mike Long Mike.Long@Analog.com
VLSI Design Engineer (PGP 2.6 public key available)
Analog Devices, CPD Division
Norwood, MA 02062 USA assert(*this!=opinionof(Analog));
>Audit-Trail:
>Unformatted: