Author: rfm
Date: Sat Mar 21 16:22:20 2015
New Revision: 38416

URL: http://svn.gna.org/viewcvs/gnustep?rev=38416&view=rev
Log:
Add call to suppress warning

Modified:
    libs/base/trunk/Tools/gdomap.c

Modified: libs/base/trunk/Tools/gdomap.c
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Tools/gdomap.c?rev=38416&r1=38415&r2=38416&view=diff
==============================================================================
--- libs/base/trunk/Tools/gdomap.c      (original)
+++ libs/base/trunk/Tools/gdomap.c      Sat Mar 21 16:22:20 2015
@@ -5018,8 +5018,8 @@
     }
 {
 #ifndef __MINGW__
-  int uid = -2;
-  int gid = -2;
+  uid_t uid = -2;
+  gid_t gid = -2;
 #endif
 
 #if    defined(HAVE_PWD_H)
@@ -5076,6 +5076,10 @@
       uid = getuid();
       gid = getgid();
     }
+  /* The call to setgroups may fail if we don't have that capability ...
+   * but in that case we aren't too bothered anyway.
+   */
+  setgroups (1, &gid);
   if (setgid (gid) < 0)
     {
       snprintf(ebuf, sizeof(ebuf),


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to