Subject: cron and kvm_mkdb troubles
To: None <>
From: Kim Andersen <>
List: current-users
Date: 04/19/1994 01:17:22
I'm having trouble with cron and kvm_mkdb.
No matter what I do to/with kvm_mkdb I get:
kvm_mkdb: /netbsd: corrupted symbol table: Inappropriate file type or format

This is with a system updated Apr 17. 
I have compiled the kernel with COMPAT_09, and recompiled the entire system
including libkvm.
Recompiling the kernel with/without COMPAT_09 gives the same result.
Ideas very welcome.

Since the depreciation (sp) of setreuid I get this mail from cron:
From daemon Tue Apr 19 00:30:03 1994
Date: Tue, 19 Apr 1994 00:30:02 +0100
From: root (Cron Daemon)
To: root
Subject: Cron <root@homer> /usr/libexec/atrun

warning: this program uses setreuid(), which is deprecated.

It seems the HAVE_SAVED_UIDS dont get set in src/usr.sbin/cron/compat.h.

The relevant lines from src/usr.sbin/cron/compat.h is:
#if (BSD >= 199103)

And from src/usr.sbin/cron/misc.c:
static int save_euid;
int swap_uids() { save_euid = geteuid(); return seteuid(getuid()); }
int swap_uids_back() { return seteuid(save_euid); }
int swap_uids() { return setreuid(geteuid(), getuid()); }
int swap_uids_back() { return swap_uids(); }
#endif /*HAVE_SAVED_UIDS*/

Is this an error or am I way off ?