Fixes a MINGW compilation problem. Commited to both branches...
2003-09-01 Adam Fedor <[EMAIL PROTECTED]>
* Tools/gdomap.c (main): Move getuid call inside #ifndef MINGW
like the others.
Index: Tools/gdomap.c
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/base/Tools/gdomap.c,v
retrieving revision 1.74
diff -u -p -r1.74 gdomap.c
--- Tools/gdomap.c 6 Aug 2003 05:39:51 -0000 1.74
+++ Tools/gdomap.c 2 Sep 2003 02:31:27 -0000
@@ -4654,14 +4654,14 @@ printf(
setgid (gid);
setgroups (0, 0); /* Empty additional groups list */
}
-#endif /* __MINGW__ */
-
if (getuid() == 0)
{
sprintf(ebuf, "Still running as root after trying to change");
gdomap_log(LOG_CRIT);
exit(EXIT_FAILURE);
}
+
+#endif /* __MINGW__ */
init_probe(); /* Probe other name servers on net. */
_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep