Browse code

clamd/clamd.c: return an error (instead of a warning) if AllowSupplementaryGroups is enabled but initgroups() not available

git-svn: trunk@4120

Tomasz Kojm authored on 2008/08/20 18:03:52
Showing 2 changed files
... ...
@@ -1,3 +1,8 @@
1
+Wed Aug 20 10:54:24 CEST 2008 (tk)
2
+----------------------------------
3
+  * clamd/clamd.c: return an error (instead of a warning) if
4
+    AllowSupplementaryGroups is enabled but initgroups() not available
5
+
1 6
 Mon Aug 18 12:01:10 CEST 2008 (tk)
2 7
 ----------------------------------
3 8
   * libclamunrar_iface, libclamav: improve detection of encrypted RAR archives
... ...
@@ -188,7 +188,9 @@ int main(int argc, char **argv)
188 188
 		return 1;
189 189
 	    }
190 190
 #else
191
-	    mprintf("AllowSupplementaryGroups: initgroups() not supported.\n");
191
+	    mprintf("!AllowSupplementaryGroups: initgroups() is not available, please disable AllowSupplementaryGroups in %s\n", cfgfile);
192
+	    freecfg(copt);
193
+	    return 1;
192 194
 #endif
193 195
 	} else {
194 196
 #ifdef HAVE_SETGROUPS