inndstart, cygwin

greg andruk gja at meowing.net
Mon Sep 2 07:42:56 UTC 2002



Cygwin ain't got no setgroups.  Actually, this doesn't result in a
_useful_ inndstart under NT, but at least it's an inndstart that
compiles =)

--- inndstart.c.orig    2002-08-13 01:57:00.000000000 -0400
+++ inndstart.c 2002-09-02 01:55:30.000000000 -0400
@@ -117,8 +117,10 @@
     /* Drop all supplemental groups and drop privileges to read inn.conf.
        setgroups() can only be invoked by root, so if inndstart isn't setuid
        root this is where we fail. */
+#ifndef __CYGWIN__
     if (setgroups(1, &news_gid) < 0)
         syswarn("can't setgroups (is inndstart setuid root?)");
+#endif
     if (seteuid(news_uid) < 0)
         sysdie("can't seteuid to %lu", news_uid);
     if (ReadInnConf() < 0)



More information about the inn-patches mailing list