$NetBSD: patch-ay,v 1.2 2000/02/23 06:48:56 mycroft Exp $

--- src/run.c.orig	Thu Dec 18 10:18:50 1997
+++ src/run.c	Wed Feb 23 01:19:27 2000
@@ -188,6 +188,13 @@
 #endif
     if (pid == 0)
     {
+#ifdef SETXID_SUPPORT
+	if (flags & RUN_UNSETXID) {
+	    (void) setgid (getgid ());
+	    (void) setuid (getuid ());
+	}
+#endif
+
 	if (shin != 0)
 	{
 	    (void) dup2 (shin, 0);