$NetBSD: patch-ba,v 1.3 2007/09/18 23:07:26 wiz Exp $
--- readcd/readcd.c.orig 2007-08-12 20:45:39.000000000 +0000
+++ readcd/readcd.c
@@ -497,12 +497,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