chiark / gitweb /
@@ -1,3 +1,11 @@
authorian <ian>
Wed, 12 Nov 2003 00:44:56 +0000 (00:44 +0000)
committerian <ian>
Wed, 12 Nov 2003 00:44:56 +0000 (00:44 +0000)
+userv (1.0.4-1) unstable; urgency=low
+
+  Minor portability fixes:
+  * Missing #include <string.h> and <stdlib.h>  } Thanks to report
+  * getgroups returns int, not gid_t (!).       }  from Peter Benie.
+
+ --
+
 userv (1.0.3-2) unstable; urgency=low

   Debian packaging improvements (only):

both.c
client.c
debian/changelog
overlord.c

diff --git a/both.c b/both.c
index 24a31ffaee2b87ed570aeb859291a90dea3ef7a4..9fe88e962744a071b476408b935edbcfff06a8a0 100644 (file)
--- a/both.c
+++ b/both.c
@@ -30,6 +30,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <errno.h>
+#include <string.h>
 
 #include "config.h"
 #include "both.h"
index 5f60d0e5cb0d2458b43c80871540812fe5f9dad5..ab3ae6f0fb1e33fd16c8b6bba4ae1285f257229e 100644 (file)
--- a/client.c
+++ b/client.c
@@ -809,7 +809,7 @@ static void security_init(void) {
   mypid= getpid(); if (mypid == (pid_t)-1) syscallerror("getpid");
   myuid= getuid(); if (myuid == (uid_t)-1) syscallerror("getuid");
   mygid= getgid(); if (mygid == (gid_t)-1) syscallerror("getgid");
-  ngids= getgroups(0,0); if (ngids == (gid_t)-1) syscallerror("getgroups(0,0)");
+  ngids= getgroups(0,0); if (ngids == -1) syscallerror("getgroups(0,0)");
   gidarray= xmalloc(sizeof(gid_t)*ngids);
   if (getgroups(ngids,gidarray) != ngids) syscallerror("getgroups(ngids,)");
   
index 4395ce385801df05e37d1bd4d356bae4cfc3e218..00f98a52b1f75aeed73462562383689190919356 100644 (file)
@@ -1,3 +1,11 @@
+userv (1.0.4-1) unstable; urgency=low
+
+  Minor portability fixes:
+  * Missing #include <string.h> and <stdlib.h>  } Thanks to report
+  * getgroups returns int, not gid_t (!).       }  from Peter Benie.
+
+ --
+
 userv (1.0.3-2) unstable; urgency=low
 
   Debian packaging improvements (only):
index ae6fbfb972530cc8a599d1532014d73562f5da17..2715b79b0a03e736a9fd1d750f9d35347c61f6ad 100644 (file)
@@ -25,6 +25,7 @@
 #include <errno.h>
 #include <string.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <assert.h>
 #include <fnmatch.h>
 #include <sys/wait.h>