$NetBSD: patch-ba,v 1.3 2006/02/04 12:05:17 wiz Exp $ --- readcd/readcd.c.orig 2005-06-11 13:22:10.000000000 +0000 +++ readcd/readcd.c @@ -399,12 +399,12 @@ main(ac, av) /* * We don't need root privilleges anymore. */ -#ifdef HAVE_SETREUID - if (setreuid(-1, getuid()) < 0) -#else #ifdef HAVE_SETEUID if (seteuid(getuid()) < 0) #else +#ifdef HAVE_SETREUID + if (setreuid(-1, getuid()) < 0) +#else if (setuid(getuid()) < 0) #endif #endif